Class TransientItemStateManager
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.state.TransientItemStateManager
-
- All Implemented Interfaces:
ItemStateCreationListener
,ItemStateLifeCycleListener
public class TransientItemStateManager extends Object implements ItemStateCreationListener
TransientItemStateManager
adds support for transient changes onItemState
s 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 usingcreateNewNodeState(Name, String, Name, QNodeDefinition, NodeState)
andcreateNewPropertyState(Name, NodeState, QPropertyDefinition, QValue[], int)
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
created(ItemState state)
void
statusChanged(ItemState state, int previousStatus)
Depending on status of the given state adapt change log.
-
-
-
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 interfaceItemStateLifeCycleListener
- Parameters:
state
- the item state, which changed itsstatus
.previousStatus
- the previous status ofstate
.- See Also:
ItemStateLifeCycleListener.statusChanged(ItemState, int)
-
created
public void created(ItemState state)
- Specified by:
created
in interfaceItemStateCreationListener
- See Also:
ItemStateCreationListener.created(ItemState)
-
-