public interface VirtualItemStateProvider extends ItemStateManager
| Modifier and Type | Method and Description |
|---|---|
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.
|
getItemState, getNodeReferences, hasItemState, hasNodeReferencesboolean 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 - RepositoryExceptionVirtualNodeState createNodeState(VirtualNodeState parent, Name name, NodeId id, Name nodeTypeName) throws RepositoryException
parent - name - id - (must not be null)nodeTypeName - RepositoryExceptionboolean setNodeReferences(ChangeLog references)
references - collection of NodeReferences instancestrue if the reference target is one of its items.void addListener(ItemStateListener listener)
ItemStateListenerlistener - the new listener to be informed on modificationsvoid removeListener(ItemStateListener listener)
ItemStateListenerlistener - an existing listenerCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.