|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VirtualItemStateProvider
This Interface defines a virtual item state provider.
Method Summary | |
---|---|
void |
addListener(ItemStateListener listener)
Add an ItemStateListener |
VirtualNodeState |
createNodeState(VirtualNodeState parent,
Name name,
NodeId id,
Name nodeTypeName)
Creates a new virtual node state |
VirtualPropertyState |
createPropertyState(VirtualNodeState parent,
Name name,
int type,
boolean multiValued)
Creats a new virtual property state |
NodeId |
getVirtualRootId()
Deprecated. use getVirtualRootIds() instead. |
NodeId[] |
getVirtualRootIds()
Returns the ids of the root nodes of the virtual tree. |
boolean |
isVirtualRoot(ItemId id)
Checks if the id refers to the root of a virtual tree. |
void |
removeListener(ItemStateListener listener)
Remove an ItemStateListener |
boolean |
setNodeReferences(ChangeLog references)
Informs this provider that the node references to some of its states have changed. |
Methods inherited from interface org.apache.jackrabbit.core.state.ItemStateManager |
---|
getItemState, getNodeReferences, hasItemState, hasNodeReferences |
Method Detail |
---|
boolean isVirtualRoot(ItemId id)
id
-
true
if it is the rootNodeId getVirtualRootId()
getVirtualRootIds()
instead.
NodeId[] getVirtualRootIds()
VirtualPropertyState createPropertyState(VirtualNodeState parent, Name name, int type, boolean multiValued) throws RepositoryException
parent
- name
- type
- multiValued
-
RepositoryException
VirtualNodeState createNodeState(VirtualNodeState parent, Name name, NodeId id, Name nodeTypeName) throws RepositoryException
parent
- name
- id
- nodeTypeName
-
RepositoryException
boolean setNodeReferences(ChangeLog references)
references
- collection of NodeReferences
instances
true
if the reference target is one of its items.void addListener(ItemStateListener listener)
ItemStateListener
listener
- the new listener to be informed on modificationsvoid removeListener(ItemStateListener listener)
ItemStateListener
listener
- an existing listener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |