public class SessionFactoryImpl extends Object implements SessionFactory
SessionFactory sf = new SessionFactoryImpl();
Session s = sf.createSession(...);
Alternative factory lookup methods:
Context ctx = new DefaultContext();
SessionFactory = ctx.lookup(jndi_key);
| Modifier | Constructor and Description |
|---|---|
protected |
SessionFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Session |
createSession(Map<String,String> parameters)
Creates a new session.
|
Session |
createSession(Map<String,String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache)
Creates a new session.
|
List<Repository> |
getRepositories(Map<String,String> parameters)
Returns all repositories that are available at the endpoint.
|
List<Repository> |
getRepositories(Map<String,String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache)
Returns all repositories that are available at the endpoint.
|
static SessionFactoryImpl |
newInstance() |
public static SessionFactoryImpl newInstance()
public Session createSession(Map<String,String> parameters)
SessionFactorycreateSession in interface SessionFactoryparameters - a Map of name/value pairs with parameters for the
sessionSession connected to the CMIS repositorySessionParameterpublic Session createSession(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache)
null.parameters - a Map of name/value pairs with parameters for the
sessionobjectFactory - an object factory instanceauthenticationProvider - an authentication provider instancecache - a cache instanceSession connected to the CMIS repositoryCmisBaseException - if the connection could not be establishedSessionParameterpublic List<Repository> getRepositories(Map<String,String> parameters)
SessionFactorySessionFactory.createSession(Map) for parameter details. The parameter
SessionParameter.REPOSITORY_ID should not be set.getRepositories in interface SessionFactorypublic List<Repository> getRepositories(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache)
createSession(Map, ObjectFactory, AuthenticationProvider, Cache)
for parameter details. The parameter
SessionParameter.REPOSITORY_ID should not be set.Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.