|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.dna.jcr.JcrRepository
@ThreadSafe public class JcrRepository
Creates JCR sessions
to an underlying repository (which may be a federated repository).
This JCR repository must be configured with the ability to connect to a repository via a supplied
repository connection factory
and repository source name. An
execution context factory
must also be supplied to enable working with the underlying DNA graph
implementation to which this JCR implementation delegates.
If credentials
are used to login, implementations must also implement one of the following
methods:
publicNote,AccessControlContext
getAccessControlContext(); publicLoginContext
getLoginContext();
attributes
on credentials are not supported. JCR SimpleCredentials
are also
not supported.
Field Summary |
---|
Fields inherited from interface javax.jcr.Repository |
---|
LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_VERSIONING_SUPPORTED, QUERY_XPATH_DOC_ORDER, QUERY_XPATH_POS_INDEX, REP_NAME_DESC, REP_VENDOR_DESC, REP_VENDOR_URL_DESC, REP_VERSION_DESC, SPEC_NAME_DESC, SPEC_VERSION_DESC |
Constructor Summary | |
---|---|
JcrRepository(ExecutionContextFactory executionContextFactory,
RepositoryConnectionFactory connectionFactory)
Creates a JCR repository that uses the supplied repository connection factory to
establish sessions to the underlying repository source upon login . |
|
JcrRepository(Map<String,String> descriptors,
ExecutionContextFactory executionContextFactory,
RepositoryConnectionFactory connectionFactory)
Creates a JCR repository that uses the supplied repository connection factory to
establish sessions to the underlying repository source upon login . |
Method Summary | |
---|---|
String |
getDescriptor(String key)
|
String[] |
getDescriptorKeys()
|
javax.jcr.Session |
login()
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials)
|
javax.jcr.Session |
login(javax.jcr.Credentials credentials,
String workspaceName)
|
javax.jcr.Session |
login(String workspaceName)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JcrRepository(ExecutionContextFactory executionContextFactory, RepositoryConnectionFactory connectionFactory)
repository connection factory
to
establish sessions
to the underlying repository source upon login
.
executionContextFactory
- An execution context factory.connectionFactory
- A repository connection factory.
IllegalArgumentException
- If executionContextFactory
or connectionFactory
is
null
.public JcrRepository(Map<String,String> descriptors, ExecutionContextFactory executionContextFactory, RepositoryConnectionFactory connectionFactory)
repository connection factory
to
establish sessions
to the underlying repository source upon login
.
descriptors
- The descriptors
for this repository; may be null
.executionContextFactory
- An execution context factory.connectionFactory
- A repository connection factory.
IllegalArgumentException
- If executionContextFactory
or connectionFactory
is
null
.Method Detail |
---|
public String getDescriptor(String key)
getDescriptor
in interface javax.jcr.Repository
IllegalArgumentException
- if key
is null
.Repository.getDescriptor(java.lang.String)
public String[] getDescriptorKeys()
getDescriptorKeys
in interface javax.jcr.Repository
Repository.getDescriptorKeys()
public javax.jcr.Session login() throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
Repository.login()
public javax.jcr.Session login(javax.jcr.Credentials credentials) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
Repository.login(javax.jcr.Credentials)
public javax.jcr.Session login(String workspaceName) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
javax.jcr.RepositoryException
Repository.login(java.lang.String)
public javax.jcr.Session login(javax.jcr.Credentials credentials, String workspaceName) throws javax.jcr.RepositoryException
login
in interface javax.jcr.Repository
IllegalArgumentException
- if credentials
is not null
but:
getLoginContext()
nor a getAccessControlContext()
method.getLoginContext()
method that doesn't return a LoginContext
.
getLoginContext()
method that returns a null
LoginContext
.
getLoginContext()
method, but provides a getAccessControlContext()
method that doesn't return an AccessControlContext
.
getLoginContext()
method, but provides a getAccessControlContext()
method that returns a null
AccessControlContext
.
javax.jcr.RepositoryException
Repository.login(javax.jcr.Credentials, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |