|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl
public class SessionFactoryImpl
Default implementation of a session factory. Used by unit tests or applications that depend directly on runtime implementation.
SessionFactory sf = new SessionFactoryImpl();
Session s = sf.createSession(...);
Alternative factory lookup methods:
Context ctx = new DefaultContext();
SessionFactory = ctx.lookup(jndi_key);
Constructor Summary | |
---|---|
protected |
SessionFactoryImpl()
|
Method Summary | |
---|---|
Session |
createSession(java.util.Map<java.lang.String,java.lang.String> parameters)
Creates a new session. |
Session |
createSession(java.util.Map<java.lang.String,java.lang.String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache)
Creates a new session. |
java.util.List<Repository> |
getRepositories(java.util.Map<java.lang.String,java.lang.String> parameters)
Returns all repositories that are available at the endpoint. |
java.util.List<Repository> |
getRepositories(java.util.Map<java.lang.String,java.lang.String> parameters,
ObjectFactory objectFactory,
AuthenticationProvider authenticationProvider,
Cache cache)
Returns all repositories that are available at the endpoint. |
static SessionFactoryImpl |
newInstance()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SessionFactoryImpl()
Method Detail |
---|
public static SessionFactoryImpl newInstance()
public Session createSession(java.util.Map<java.lang.String,java.lang.String> parameters)
SessionFactory
createSession
in interface SessionFactory
parameters
- a Map
of name/value pairs with parameters for the
session
Session
connected to the CMIS repositorySessionParameter
public Session createSession(java.util.Map<java.lang.String,java.lang.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 instance
Session
connected to the CMIS repository
CmisBaseException
- if the connection could not be establishedSessionParameter
public java.util.List<Repository> getRepositories(java.util.Map<java.lang.String,java.lang.String> parameters)
SessionFactory
SessionFactory.createSession(Map)
for parameter details. The parameter
SessionParameter.REPOSITORY_ID
should not be set.
getRepositories
in interface SessionFactory
public java.util.List<Repository> getRepositories(java.util.Map<java.lang.String,java.lang.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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |