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 Details

  • Constructor Details

  • Method Details

    • initialize

      public void initialize() throws Exception
      Specified by:
      initialize in interface Initializable
      Throws:
      Exception
    • getNewNodes

      public Set<String> getNewNodes(String workspaceName)
      Get the new nodes in a workspace.
      Parameters:
      workspaceName - the workspace name.
      Returns:
      the newly created nodes.
    • nodeAdded

      public void nodeAdded(String workspaceName, String path) throws javax.jcr.RepositoryException
      A node was added.
      Parameters:
      workspaceName - the workspace name.
      path - the added node path.
      Throws:
      javax.jcr.RepositoryException - if an error occurred
    • nodeRemoved

      public void nodeRemoved(String workspaceName, String path) throws javax.jcr.RepositoryException
      A node was removed.
      Parameters:
      workspaceName - the workspace name.
      path - the removed node path.
      Throws:
      javax.jcr.RepositoryException - if an error occurred
    • clear

      public void clear(String workspaceName)
      Clear the node set for a workspace.
      Parameters:
      workspaceName - the workspace name.