public class ModeShapeFederationManager extends Object implements FederationManager
FederationManager
interface.Modifier | Constructor and Description |
---|---|
protected |
ModeShapeFederationManager(JcrSession session,
DocumentStore documentStore) |
Modifier and Type | Method and Description |
---|---|
void |
createProjection(String absNodePath,
String sourceName,
String externalPath,
String alias)
Creates an external projection by linking an internal node with an external node, from a given source using an optional alias.
|
void |
removeProjection(String projectionPath)
Removes a projection located at the given path, in the workspace which was used to get the federation manager.
|
protected ModeShapeFederationManager(JcrSession session, DocumentStore documentStore)
public void createProjection(String absNodePath, String sourceName, String externalPath, String alias) throws RepositoryException
FederationManager
createProjection
in interface FederationManager
absNodePath
- a non-null
string representing the absolute path to an existing internal node.sourceName
- a non-null
string representing the name of an external source, configured in the repository.externalPath
- a non-null
string representing a path in the external source, where at which there is an external
node that will be linked.alias
- an optional string representing the name under which the alias should be created. If not present, the externalPath
will be used as the name of the alias.RepositoryException
- if the repository cannot perform the operation.public void removeProjection(String projectionPath) throws RepositoryException
FederationManager
A projection path has the form: [repositoryPath]/[projection alias] as created via
FederationManager.createProjection(String, String, String, String)
removeProjection
in interface FederationManager
projectionPath
- a non-null
String representing the path to a projectionPathNotFoundException
- if either the repository path or the projection alias are not validRepositoryException
- if anything unexpected failsCopyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.