Class VirtualNodeTypeStateManager
- java.lang.Object
-
- org.apache.jackrabbit.core.nodetype.virtual.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.
-
-
Constructor Summary
Constructors Constructor Description VirtualNodeTypeStateManager(NodeTypeRegistry ntReg, DelegatingObservationDispatcher obs, NodeId rootNodeId, NodeId parentId)
Creates a new virtual node type state manager
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VirtualItemStateProvider
getVirtualItemStateProvider()
returns the virtual node state provider for the node type states.void
nodeTypeRegistered(Name ntName)
Called when a node type has been registered.void
nodeTypeReRegistered(Name ntName)
Called when a node type has been re-registered.void
nodeTypesUnregistered(Collection<Name> names)
Called when a set of node types has been unregistered.void
setSession(SessionImpl systemSession)
Sets the system session.
-
-
-
Constructor Detail
-
VirtualNodeTypeStateManager
public VirtualNodeTypeStateManager(NodeTypeRegistry ntReg, DelegatingObservationDispatcher obs, NodeId rootNodeId, NodeId parentId)
Creates a new virtual node type state manager- Parameters:
ntReg
-obs
-rootNodeId
-parentId
-
-
-
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 interfaceNodeTypeRegistryListener
- 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 interfaceNodeTypeRegistryListener
- Parameters:
ntName
- name of the node type that has been registered
-
nodeTypesUnregistered
public void nodeTypesUnregistered(Collection<Name> names)
Called when a set of node types has been unregistered.- Specified by:
nodeTypesUnregistered
in interfaceNodeTypeRegistryListener
- Parameters:
names
- names of the types that have been unregistered
-
-