public class WorkspaceItemStateFactory extends AbstractItemStateFactory
WorkspaceItemStateFactory
...Constructor and Description |
---|
WorkspaceItemStateFactory(RepositoryService service,
SessionInfo sessionInfo,
ItemDefinitionProvider definitionProvider,
ItemInfoCache cache) |
Modifier and Type | Method and Description |
---|---|
NodeState |
createDeepNodeState(NodeId nodeId,
NodeEntry anyParent)
Creates the node with information retrieved from the
RepositoryService . |
PropertyState |
createDeepPropertyState(PropertyId propertyId,
NodeEntry anyParent)
Creates the PropertyState with information retrieved from the
RepositoryService . |
NodeState |
createNodeState(NodeId nodeId,
NodeEntry entry)
Creates the node with information retrieved from the
RepositoryService . |
PropertyState |
createPropertyState(PropertyId propertyId,
PropertyEntry entry)
Creates the PropertyState with information retrieved from the
RepositoryService . |
NodeState |
createRootState(NodeEntry entry) |
Iterator<ChildInfo> |
getChildNodeInfos(NodeId nodeId)
Returns an Iterator over
ChildInfo s 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.
|
addCreationListener, removeCreationListener
public WorkspaceItemStateFactory(RepositoryService service, SessionInfo sessionInfo, ItemDefinitionProvider definitionProvider, ItemInfoCache cache)
public NodeState createRootState(NodeEntry entry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public NodeState createNodeState(NodeId nodeId, NodeEntry entry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
RepositoryService
.nodeId
- the id of the NodeState
to create.entry
- the HierarchyEntry
the new state should
be attached to.NodeState
.javax.jcr.ItemNotFoundException
- if there is no such NodeState
.javax.jcr.RepositoryException
- if an error occurs while retrieving the NodeState
.public NodeState createDeepNodeState(NodeId nodeId, NodeEntry anyParent) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
RepositoryService
.
Intermediate entries are created as needed.NodeState
.javax.jcr.ItemNotFoundException
- if there is no such NodeState
.javax.jcr.RepositoryException
- if an error occurs while retrieving the NodeState
.public PropertyState createPropertyState(PropertyId propertyId, PropertyEntry entry) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
RepositoryService
.propertyId
- the id of the PropertyState
to create.entry
- the HierarchyEntry
the new state should
be attached to.PropertyState
.javax.jcr.ItemNotFoundException
- if there is no such PropertyState
.javax.jcr.RepositoryException
- if an error occurs while retrieving the
PropertyState
.public PropertyState createDeepPropertyState(PropertyId propertyId, NodeEntry anyParent) throws javax.jcr.RepositoryException
RepositoryService
.
Intermediate entries are created as needed.javax.jcr.ItemNotFoundException
- if there is no such NodeState
.javax.jcr.RepositoryException
- if an error occurs while retrieving the NodeState
.public Iterator<ChildInfo> getChildNodeInfos(NodeId nodeId) throws javax.jcr.ItemNotFoundException, javax.jcr.RepositoryException
ItemStateFactory
ChildInfo
s for the given NodeState
.javax.jcr.ItemNotFoundException
javax.jcr.RepositoryException
public Iterator<PropertyId> getNodeReferences(NodeState nodeState, Name propertyName, boolean weak)
ItemStateFactory
nodeState
- reference targetweak
- Boolean flag indicating whether weak references should be
returned or not.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.