|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.JcrRepository
public class JcrRepository
Nested Class Summary | |
---|---|
protected static class |
JcrRepository.ConfigurationChange
|
static class |
JcrRepository.QueryLanguage
The set of supported query language string constants. |
protected static class |
JcrRepository.RepositoryMonitorFactory
|
protected static class |
JcrRepository.RepositorySessionEnvironment
|
protected class |
JcrRepository.RunningState
|
protected class |
JcrRepository.WorkspaceListener
|
Field Summary | |
---|---|
protected Logger |
logger
|
protected static Set<String> |
MISSING_JAAS_POLICIES
|
Fields inherited from interface org.modeshape.jcr.api.Repository |
---|
REPOSITORY_NAME, REPOSITORY_WORKSPACES, STANDARD_DESCRIPTORS |
Constructor Summary | |
---|---|
protected |
JcrRepository(RepositoryConfiguration configuration)
Create a Repository instance given the configuration . |
Method Summary | |
---|---|
protected ChangeBus |
changeBus()
|
protected void |
completeRestore()
|
protected SchematicDb |
database()
|
protected boolean |
doShutdown()
|
protected JcrRepository.RunningState |
doStart()
|
RepositoryConfiguration |
getConfiguration()
Get the immutable configuration for this repository. |
String |
getDescriptor(String key)
|
String[] |
getDescriptorKeys()
|
org.modeshape.jcr.JcrValue |
getDescriptorValue(String key)
|
org.modeshape.jcr.JcrValue[] |
getDescriptorValues(String key)
|
String |
getName()
Get the name of this JCR repository instance. |
RepositoryStatistics |
getRepositoryStatistics()
Get the component that can be used to obtain statistics for this repository. |
ModeShapeEngine.State |
getState()
Get the state of this JCR repository instance. |
protected boolean |
hasWorkspace(String workspaceName)
|
boolean |
isSingleValueDescriptor(String key)
|
boolean |
isStandardDescriptor(String key)
|
protected org.modeshape.jcr.RepositoryLockManager |
lockManager()
|
JcrSession |
login()
|
JcrSession |
login(Credentials credentials)
|
JcrSession |
login(Credentials credentials,
String workspaceName)
|
JcrSession |
login(String workspaceName)
|
protected org.modeshape.jcr.RepositoryNodeTypeManager |
nodeTypeManager()
|
protected NamespaceRegistry |
persistentRegistry()
|
protected void |
prepareToRestore()
|
protected org.modeshape.jcr.RepositoryQueryManager |
queryManager()
|
protected RepositoryCache |
repositoryCache()
|
protected String |
repositoryKey()
|
protected String |
repositoryName()
|
protected JcrRepository.RunningState |
runningState()
|
protected RepositoryStatistics |
statistics()
|
protected String |
systemWorkspaceKey()
|
protected String |
systemWorkspaceName()
|
protected TransactionManager |
transactionManager()
|
protected NodeCache |
workspaceCache(String workspaceName)
|
protected void |
workspacesChanged()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final Set<String> MISSING_JAAS_POLICIES
protected final Logger logger
Constructor Detail |
---|
protected JcrRepository(RepositoryConfiguration configuration) throws ConfigurationException
configuration
.
configuration
- the repository configuration; may not be null
ConfigurationException
- if there is a problem with the configurationMethod Detail |
---|
public ModeShapeEngine.State getState()
public String getName()
getName
in interface NamedRepository
public RepositoryStatistics getRepositoryStatistics()
Note that this provides un-checked access to the statistics, unlike RepositoryManager.getRepositoryMonitor()
in the
public API which only exposes the statistics if the session's user has administrative privileges.
IllegalStateException
- if the repository is not running
Workspace.getRepositoryManager()
,
RepositoryManager.getRepositoryMonitor()
protected final JcrRepository.RunningState doStart() throws Exception
Exception
protected final boolean doShutdown()
protected final SchematicDb database()
protected final String repositoryName()
protected final RepositoryCache repositoryCache()
protected final RepositoryStatistics statistics()
protected final org.modeshape.jcr.RepositoryNodeTypeManager nodeTypeManager()
protected final org.modeshape.jcr.RepositoryQueryManager queryManager()
protected final org.modeshape.jcr.RepositoryLockManager lockManager()
protected final NamespaceRegistry persistentRegistry()
protected final String systemWorkspaceName()
protected final String systemWorkspaceKey()
protected final ChangeBus changeBus()
protected final String repositoryKey()
protected final JcrRepository.RunningState runningState()
protected final boolean hasWorkspace(String workspaceName)
protected final NodeCache workspaceCache(String workspaceName)
protected final TransactionManager transactionManager()
protected final void prepareToRestore() throws RepositoryException
RepositoryException
protected final void completeRestore() throws ExecutionException, Exception
ExecutionException
Exception
public RepositoryConfiguration getConfiguration()
public String getDescriptor(String key)
getDescriptor
in interface Repository
public org.modeshape.jcr.JcrValue getDescriptorValue(String key)
getDescriptorValue
in interface Repository
public org.modeshape.jcr.JcrValue[] getDescriptorValues(String key)
getDescriptorValues
in interface Repository
public boolean isSingleValueDescriptor(String key)
isSingleValueDescriptor
in interface Repository
public boolean isStandardDescriptor(String key)
isStandardDescriptor
in interface Repository
public String[] getDescriptorKeys()
getDescriptorKeys
in interface Repository
public JcrSession login() throws RepositoryException
login
in interface Repository
RepositoryException
public JcrSession login(Credentials credentials) throws RepositoryException
login
in interface Repository
RepositoryException
public JcrSession login(String workspaceName) throws RepositoryException
login
in interface Repository
RepositoryException
public JcrSession login(Credentials credentials, String workspaceName) throws RepositoryException
login
in interface Repository
IllegalArgumentException
- 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
.
RepositoryException
Repository.login(javax.jcr.Credentials, java.lang.String)
protected void workspacesChanged()
|
ModeShape Distribution 3.0.0.Beta4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |