public final class TransientISFactory extends AbstractItemStateFactory implements TransientItemStateFactory, ItemStateCreationListener
TransientISFactory...| Constructor and Description |
|---|
TransientISFactory(AbstractItemStateFactory workspaceStateFactory,
ItemDefinitionProvider defProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
created(ItemState state) |
NodeState |
createDeepNodeState(NodeId nodeId,
NodeEntry anyParent)
Tries to retrieve the
NodeState with the given NodeId
and if the state exists, fills in the NodeEntries missing between the
last known NodeEntry marked by anyParent. |
PropertyState |
createDeepPropertyState(PropertyId propertyId,
NodeEntry anyParent)
Tries to retrieve the
PropertyState with the given PropertyId
and if the state exists, fills in the HierarchyEntries missing between the
last known NodeEntry marked by anyParent. |
NodeState |
createNewNodeState(NodeEntry entry,
Name nodetypeName,
QNodeDefinition definition)
Creates a transient child
NodeState with the given
name. |
PropertyState |
createNewPropertyState(PropertyEntry entry,
QPropertyDefinition definition,
QValue[] values,
int propertyType)
Creates a transient
PropertyState. |
NodeState |
createNodeState(NodeId nodeId,
NodeEntry entry)
Creates the child
NodeState with the given
nodeId. |
PropertyState |
createPropertyState(PropertyId propertyId,
PropertyEntry entry)
Creates the
PropertyState with the given
propertyId. |
NodeState |
createRootState(NodeEntry entry) |
Iterator<ChildInfo> |
getChildNodeInfos(NodeId nodeId)
Returns an Iterator over
ChildInfos for the given NodeState. |
Iterator<PropertyId> |
getNodeReferences(NodeState nodeState,
Name propertyName,
boolean weak)
Returns the identifiers of all reference properties that point to
the given node.
|
void |
statusChanged(ItemState state,
int previousStatus)
Called after an
ItemState has changed its status. |
addCreationListener, removeCreationListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddCreationListener, removeCreationListenerpublic TransientISFactory(AbstractItemStateFactory workspaceStateFactory, ItemDefinitionProvider defProvider)
public NodeState createNewNodeState(NodeEntry entry, Name nodetypeName, QNodeDefinition definition)
TransientItemStateFactoryNodeState with the given
name.createNewNodeState in interface TransientItemStateFactoryNodeStateTransientItemStateFactory.createNewNodeState(NodeEntry , Name, QNodeDefinition)public PropertyState createNewPropertyState(PropertyEntry entry, QPropertyDefinition definition, QValue[] values, int propertyType) throws RepositoryException
TransientItemStateFactoryPropertyState.createNewPropertyState in interface TransientItemStateFactoryPropertyState.RepositoryExceptionTransientItemStateFactory.createNewPropertyState(PropertyEntry, QPropertyDefinition, QValue[], int)public NodeState createRootState(NodeEntry entry) throws ItemNotFoundException, RepositoryException
createRootState in interface ItemStateFactoryItemNotFoundExceptionRepositoryExceptionItemStateFactory.createRootState(NodeEntry)public NodeState createNodeState(NodeId nodeId, NodeEntry entry) throws ItemNotFoundException, RepositoryException
ItemStateFactoryNodeState with the given
nodeId.createNodeState in interface ItemStateFactorynodeId - the id of the NodeState to create.entry - the HierarchyEntry the new state should
be attached to.NodeState.ItemNotFoundException - if there is no such NodeState.RepositoryException - if an error occurs while retrieving the NodeState.ItemStateFactory.createNodeState(NodeId,NodeEntry)public NodeState createDeepNodeState(NodeId nodeId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
ItemStateFactoryNodeState with the given NodeId
and if the state exists, fills in the NodeEntries missing between the
last known NodeEntry marked by anyParent.createDeepNodeState in interface ItemStateFactoryNodeState.ItemNotFoundException - if there is no such NodeState.RepositoryException - if an error occurs while retrieving the NodeState.ItemStateFactory.createDeepNodeState(NodeId, NodeEntry)public PropertyState createPropertyState(PropertyId propertyId, PropertyEntry entry) throws ItemNotFoundException, RepositoryException
ItemStateFactoryPropertyState with the given
propertyId.createPropertyState in interface ItemStateFactorypropertyId - the id of the PropertyState to create.entry - the HierarchyEntry the new state should
be attached to.PropertyState.ItemNotFoundException - if there is no such PropertyState.RepositoryException - if an error occurs while retrieving the
PropertyState.ItemStateFactory.createPropertyState(PropertyId, PropertyEntry)public PropertyState createDeepPropertyState(PropertyId propertyId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
ItemStateFactoryPropertyState with the given PropertyId
and if the state exists, fills in the HierarchyEntries missing between the
last known NodeEntry marked by anyParent.createDeepPropertyState in interface ItemStateFactoryItemNotFoundException - if there is no such NodeState.RepositoryException - if an error occurs while retrieving the NodeState.ItemStateFactory.createDeepPropertyState(PropertyId, NodeEntry)public Iterator<ChildInfo> getChildNodeInfos(NodeId nodeId) throws ItemNotFoundException, RepositoryException
ItemStateFactoryChildInfos for the given NodeState.getChildNodeInfos in interface ItemStateFactoryItemNotFoundExceptionRepositoryExceptionItemStateFactory.getChildNodeInfos(NodeId)public Iterator<PropertyId> getNodeReferences(NodeState nodeState, Name propertyName, boolean weak)
ItemStateFactorygetNodeReferences in interface ItemStateFactorynodeState - reference targetweak - Boolean flag indicating whether weak references should be
returned or not.ItemStateFactory.getNodeReferences(NodeState,org.apache.jackrabbit.spi.Name,boolean)public void created(ItemState state)
created in interface ItemStateCreationListenerItemStateCreationListener.created(ItemState)public void statusChanged(ItemState state, int previousStatus)
ItemStateLifeCycleListenerItemState has changed its status. The new
status can be retrieved by calling ItemState.getStatus().statusChanged in interface ItemStateLifeCycleListenerstate - the item state, which changed its status.previousStatus - the previous status of state.ItemStateLifeCycleListener.statusChanged(ItemState, int)Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.