public class VirtualNodeState extends NodeState
| Modifier and Type | Field and Description |
|---|---|
protected VirtualItemStateProvider |
stateMgr
The virtual item state provide that created this node state
|
overlayedState, status, STATUS_EXISTING, STATUS_EXISTING_MODIFIED, STATUS_EXISTING_REMOVED, STATUS_NEW, STATUS_STALE_DESTROYED, STATUS_UNDEFINED| Constructor and Description |
|---|
VirtualNodeState(AbstractVISProvider stateMgr,
NodeId parentId,
NodeId id,
org.apache.jackrabbit.spi.Name nodeTypeName,
org.apache.jackrabbit.spi.Name[] mixins)
creates a new virtual node state
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStateReference(NodeState state)
Adds a hard reference to another state
|
protected VirtualPropertyState |
getOrCreatePropertyState(org.apache.jackrabbit.spi.Name name,
int type,
boolean multiValued)
Retrieves or creates a new property state as child property of this node
|
VirtualPropertyState[] |
getProperties()
Returns the properties of this node
|
VirtualPropertyState |
getProperty(org.apache.jackrabbit.spi.Name name)
returns the property state of the given name
|
InternalValue |
getPropertyValue(org.apache.jackrabbit.spi.Name name)
Returns the value of the given property or
null |
InternalValue[] |
getPropertyValues(org.apache.jackrabbit.spi.Name name)
Returns the values of the given property of
null |
void |
setMixinNodeTypes(org.apache.jackrabbit.spi.Name[] mixins)
sets the mixing node type and adds the respective property
|
void |
setPropertyValue(org.apache.jackrabbit.spi.Name name,
InternalValue value)
Sets the property value
|
void |
setPropertyValues(org.apache.jackrabbit.spi.Name name,
int type,
InternalValue[] values)
Sets the property values
|
void |
setPropertyValues(org.apache.jackrabbit.spi.Name name,
int type,
InternalValue[] values,
boolean multiple)
Sets the property values
|
addChildNodeEntry, addPropertyName, addShare, calculateMemoryFootprint, containsShare, copy, getAddedChildNodeEntries, getAddedPropertyNames, getAddedShares, getChildNodeEntries, getChildNodeEntries, getChildNodeEntry, getChildNodeEntry, getId, getMixinTypeNames, getNodeId, getNodeTypeName, getParentId, getPropertyNames, getRemovedChildNodeEntries, getRemovedPropertyNames, getRemovedShares, getRenamedChildNodeEntries, getReorderedChildNodeEntries, getSharedSet, hasChildNodeEntries, hasChildNodeEntry, hasChildNodeEntry, hasChildNodeEntry, hasPropertyName, isNode, isShareable, notifyNodeAdded, notifyNodeRemoved, notifyNodesReplaced, removeAllChildNodeEntries, removeAllPropertyNames, removeChildNodeEntry, removeChildNodeEntry, removePropertyName, removeShare, renameChildNodeEntry, renameChildNodeEntry, replaceChildNodeEntry, setChildNodeEntries, setContainer, setMixinTypeNames, setNodeTypeName, setParentId, setPropertyNames, setSharedSetconnect, discard, disconnect, getContainer, getModCount, getOverlayedState, getStatus, hasOverlayedState, isConnected, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, setModCount, setStatusprotected final VirtualItemStateProvider stateMgr
public VirtualNodeState(AbstractVISProvider stateMgr, NodeId parentId, NodeId id, org.apache.jackrabbit.spi.Name nodeTypeName, org.apache.jackrabbit.spi.Name[] mixins) throws RepositoryException
stateMgr - parentId - id - nodeTypeName - mixins - RepositoryExceptionpublic VirtualPropertyState[] getProperties()
public InternalValue[] getPropertyValues(org.apache.jackrabbit.spi.Name name) throws NoSuchItemStateException
nullname - NoSuchItemStateExceptionpublic InternalValue getPropertyValue(org.apache.jackrabbit.spi.Name name) throws NoSuchItemStateException
nullname - NoSuchItemStateExceptionpublic VirtualPropertyState getProperty(org.apache.jackrabbit.spi.Name name) throws NoSuchItemStateException
name - NoSuchItemStateExceptionpublic void setPropertyValue(org.apache.jackrabbit.spi.Name name,
InternalValue value)
throws RepositoryException
name - value - RepositoryExceptionpublic void setPropertyValues(org.apache.jackrabbit.spi.Name name,
int type,
InternalValue[] values)
throws RepositoryException
name - type - values - RepositoryExceptionpublic void setPropertyValues(org.apache.jackrabbit.spi.Name name,
int type,
InternalValue[] values,
boolean multiple)
throws RepositoryException
name - type - values - RepositoryExceptionprotected VirtualPropertyState getOrCreatePropertyState(org.apache.jackrabbit.spi.Name name, int type, boolean multiValued) throws RepositoryException
name - type - multiValued - RepositoryExceptionpublic void setMixinNodeTypes(org.apache.jackrabbit.spi.Name[] mixins)
throws RepositoryException
mixins - RepositoryExceptionpublic void addStateReference(NodeState state)
state - Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.