|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.jackrabbit.core.version.VersionItemStateProvider
This Class implements a virtual item state provider.
| Constructor Summary | |
VersionItemStateProvider(VersionManagerImpl vMgr,
SharedItemStateManager stateMgr)
Creates a bew vesuion manager |
|
| Method Summary | |
VirtualNodeState |
createNodeState(VirtualNodeState parent,
QName name,
String uuid,
QName nodeTypeName)
Creates a new virtual node state |
VirtualPropertyState |
createPropertyState(VirtualNodeState parent,
QName name,
int type,
boolean multiValued)
Creats a new virtual property state |
ItemState |
getItemState(ItemId id)
Return an item state, given its item id. |
NodeReferences |
getNodeReferences(NodeReferencesId id)
Return a node references object, given its target id |
NodeId |
getVirtualRootId()
Returns the id of the root node of the virtual tree. |
boolean |
hasItemState(ItemId id)
Return a flag indicating whether an item state for a given item id exists. |
boolean |
hasNodeReferences(NodeReferencesId id)
Return a flag indicating whether a node references object for a given target id exists. |
boolean |
isVirtualRoot(ItemId id)
Checks if the id refers to the root of a virtual tree. |
boolean |
setNodeReferences(NodeReferences refs)
Informs this provider that the node references to one of its states has changed. |
void |
stateCreated(ItemState created)
Called when an ItemState has successfully
been created (i.e. |
void |
stateDestroyed(ItemState destroyed)
Called when an ItemState has successfully been
removed (i.e. |
void |
stateDiscarded(ItemState discarded)
Called when an ItemState has been discarded (i.e. |
void |
stateModified(ItemState modified)
Called when an ItemState has successfully
been modified (i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public VersionItemStateProvider(VersionManagerImpl vMgr,
SharedItemStateManager stateMgr)
| Method Detail |
public boolean isVirtualRoot(ItemId id)
VirtualItemStateProvider
isVirtualRoot in interface VirtualItemStateProviderid -
public NodeId getVirtualRootId()
VirtualItemStateProvider
getVirtualRootId in interface VirtualItemStateProvider
public VirtualPropertyState createPropertyState(VirtualNodeState parent,
QName name,
int type,
boolean multiValued)
throws RepositoryException
VirtualItemStateProvider
createPropertyState in interface VirtualItemStateProviderparent - name - type - multiValued -
RepositoryException
public VirtualNodeState createNodeState(VirtualNodeState parent,
QName name,
String uuid,
QName nodeTypeName)
throws RepositoryException
VirtualItemStateProvider
createNodeState in interface VirtualItemStateProviderparent - name - uuid - nodeTypeName -
RepositoryException
public ItemState getItemState(ItemId id)
throws NoSuchItemStateException,
ItemStateException
ItemStateManager
getItemState in interface ItemStateManagerid - item id
NoSuchItemStateException - if the item does not exist
ItemStateException - if an error occurspublic boolean setNodeReferences(NodeReferences refs)
VirtualItemStateProvider
setNodeReferences in interface VirtualItemStateProviderrefs -
true if the reference target is one of its items.public boolean hasItemState(ItemId id)
ItemStateManager
hasItemState in interface ItemStateManagerid - item id
true if an item state exists,
otherwise false
public NodeReferences getNodeReferences(NodeReferencesId id)
throws NoSuchItemStateException,
ItemStateException
ItemStateManager
getNodeReferences in interface ItemStateManagerid - target id
NoSuchItemStateException - if the item does not exist
ItemStateException - if an error occurspublic boolean hasNodeReferences(NodeReferencesId id)
ItemStateManager
hasNodeReferences in interface ItemStateManagerid - target id
true if an item state exists,
otherwise falsepublic void stateCreated(ItemState created)
ItemStateListenerItemState has successfully
been created (i.e. its underlying persistent state was created).
stateCreated in interface ItemStateListenercreated - the ItemState that has been 'created'public void stateModified(ItemState modified)
ItemStateListenerItemState has successfully
been modified (i.e. its underlying persistent state has changed).
stateModified in interface ItemStateListenermodified - the ItemState that has been 'modified'public void stateDestroyed(ItemState destroyed)
ItemStateListenerItemState has successfully been
removed (i.e. its underlying persistent state has been destroyed).
stateDestroyed in interface ItemStateListenerdestroyed - the ItemState that has been 'destroyed'public void stateDiscarded(ItemState discarded)
ItemStateListenerItemState has been discarded (i.e. it has
been rendered 'invalid').
stateDiscarded in interface ItemStateListenerdiscarded - the ItemState that has been discardedItemState.discard()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||