Class VersionItemStateManager
- java.lang.Object
-
- org.apache.jackrabbit.core.state.SharedItemStateManager
-
- org.apache.jackrabbit.core.version.VersionItemStateManager
-
- All Implemented Interfaces:
ItemStateListener
,ItemStateManager
public class VersionItemStateManager extends SharedItemStateManager
Specialized SharedItemStateManager that filters out NodeReferences to non-versioning states.
-
-
Constructor Summary
Constructors Constructor Description VersionItemStateManager(PersistenceManager persistMgr, NodeId rootNodeId, NodeTypeRegistry ntReg, ItemStateCacheFactory cacheFactory, ISMLocking locking, NodeIdFactory nodeIdFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkReferentialIntegrity(ChangeLog changes)
NodeReferences
getNodeReferences(NodeId id)
Return a node references object, given its target idboolean
hasNodeReferences(NodeId id)
Return a flag indicating whether a node references object for a given target id exists.boolean
setNodeReferences(ChangeLog references)
Sets the-
Methods inherited from class org.apache.jackrabbit.core.state.SharedItemStateManager
addListener, addVirtualItemStateProvider, beginUpdate, dispose, doExternalUpdate, externalUpdate, getItemState, getNodeIdFactory, hasItemState, hasNonVirtualItemState, removeListener, setCheckReferences, setEventChannel, setISMLocking, stateCreated, stateDestroyed, stateDiscarded, stateModified, toString, update
-
-
-
-
Constructor Detail
-
VersionItemStateManager
public VersionItemStateManager(PersistenceManager persistMgr, NodeId rootNodeId, NodeTypeRegistry ntReg, ItemStateCacheFactory cacheFactory, ISMLocking locking, NodeIdFactory nodeIdFactory) throws ItemStateException
- Throws:
ItemStateException
-
-
Method Detail
-
getNodeReferences
public NodeReferences getNodeReferences(NodeId id) throws NoSuchItemStateException, ItemStateException
Description copied from class:SharedItemStateManager
Return a node references object, given its target id- Specified by:
getNodeReferences
in interfaceItemStateManager
- Overrides:
getNodeReferences
in classSharedItemStateManager
- Parameters:
id
- target id- Returns:
- node references object
- Throws:
NoSuchItemStateException
- if the item does not existItemStateException
- if an error occurs
-
hasNodeReferences
public boolean hasNodeReferences(NodeId id)
Description copied from class:SharedItemStateManager
Return a flag indicating whether a node references object for a given target id exists.- Specified by:
hasNodeReferences
in interfaceItemStateManager
- Overrides:
hasNodeReferences
in classSharedItemStateManager
- Parameters:
id
- target id- Returns:
true
if a node reference object exists for the given id, otherwisefalse
.
-
setNodeReferences
public boolean setNodeReferences(ChangeLog references)
Sets the- Parameters:
references
-- Returns:
-
checkReferentialIntegrity
protected void checkReferentialIntegrity(ChangeLog changes) throws ReferentialIntegrityException, ItemStateException
-
-