Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.modeshape.jcr
Class JcrRepository

    java.lang.Object
      org.modeshape.jcr.JcrRepository

All Implemented Interfaces:
  Repository, NamedRepository

    public class JcrRepository

extends Object
implements Repository

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`

Fields inherited from interface javax.jcr.Repository
`IDENTIFIER_STABILITY, IDENTIFIER_STABILITY_INDEFINITE_DURATION, IDENTIFIER_STABILITY_METHOD_DURATION, IDENTIFIER_STABILITY_SAVE_DURATION, IDENTIFIER_STABILITY_SESSION_DURATION, LEVEL_1_SUPPORTED, LEVEL_2_SUPPORTED, NODE_TYPE_MANAGEMENT_AUTOCREATED_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_INHERITANCE, NODE_TYPE_MANAGEMENT_INHERITANCE_MINIMAL, NODE_TYPE_MANAGEMENT_INHERITANCE_MULTIPLE, NODE_TYPE_MANAGEMENT_INHERITANCE_SINGLE, NODE_TYPE_MANAGEMENT_MULTIPLE_BINARY_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_MULTIVALUED_PROPERTIES_SUPPORTED, NODE_TYPE_MANAGEMENT_ORDERABLE_CHILD_NODES_SUPPORTED, NODE_TYPE_MANAGEMENT_OVERRIDES_SUPPORTED, NODE_TYPE_MANAGEMENT_PRIMARY_ITEM_NAME_SUPPORTED, NODE_TYPE_MANAGEMENT_PROPERTY_TYPES, NODE_TYPE_MANAGEMENT_RESIDUAL_DEFINITIONS_SUPPORTED, NODE_TYPE_MANAGEMENT_SAME_NAME_SIBLINGS_SUPPORTED, NODE_TYPE_MANAGEMENT_UPDATE_IN_USE_SUPORTED, NODE_TYPE_MANAGEMENT_VALUE_CONSTRAINTS_SUPPORTED, OPTION_ACCESS_CONTROL_SUPPORTED, OPTION_ACTIVITIES_SUPPORTED, OPTION_BASELINES_SUPPORTED, OPTION_JOURNALED_OBSERVATION_SUPPORTED, OPTION_LIFECYCLE_SUPPORTED, OPTION_LOCKING_SUPPORTED, OPTION_NODE_AND_PROPERTY_WITH_SAME_NAME_SUPPORTED, OPTION_NODE_TYPE_MANAGEMENT_SUPPORTED, OPTION_OBSERVATION_SUPPORTED, OPTION_QUERY_SQL_SUPPORTED, OPTION_RETENTION_SUPPORTED, OPTION_SHAREABLE_NODES_SUPPORTED, OPTION_SIMPLE_VERSIONING_SUPPORTED, OPTION_TRANSACTIONS_SUPPORTED, OPTION_UNFILED_CONTENT_SUPPORTED, OPTION_UPDATE_MIXIN_NODE_TYPES_SUPPORTED, OPTION_UPDATE_PRIMARY_NODE_TYPE_SUPPORTED, OPTION_VERSIONING_SUPPORTED, OPTION_WORKSPACE_MANAGEMENT_SUPPORTED, OPTION_XML_EXPORT_SUPPORTED, OPTION_XML_IMPORT_SUPPORTED, QUERY_FULL_TEXT_SEARCH_SUPPORTED, QUERY_JOINS, QUERY_JOINS_INNER, QUERY_JOINS_INNER_OUTER, QUERY_JOINS_NONE, QUERY_LANGUAGES, QUERY_STORED_QUERIES_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, WRITE_SUPPORTED`

Constructor Summary
`protected` | `JcrRepository(RepositoryConfiguration configuration)` Create a Repository instance given the `configuration`.

Method Summary
`protected ChangeBus` | `changeBus()`
`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 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

### MISSING_JAAS_POLICIES

    protected static final Set<String> MISSING_JAAS_POLICIES

### logger

    protected final Logger logger

Constructor Detail

### JcrRepository

    protected JcrRepository(RepositoryConfiguration configuration)
                     throws ConfigurationException

  Create a Repository instance given the `configuration`.

  Parameters:
    `configuration` - the repository configuration; may not be null
  Throws:
    `ConfigurationException` - if there is a problem with the configuration

Method Detail

### getState

    public ModeShapeEngine.State getState()

  Get the state of this JCR repository instance.

  Returns:
    the state; never null

