|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.jcr2spi.state.AbstractItemStateFactory
org.apache.jackrabbit.jcr2spi.state.WorkspaceItemStateFactory
public class WorkspaceItemStateFactory
WorkspaceItemStateFactory...
| Field Summary | |
|---|---|
ItemInfoCache |
cache
|
| Constructor Summary | |
|---|---|
WorkspaceItemStateFactory(RepositoryService service,
SessionInfo sessionInfo,
ItemDefinitionProvider definitionProvider,
ItemInfoCache cache)
|
|
| Method Summary | |
|---|---|
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)
|
java.util.Iterator<ChildInfo> |
getChildNodeInfos(NodeId nodeId)
Returns an Iterator over ChildInfos for the given NodeState. |
java.util.Iterator<PropertyId> |
getNodeReferences(NodeState nodeState,
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final ItemInfoCache cache
| Constructor Detail |
|---|
public WorkspaceItemStateFactory(RepositoryService service,
SessionInfo sessionInfo,
ItemDefinitionProvider definitionProvider,
ItemInfoCache cache)
| Method Detail |
|---|
public NodeState createRootState(NodeEntry entry)
throws ItemNotFoundException,
RepositoryException
ItemNotFoundException
RepositoryException
public NodeState createNodeState(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(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(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(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 java.util.Iterator<ChildInfo> getChildNodeInfos(NodeId nodeId)
throws ItemNotFoundException,
RepositoryException
ItemStateFactoryChildInfos for the given NodeState.
ItemNotFoundException
RepositoryException
public java.util.Iterator<PropertyId> getNodeReferences(NodeState nodeState,
Name propertyName,
boolean weak)
ItemStateFactory
nodeState - reference targetweak - Boolean flag indicating whether weak references should be
returned or not.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||