public class SessionFactoryImpl extends Object implements SessionFactory, Serializable
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)
Deprecated.
|
Session |
createSession(Map<String,String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache,
TypeDefinitionCache typeDefCache)
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)
|
List<Repository> |
getRepositories(Map<String,String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache,
TypeDefinitionCache typeDefCache)
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 session, see
SessionParameter
for parameters supported by OpenCMISSession connected to the CMIS repositorySessionParameter@Deprecated public Session createSession(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache)
createSession(Map, ObjectFactory, AuthenticationProvider, Cache)public Session createSession(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache, TypeDefinitionCache typeDefCache)
null.parameters - a Map of name/value pairs with parameters for the
sessionobjectFactory - an object factory instanceauthenticationProvider - an authentication provider instancecache - a cache instancetypeDefCache - a type definition cache instanceSession connected to the CMIS repositoryCmisBaseException - if the connection could not be establishedSessionParameterpublic List<Repository> getRepositories(Map<String,String> parameters)
SessionFactorygetRepositories in interface SessionFactoryparameters - a map of name/value pairs with parameters for the session, see
SessionParameter
for parameters supported by OpenCMIS, the parameter
org.apache.chemistry.opencmis.commons.SessionParameter.REPOSITORY_ID
should not be setSessionParameter@Deprecated public List<Repository> getRepositories(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache)
public List<Repository> getRepositories(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache, TypeDefinitionCache typeDefCache)
createSession(Map, ObjectFactory, AuthenticationProvider, Cache)
for parameter details. The parameter
SessionParameter.REPOSITORY_ID should not be set.Copyright © 2009-2015 The Apache Software Foundation. All Rights Reserved.