public class WorkspaceMapping extends Object
Repository
instances for each repository.Constructor and Description |
---|
WorkspaceMapping() |
Modifier and Type | Method and Description |
---|---|
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) |
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 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()
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.