public class WorkspaceItemStateFactory extends AbstractItemStateFactory
WorkspaceItemStateFactory...| Constructor and Description |
|---|
WorkspaceItemStateFactory(org.apache.jackrabbit.spi.RepositoryService service,
org.apache.jackrabbit.spi.SessionInfo sessionInfo,
ItemDefinitionProvider definitionProvider,
org.apache.jackrabbit.spi.ItemInfoCache cache) |
| Modifier and Type | Method and Description |
|---|---|
NodeState |
createDeepNodeState(org.apache.jackrabbit.spi.NodeId nodeId,
NodeEntry anyParent)
Creates the node with information retrieved from the
RepositoryService. |
PropertyState |
createDeepPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId,
NodeEntry anyParent)
Creates the PropertyState with information retrieved from the
RepositoryService. |
NodeState |
createNodeState(org.apache.jackrabbit.spi.NodeId nodeId,
NodeEntry entry)
Creates the node with information retrieved from the
RepositoryService. |
PropertyState |
createPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId,
PropertyEntry entry)
Creates the PropertyState with information retrieved from the
RepositoryService. |
NodeState |
createRootState(NodeEntry entry) |
Iterator<org.apache.jackrabbit.spi.ChildInfo> |
getChildNodeInfos(org.apache.jackrabbit.spi.NodeId nodeId)
Returns an Iterator over
ChildInfos for the given NodeState. |
Iterator<org.apache.jackrabbit.spi.PropertyId> |
getNodeReferences(NodeState nodeState,
org.apache.jackrabbit.spi.Name propertyName,
boolean weak)
Returns the identifiers of all reference properties that point to
the given node.
|
addCreationListener, removeCreationListenerpublic WorkspaceItemStateFactory(org.apache.jackrabbit.spi.RepositoryService service,
org.apache.jackrabbit.spi.SessionInfo sessionInfo,
ItemDefinitionProvider definitionProvider,
org.apache.jackrabbit.spi.ItemInfoCache cache)
public NodeState createRootState(NodeEntry entry) throws ItemNotFoundException, RepositoryException
ItemNotFoundExceptionRepositoryExceptionpublic NodeState createNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry entry) throws ItemNotFoundException, RepositoryException
RepositoryService.nodeId - 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.public NodeState createDeepNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
RepositoryService.
Intermediate entries are created as needed.NodeState.ItemNotFoundException - if there is no such NodeState.RepositoryException - if an error occurs while retrieving the NodeState.public PropertyState createPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, PropertyEntry entry) throws ItemNotFoundException, RepositoryException
RepositoryService.propertyId - 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.public PropertyState createDeepPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, NodeEntry anyParent) throws RepositoryException
RepositoryService.
Intermediate entries are created as needed.ItemNotFoundException - if there is no such NodeState.RepositoryException - if an error occurs while retrieving the NodeState.public Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildNodeInfos(org.apache.jackrabbit.spi.NodeId nodeId) throws ItemNotFoundException, RepositoryException
ItemStateFactoryChildInfos for the given NodeState.public Iterator<org.apache.jackrabbit.spi.PropertyId> getNodeReferences(NodeState nodeState, org.apache.jackrabbit.spi.Name propertyName, boolean weak)
ItemStateFactorynodeState - reference targetweak - Boolean flag indicating whether weak references should be
returned or not.Copyright © 2004–2020 The Apache Software Foundation. All rights reserved.