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, hasNodeReferences
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
- (must not be null)nodeTypeName
- RepositoryException
boolean setNodeReferences(ChangeLog references)
references
- collection of NodeReferences
instancestrue
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 listenerCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.