|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.repository.WorkspaceMapping
public class WorkspaceMapping
Maintains a registry of repositories and a list of mappings from logical workspaces to the real workspaces in the
repositories. It also keeps lookup maps of providers and Repository
instances for each repository.
Constructor Summary | |
---|---|
WorkspaceMapping()
|
Method Summary | |
---|---|
void |
addRepositoryDefinition(RepositoryDefinition repositoryDefinition)
|
void |
addWorkspaceMapping(WorkspaceMappingDefinition mapping)
Adds workspace mapping, if the physical workspace doesn't exist it is added. |
void |
addWorkspaceMappingDefinition(WorkspaceMappingDefinition definition)
|
void |
clearAll()
|
void |
clearRepositories()
|
Collection<String> |
getLogicalWorkspaceNames()
|
javax.jcr.Repository |
getRepository(String repositoryId)
Returns repository specified by the repositoryID as configured in repository config. |
RepositoryDefinition |
getRepositoryDefinition(String repositoryId)
Returns a configured repository definition. |
Collection<RepositoryDefinition> |
getRepositoryDefinitions()
|
Provider |
getRepositoryProvider(String repositoryId)
Returns repository provider specified by the repositoryID as configured in repository config. |
WorkspaceMappingDefinition |
getWorkspaceMapping(String logicalWorkspaceName)
|
Collection<WorkspaceMappingDefinition> |
getWorkspaceMappings()
|
void |
setRepository(String repositoryId,
javax.jcr.Repository repository)
|
void |
setRepositoryProvider(String repositoryId,
Provider provider)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WorkspaceMapping()
Method Detail |
---|
public void clearRepositories()
public void clearAll()
public void addRepositoryDefinition(RepositoryDefinition repositoryDefinition)
public void addWorkspaceMapping(WorkspaceMappingDefinition mapping)
public void addWorkspaceMappingDefinition(WorkspaceMappingDefinition definition)
public RepositoryDefinition getRepositoryDefinition(String repositoryId)
public Collection<String> getLogicalWorkspaceNames()
public WorkspaceMappingDefinition getWorkspaceMapping(String logicalWorkspaceName)
public Collection<WorkspaceMappingDefinition> getWorkspaceMappings()
public void setRepository(String repositoryId, javax.jcr.Repository repository)
public void setRepositoryProvider(String repositoryId, Provider provider)
public javax.jcr.Repository getRepository(String repositoryId)
repositoryID
as configured in repository config.
public Provider getRepositoryProvider(String repositoryId)
repositoryID
as configured in repository config.
public Collection<RepositoryDefinition> getRepositoryDefinitions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |