public interface FederationManager
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.
|
void createProjection(String absNodePath, String sourceName, String externalPath, String alias) throws RepositoryException
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.void removeProjection(String projectionPath) throws RepositoryException
A projection path has the form: [repositoryPath]/[projection alias] as created via
createProjection(String, String, String, String)
projectionPath
- a non-null
String representing the path to a projectionIllegalArgumentException
- if the projection path does not represent a valid pathPathNotFoundException
- 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.