Class VirtualNodeTypeStateManager

  • All Implemented Interfaces:
    NodeTypeRegistryListener

    public class VirtualNodeTypeStateManager
    extends Object
    implements NodeTypeRegistryListener
    This Class implements a workaround helper for populating observation events for the virtual node states of the jcr:nodeTypes upon nodetype registry changes.
    • Method Detail

      • getVirtualItemStateProvider

        public VirtualItemStateProvider getVirtualItemStateProvider()
        returns the virtual node state provider for the node type states.
        Returns:
        the virtual item state provider
      • setSession

        public void setSession​(SessionImpl systemSession)
        Sets the system session. This is needed, since the session should be set, after the workspaces are initialized.
        Parameters:
        systemSession -
      • nodeTypeRegistered

        public void nodeTypeRegistered​(Name ntName)
        Called when a node type has been registered.
        Specified by:
        nodeTypeRegistered in interface NodeTypeRegistryListener
        Parameters:
        ntName - name of the node type that has been registered
      • nodeTypeReRegistered

        public void nodeTypeReRegistered​(Name ntName)
        Called when a node type has been re-registered.
        Specified by:
        nodeTypeReRegistered in interface NodeTypeRegistryListener
        Parameters:
        ntName - name of the node type that has been registered