public class NodeStateTracker extends AbstractLogEnabled implements Component, Initializable
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Set<String>> |
_newNodes
The nodes created but not already saved.
|
static String |
ROLE
The avalon role.
|
| Constructor and Description |
|---|
NodeStateTracker() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear(String workspaceName)
Clear the node set for a workspace.
|
Set<String> |
getNewNodes(String workspaceName)
Get the new nodes in a workspace.
|
void |
initialize() |
void |
nodeAdded(String workspaceName,
String path)
A node was added.
|
void |
nodeRemoved(String workspaceName,
String path)
A node was removed.
|
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerpublic NodeStateTracker()
public void initialize() throws Exception
initialize in interface InitializableExceptionpublic Set<String> getNewNodes(String workspaceName)
workspaceName - the workspace name.public void nodeAdded(String workspaceName, String path) throws RepositoryException
workspaceName - the workspace name.path - the added node path.RepositoryException - if an error occurredpublic void nodeRemoved(String workspaceName, String path) throws RepositoryException
workspaceName - the workspace name.path - the removed node path.RepositoryException - if an error occurred