public class SessionFactoryImpl extends Object implements SessionFactory, Serializable
SessionFactory sf = new SessionFactoryImpl();<br>
Session s = sf.createSession(...);
Alternative factory lookup methods:
Context ctx = new DefaultContext();<
SessionFactory sf = ctx.lookup(jndi_key);
| Modifier | Constructor and Description |
|---|---|
protected |
SessionFactoryImpl() |
| Modifier and Type | Method and Description |
|---|---|
Session |
createSession(Map<String,String> parameters) |
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) |
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)
createSession in interface SessionFactorypublic 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)
getRepositories in interface SessionFactorypublic List<Repository> getRepositories(Map<String,String> parameters, ObjectFactory objectFactory, AuthenticationProvider authenticationProvider, Cache cache, TypeDefinitionCache typeDefCache)
createSession(Map, ObjectFactory, AuthenticationProvider, Cache, TypeDefinitionCache)
for parameter details. The parameter
SessionParameter#REPOSITORY_ID should not be set.Copyright © 2009–2017 The Apache Software Foundation. All rights reserved.