org.apache.jackrabbit.jcr2spi.state
Class TransientItemStateManager

java.lang.Object
  extended by org.apache.jackrabbit.jcr2spi.state.TransientItemStateManager
All Implemented Interfaces:
ItemStateCreationListener, ItemStateLifeCycleListener

public class TransientItemStateManager
extends Object
implements ItemStateCreationListener

TransientItemStateManager adds support for transient changes on ItemStates and also provides methods to create new item states. While all other modifications can be invoked on the item state instances itself, creating a new node state is done using createNewNodeState(Name, String, Name, QNodeDefinition, NodeState) and createNewPropertyState(Name, NodeState, QPropertyDefinition, QValue[], int).


Method Summary
 void created(ItemState state)
           
 void statusChanged(ItemState state, int previousStatus)
          Depending on status of the given state adapt change log.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

statusChanged

public void statusChanged(ItemState state,
                          int previousStatus)
Depending on status of the given state adapt change log. E.g. a revert on states will reset the status from 'existing modified' to 'existing'. A state which changes from 'existing' to 'existing modified' will go into the modified set of the change log, etc.

Specified by:
statusChanged in interface ItemStateLifeCycleListener
Parameters:
state - the item state, which changed its status.
previousStatus - the previous status of state.
See Also:
ItemStateLifeCycleListener.statusChanged(ItemState, int)

created

public void created(ItemState state)
Specified by:
created in interface ItemStateCreationListener
See Also:
ItemStateCreationListener.created(ItemState)


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