Class NodeStateTracker
java.lang.Object
org.apache.avalon.framework.logger.AbstractLogEnabled
org.ametys.workspaces.repository.jcr.NodeStateTracker
- All Implemented Interfaces:
Initializable,Component,LogEnabled
Node state tracker.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClear the node set for a workspace.getNewNodes(String workspaceName) Get the new nodes in a workspace.voidvoidA node was added.voidnodeRemoved(String workspaceName, String path) A node was removed.Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
Field Details
-
ROLE
The avalon role. -
_newNodes
The nodes created but not already saved.
-
-
Constructor Details
-
NodeStateTracker
public NodeStateTracker()
-
-
Method Details
-
initialize
- Specified by:
initializein interfaceInitializable- Throws:
Exception
-
getNewNodes
Get the new nodes in a workspace.- Parameters:
workspaceName- the workspace name.- Returns:
- the newly created nodes.
-
nodeAdded
A node was added.- Parameters:
workspaceName- the workspace name.path- the added node path.- Throws:
javax.jcr.RepositoryException- if an error occurred
-
nodeRemoved
A node was removed.- Parameters:
workspaceName- the workspace name.path- the removed node path.- Throws:
javax.jcr.RepositoryException- if an error occurred
-
clear
Clear the node set for a workspace.- Parameters:
workspaceName- the workspace name.
-