|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.modeshape.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 must also be supplied to enable working with the underlying ModeShape graph implementation to which this JCR
implementation delegates.
If credentials are used to login, implementations must also implement one of the following
methods:
publicNote,AccessControlContextgetAccessControlContext(); publicLoginContextgetLoginContext();
attributes on credentials are not supported. JCR SimpleCredentials are also
not supported.
| Nested Class Summary | |
|---|---|
static class |
JcrRepository.DefaultOption
The default values for each of the JcrRepository.Option. |
protected class |
JcrRepository.DelegatingConnectionFactory
|
protected class |
JcrRepository.FederatedRepositoryContext
|
static class |
JcrRepository.Option
The available options for the JcrRepository. |
static class |
JcrRepository.QueryLanguage
The set of supported query language string constants. |
protected class |
JcrRepository.RepositoryObservationManager
|
protected static class |
JcrRepository.SourceWorkspacePair
|
| Field Summary | |
|---|---|
protected static Map<JcrRepository.Option,String> |
DEFAULT_OPTIONS
The static unmodifiable map of default options, which are initialized in the static initializer. |
| Method Summary | |
|---|---|
protected static Properties |
getBundleProperties()
|
protected static String |
getBundleProperty(String propertyName,
boolean required)
|
String |
getDescriptor(String key)
|
String[] |
getDescriptorKeys()
Returns a string array holding all descriptor keys available for this implementation, both the standard descriptors defined by the string constants in this interface and any implementation-specific descriptors. |
org.modeshape.jcr.JcrValue |
getDescriptorValue(String key)
The value of a single-value descriptor is found by passing the key for that descriptor to this method. |
org.modeshape.jcr.JcrValue[] |
getDescriptorValues(String key)
The value array of a multi-value descriptor is found by passing the key for that descriptor to this method. |
Map<JcrRepository.Option,String> |
getOptions()
Get the options as configured for this repository. |
protected void |
initializeSystemContent(Graph systemGraph)
|
boolean |
isSingleValueDescriptor(String key)
Returns true if key is a valid single-value descriptor; otherwise returns false. |
boolean |
isStandardDescriptor(String key)
Returns true if key is a standard descriptor defined by the string constants in this interface
and false if it is either a valid implementation-specific key or not a valid key. |
Session |
login()
|
Session |
login(Credentials credentials)
|
Session |
login(Credentials credentials,
String workspaceName)
|
Session |
login(String workspaceName)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Map<JcrRepository.Option,String> DEFAULT_OPTIONS
| Method Detail |
|---|
protected void initializeSystemContent(Graph systemGraph)
public Map<JcrRepository.Option,String> getOptions()
public String getDescriptor(String key)
getDescriptor in interface RepositoryIllegalArgumentException - if key is null.Repository.getDescriptor(java.lang.String)public org.modeshape.jcr.JcrValue getDescriptorValue(String key)
key
is the key of a multi-value descriptor or not a valid key this method returns null.
key - a descriptor key.
IllegalArgumentException - if key is null or emptyRepository.getDescriptorValue(String)public org.modeshape.jcr.JcrValue[] getDescriptorValues(String key)
key is the key of a single-value descriptor then this method returns that value as an array of size one. If
key is not a valid key this method returns null.
key - a descriptor key.
IllegalArgumentException - if key is null or emptyRepository.getDescriptorValues(String)public boolean isSingleValueDescriptor(String key)
true if key is a valid single-value descriptor; otherwise returns false.
key - a descriptor key.
IllegalArgumentException - if key is null or emptyRepository.isSingleValueDescriptor(String)public boolean isStandardDescriptor(String key)
true if key is a standard descriptor defined by the string constants in this interface
and false if it is either a valid implementation-specific key or not a valid key.
key - a descriptor key.
key is a standard descriptor.
IllegalArgumentException - if key is null or emptyRepository.isStandardDescriptor(String)public String[] getDescriptorKeys()
Repository.getDescriptorValue(String key) and Repository.getDescriptorValues(String key) to query information about this
repository implementation.
getDescriptorKeys in interface RepositoryRepository.getDescriptorKeys()
public Session login()
throws RepositoryException
login in interface RepositoryRepositoryExceptionRepository.login()
public Session login(Credentials credentials)
throws RepositoryException
login in interface RepositoryRepositoryExceptionRepository.login(javax.jcr.Credentials)
public Session login(String workspaceName)
throws RepositoryException
login in interface RepositoryRepositoryExceptionRepository.login(java.lang.String)
public Session login(Credentials credentials,
String workspaceName)
throws RepositoryException
login in interface RepositoryIllegalArgumentException - if credentials is not null but:
getLoginContext() nor a getAccessControlContext() method and is
not an instance of SimpleCredentials.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.
RepositoryExceptionRepository.login(javax.jcr.Credentials, java.lang.String)protected static Properties getBundleProperties()
protected static String getBundleProperty(String propertyName,
boolean required)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||