Interface AggregateManager
-
- All Superinterfaces:
NodeTypesCollector
public interface AggregateManager extends NodeTypesCollector
AggregateManager
...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dumpConfig(java.io.PrintWriter out)
Dumps the configuration to the given writer for debugging purposes.Aggregator
getAggregator(Node node, java.lang.String path)
Returns the aggregator for the given node ornull
if none found.VaultFsConfig
getConfig()
Returns the configRepositoryAddress
getMountpoint()
Returns the repository address of the mountpoint of this artifacts node tree.Aggregate
getRoot()
Returns the root aggregate of the treeSession
getSession()
Returns the session of this manager.java.lang.String
getUserId()
Returns the user id of the session of this manager.java.lang.String
getWorkspace()
Returns the name of the workspace of this manager.WorkspaceFilter
getWorkspaceFilter()
Returns the workspace filter.boolean
isMounted()
Checks if this tree is still mounted and if the attached session is still live.void
startTracking(ProgressTrackerListener listener)
Starts tracking aggregate lifecyclesvoid
stopTracking()
Stops tracking of aggregate lifecyclevoid
unmount()
Releases all resources attached to this artifact manager-
Methods inherited from interface org.apache.jackrabbit.vault.fs.api.NodeTypesCollector
addNodeTypes, getNodeTypes
-
-
-
-
Method Detail
-
unmount
void unmount() throws RepositoryException
Releases all resources attached to this artifact manager- Throws:
RepositoryException
- if an error occurs.
-
getRoot
Aggregate getRoot() throws RepositoryException
Returns the root aggregate of the tree- Returns:
- the root aggregate.
- Throws:
RepositoryException
- if an error occurs.
-
getMountpoint
RepositoryAddress getMountpoint()
Returns the repository address of the mountpoint of this artifacts node tree.- Returns:
- the mountpoint
-
getAggregator
Aggregator getAggregator(Node node, java.lang.String path) throws RepositoryException
Returns the aggregator for the given node ornull
if none found.- Parameters:
node
- for which the aggregator is to be returnedpath
- the path of the node ornull
- Returns:
- the aggregator or
null
- Throws:
RepositoryException
- if a repository error occurs.
-
getWorkspaceFilter
WorkspaceFilter getWorkspaceFilter()
Returns the workspace filter.- Returns:
- the workspace filter.
-
isMounted
boolean isMounted()
Checks if this tree is still mounted and if the attached session is still live.- Returns:
true
if still mounted
-
getUserId
java.lang.String getUserId() throws RepositoryException
Returns the user id of the session of this manager.- Returns:
- the user id.
- Throws:
RepositoryException
- if an error occurs.
-
getWorkspace
java.lang.String getWorkspace() throws RepositoryException
Returns the name of the workspace of this manager.- Returns:
- the name of the workspace.
- Throws:
RepositoryException
- if an error occurs.
-
getSession
Session getSession()
Returns the session of this manager.- Returns:
- the jcr session
-
getConfig
VaultFsConfig getConfig()
Returns the config- Returns:
- the config
-
dumpConfig
void dumpConfig(java.io.PrintWriter out) throws java.io.IOException
Dumps the configuration to the given writer for debugging purposes.- Parameters:
out
- the writer- Throws:
java.io.IOException
- if an I/O error occurs
-
startTracking
void startTracking(ProgressTrackerListener listener)
Starts tracking aggregate lifecycles- Parameters:
listener
- optional listener
-
stopTracking
void stopTracking()
Stops tracking of aggregate lifecycle
-
-