Class WorkspaceItemStateFactory
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.state.AbstractItemStateFactory
-
- org.apache.jackrabbit.jcr2spi.state.WorkspaceItemStateFactory
-
- All Implemented Interfaces:
ItemStateFactory
public class WorkspaceItemStateFactory extends AbstractItemStateFactory
WorkspaceItemStateFactory...
-
-
Constructor Summary
Constructors Constructor Description WorkspaceItemStateFactory(org.apache.jackrabbit.spi.RepositoryService service, org.apache.jackrabbit.spi.SessionInfo sessionInfo, ItemDefinitionProvider definitionProvider, org.apache.jackrabbit.spi.ItemInfoCache cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeStatecreateDeepNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry anyParent)Creates the node with information retrieved from theRepositoryService.PropertyStatecreateDeepPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, NodeEntry anyParent)Creates the PropertyState with information retrieved from theRepositoryService.NodeStatecreateNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry entry)Creates the node with information retrieved from theRepositoryService.PropertyStatecreatePropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, PropertyEntry entry)Creates the PropertyState with information retrieved from theRepositoryService.NodeStatecreateRootState(NodeEntry entry)Iterator<org.apache.jackrabbit.spi.ChildInfo>getChildNodeInfos(org.apache.jackrabbit.spi.NodeId nodeId)Returns an Iterator overChildInfos for the givenNodeState.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.-
Methods inherited from class org.apache.jackrabbit.jcr2spi.state.AbstractItemStateFactory
addCreationListener, removeCreationListener
-
-
-
-
Constructor Detail
-
WorkspaceItemStateFactory
public WorkspaceItemStateFactory(org.apache.jackrabbit.spi.RepositoryService service, org.apache.jackrabbit.spi.SessionInfo sessionInfo, ItemDefinitionProvider definitionProvider, org.apache.jackrabbit.spi.ItemInfoCache cache)
-
-
Method Detail
-
createRootState
public NodeState createRootState(NodeEntry entry) throws ItemNotFoundException, RepositoryException
- Returns:
- Throws:
ItemNotFoundExceptionRepositoryException
-
createNodeState
public NodeState createNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry entry) throws ItemNotFoundException, RepositoryException
Creates the node with information retrieved from theRepositoryService.- Parameters:
nodeId- the id of theNodeStateto create.entry- theHierarchyEntrythe new state should be attached to.- Returns:
- the created
NodeState. - Throws:
ItemNotFoundException- if there is no suchNodeState.RepositoryException- if an error occurs while retrieving theNodeState.
-
createDeepNodeState
public NodeState createDeepNodeState(org.apache.jackrabbit.spi.NodeId nodeId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
Creates the node with information retrieved from theRepositoryService. Intermediate entries are created as needed.- Returns:
- the created
NodeState. - Throws:
ItemNotFoundException- if there is no suchNodeState.RepositoryException- if an error occurs while retrieving theNodeState.
-
createPropertyState
public PropertyState createPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, PropertyEntry entry) throws ItemNotFoundException, RepositoryException
Creates the PropertyState with information retrieved from theRepositoryService.- Parameters:
propertyId- the id of thePropertyStateto create.entry- theHierarchyEntrythe new state should be attached to.- Returns:
- the created
PropertyState. - Throws:
ItemNotFoundException- if there is no suchPropertyState.RepositoryException- if an error occurs while retrieving thePropertyState.
-
createDeepPropertyState
public PropertyState createDeepPropertyState(org.apache.jackrabbit.spi.PropertyId propertyId, NodeEntry anyParent) throws RepositoryException
Creates the PropertyState with information retrieved from theRepositoryService. Intermediate entries are created as needed.- Returns:
- Throws:
ItemNotFoundException- if there is no suchNodeState.RepositoryException- if an error occurs while retrieving theNodeState.
-
getChildNodeInfos
public Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildNodeInfos(org.apache.jackrabbit.spi.NodeId nodeId) throws ItemNotFoundException, RepositoryException
Description copied from interface:ItemStateFactoryReturns an Iterator overChildInfos for the givenNodeState.
-
getNodeReferences
public Iterator<org.apache.jackrabbit.spi.PropertyId> getNodeReferences(NodeState nodeState, org.apache.jackrabbit.spi.Name propertyName, boolean weak)
Description copied from interface:ItemStateFactoryReturns the identifiers of all reference properties that point to the given node.- Parameters:
nodeState- reference targetweak- Boolean flag indicating whether weak references should be returned or not.- Returns:
- reference property identifiers
-
-