### getName

    public String getName()

  Get the name of this JCR repository instance.

  Specified by:
    `getName` in interface `NamedRepository`
  Returns:
    the name; never null

### getRepositoryStatistics

    public RepositoryStatistics getRepositoryStatistics()

  Get the component that can be used to obtain statistics for this repository.

  Note that this provides un-checked access to the statistics, unlike `Workspace.getRepositoryMonitor()` in the public API which only exposes the statistics if the session's user has administrative privileges.

  Returns:
    the statistics component; never null
  Throws:
    `IllegalStateException` - if the repository is not `running`
  See Also:
    `Workspace.getRepositoryMonitor()`

### doStart

    protected final JcrRepository.RunningState doStart()
                                                throws IOException,
                                                       NamingException

  Throws:
    `IOException`
    `NamingException`

### doShutdown

    protected final boolean doShutdown()

### database

    protected final SchematicDb database()

### repositoryName

    protected final String repositoryName()

### repositoryCache

    protected final RepositoryCache repositoryCache()

### statistics

    protected final RepositoryStatistics statistics()

### nodeTypeManager

    protected final org.modeshape.jcr.RepositoryNodeTypeManager nodeTypeManager()

### queryManager

    protected final org.modeshape.jcr.RepositoryQueryManager queryManager()

### lockManager

    protected final org.modeshape.jcr.RepositoryLockManager lockManager()

### persistentRegistry

    protected final NamespaceRegistry persistentRegistry()

### systemWorkspaceName

    protected final String systemWorkspaceName()

### systemWorkspaceKey

    protected final String systemWorkspaceKey()

### changeBus

    protected final ChangeBus changeBus()

### repositoryKey

    protected final String repositoryKey()

### runningState

    protected final JcrRepository.RunningState runningState()

### hasWorkspace

    protected final boolean hasWorkspace(String workspaceName)

### workspaceCache

    protected final NodeCache workspaceCache(String workspaceName)

### transactionManager

    protected final TransactionManager transactionManager()

### getConfiguration

    public RepositoryConfiguration getConfiguration()

  Get the immutable configuration for this repository.

  Returns:
    the configuration; never null

### getDescriptor

    public String getDescriptor(String key)

  Specified by:
    `getDescriptor` in interface `Repository`

### getDescriptorValue

    public org.modeshape.jcr.JcrValue getDescriptorValue(String key)

  Specified by:
    `getDescriptorValue` in interface `Repository`

### getDescriptorValues

    public org.modeshape.jcr.JcrValue[] getDescriptorValues(String key)

  Specified by:
    `getDescriptorValues` in interface `Repository`

### isSingleValueDescriptor

    public boolean isSingleValueDescriptor(String key)

  Specified by:
    `isSingleValueDescriptor` in interface `Repository`

### isStandardDescriptor

    public boolean isStandardDescriptor(String key)

  Specified by:
    `isStandardDescriptor` in interface `Repository`

### getDescriptorKeys

    public String[] getDescriptorKeys()

  Specified by:
    `getDescriptorKeys` in interface `Repository`

### login

    public JcrSession login()
                     throws RepositoryException

  Specified by:
    `login` in interface `Repository`
  Throws:
    `RepositoryException`

### login

    public JcrSession login(Credentials credentials)
                     throws RepositoryException

  Specified by:
    `login` in interface `Repository`
  Throws:
    `RepositoryException`

### login

    public JcrSession login(String workspaceName)
                     throws RepositoryException

  Specified by:
    `login` in interface `Repository`
  Throws:
    `RepositoryException`

### login

    public JcrSession login(Credentials credentials,
                            String workspaceName)
                     throws RepositoryException

  Specified by:
    `login` in interface `Repository`
  Throws:
    `IllegalArgumentException` - if `credentials` is not `null` but:
    - provides neither a `getLoginContext()` nor a `getAccessControlContext()` method and is not an instance of `SimpleCredentials`.
    - provides a `getLoginContext()` method that doesn't return a `LoginContext`.
    - provides a `getLoginContext()` method that returns a `null` `LoginContext`.
    - does not provide a `getLoginContext()` method, but provides a `getAccessControlContext()` method that doesn't return an `AccessControlContext`.
    - does not provide a `getLoginContext()` method, but provides a `getAccessControlContext()` method that returns a `null` `AccessControlContext`.
    `RepositoryException`
  See Also:
    `Repository.login(javax.jcr.Credentials, java.lang.String)`

### workspacesChanged

    protected void workspacesChanged()

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.