public class CmisSessionPoolImpl extends Object implements CmisSessionPool
| Constructor and Description |
|---|
CmisSessionPoolImpl(org.apache.commons.pool.ObjectPool guestSessionPool) |
| Modifier and Type | Method and Description |
|---|---|
void |
closeSession(org.apache.chemistry.opencmis.client.api.Session session)
Finish using a session.
|
org.apache.chemistry.opencmis.client.api.Session |
getGuestSession()
Get an anonymous connection for guest site visitors.
|
org.apache.chemistry.opencmis.client.api.Session |
getSession(String username,
String password)
Get a session authenticated against the repository.
|
public CmisSessionPoolImpl(org.apache.commons.pool.ObjectPool guestSessionPool)
public void closeSession(org.apache.chemistry.opencmis.client.api.Session session)
throws Exception
CmisSessionPoolcloseSession in interface CmisSessionPoolsession - the CMIS session to closeExceptionCmisSessionPool.closeSession(Session)public org.apache.chemistry.opencmis.client.api.Session getGuestSession()
throws Exception
CmisSessionPoolgetGuestSession in interface CmisSessionPoolExceptionCmisSessionPool.getGuestSession()public org.apache.chemistry.opencmis.client.api.Session getSession(String username, String password)
CmisSessionPoolgetSession in interface CmisSessionPoolusername - repository usernamepassword - repository passwordCmisSessionPool.getSession(String,
String)Copyright © 2005–2014 Alfresco Software. All rights reserved.