public class GuestSessionFactoryImpl extends Object implements org.apache.commons.pool.PoolableObjectFactory, Runnable
| Constructor and Description |
|---|
GuestSessionFactoryImpl()
Create a CMIS session factory.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateObject(Object obj) |
void |
destroyObject(Object obj) |
void |
init()
Create a CMIS session factory.
|
Object |
makeObject() |
void |
passivateObject(Object obj) |
void |
run() |
void |
setAuthenticationProvider(org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider authenticationProvider) |
void |
setPassword(String password) |
void |
setRepositoryPollInterval(int repositoryPollInterval) |
void |
setRepoUrl(String repoUrl) |
void |
setUsername(String username) |
void |
stop() |
boolean |
validateObject(Object obj) |
public GuestSessionFactoryImpl()
repo - CMIS repository URLpublic void setRepositoryPollInterval(int repositoryPollInterval)
public void setAuthenticationProvider(org.apache.chemistry.opencmis.client.bindings.spi.AbstractAuthenticationProvider authenticationProvider)
public void setRepoUrl(String repoUrl)
public void setUsername(String username)
public void setPassword(String password)
public void init()
repo - CMIS repository URLuser - CMIS userpassword - CMIS passwordrepositoryPollInterval - Optional. If > 0 a thread polls for the repository, otherwise
the constructor will just issue an exception if the repository
is not available.public void stop()
public void activateObject(Object obj) throws Exception
activateObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionPoolableObjectFactory.activateObject(Object)public void destroyObject(Object obj) throws Exception
destroyObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionPoolableObjectFactory.destroyObject(Object)public Object makeObject() throws Exception
makeObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionPoolableObjectFactory.makeObject()public void passivateObject(Object obj) throws Exception
passivateObject in interface org.apache.commons.pool.PoolableObjectFactoryExceptionPoolableObjectFactory.passivateObject(Object)public boolean validateObject(Object obj)
validateObject in interface org.apache.commons.pool.PoolableObjectFactoryPoolableObjectFactory.validateObject(Object)Copyright © 2005–2014 Alfresco Software. All rights reserved.