org.apache.jackrabbit.core.nodetype.virtual
Class VirtualNodeTypeStateManager

java.lang.Object
  extended by 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
VirtualNodeTypeStateManager(NodeTypeRegistry ntReg, DelegatingObservationDispatcher obs, NodeId rootNodeId, NodeId parentId)
          Creates a new virtual node type state manager
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 initialzed.

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

nodeTypesUnregistered

public void nodeTypesUnregistered(Collection<Name> names)
Called when a set of node types has been unregistered.

Specified by:
nodeTypesUnregistered in interface NodeTypeRegistryListener
Parameters:
names - names of the types that have been unregistered


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.