|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.connector.path.PathRepository
@ThreadSafe public abstract class PathRepository
Field Summary | |
---|---|
protected UUID |
rootNodeUuid
|
protected ConcurrentMap<String,PathWorkspace> |
workspaces
|
Constructor Summary | |
---|---|
protected |
PathRepository(PathRepositorySource source)
Creates a PathRepository with the given repository source, root node UUID, and a default workspace with the given
name. |
Method Summary | |
---|---|
protected String |
getDefaultWorkspaceName()
|
UUID |
getRootNodeUuid()
Returns the UUID used by the root nodes in each workspace. |
String |
getSourceName()
Returns the logical name (as opposed to the class name) of the repository source that defined this instance of the repository for use in error, informational, and other contextual messages. |
PathWorkspace |
getWorkspace(String name)
Returns the workspace with the given name |
Set<String> |
getWorkspaceNames()
Returns a list of the names of the currently created workspaces |
protected abstract void |
initialize()
Initializes the repository by creating the default workspace. |
boolean |
isWritable()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final UUID rootNodeUuid
protected final ConcurrentMap<String,PathWorkspace> workspaces
Constructor Detail |
---|
protected PathRepository(PathRepositorySource source)
PathRepository
with the given repository source, root node UUID, and a default workspace with the given
name.
source
- the path repository source; may not be nullMethod Detail |
---|
public final UUID getRootNodeUuid()
Note that the root nodes themselves are distinct objects in each workspace and a change to the root node of one workspace does not imply a change to the root nodes of any other workspaces. However, the JCR specification mandates that all referenceable root nodes in a repository use a common UUID (in support of node correspondence); therefore this must be supported by ModeShape.
public String getSourceName()
protected String getDefaultWorkspaceName()
public Set<String> getWorkspaceNames()
public PathWorkspace getWorkspace(String name)
name
- the name of the workspace to return
protected abstract void initialize()
Due to the ordering restrictions on constructor chaining, this method cannot be called until the repository is fully
initialized. This method MUST be called at the end of the constructor by any class that implements MapRepository
.
public boolean isWritable()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |