|
||||||||||
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.TransientISFactory
public final class TransientISFactory
TransientISFactory
...
Constructor Summary | |
---|---|
TransientISFactory(AbstractItemStateFactory workspaceStateFactory,
ItemDefinitionProvider defProvider)
|
Method Summary | |
---|---|
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 |
getChildNodeInfos(NodeId nodeId)
Returns an Iterator over ChildInfo s for the given NodeState . |
PropertyId[] |
getNodeReferences(NodeState nodeState)
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. |
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 |
Methods inherited from interface org.apache.jackrabbit.jcr2spi.state.ItemStateFactory |
---|
addCreationListener, removeCreationListener |
Constructor Detail |
---|
public TransientISFactory(AbstractItemStateFactory workspaceStateFactory, ItemDefinitionProvider defProvider)
Method Detail |
---|
public NodeState createNewNodeState(NodeEntry entry, Name nodetypeName, QNodeDefinition definition)
TransientItemStateFactory
NodeState
with the given
name
.
createNewNodeState
in interface TransientItemStateFactory
NodeState
TransientItemStateFactory.createNewNodeState(NodeEntry , Name, QNodeDefinition)
public PropertyState createNewPropertyState(PropertyEntry entry, QPropertyDefinition definition, QValue[] values, int propertyType) throws RepositoryException
TransientItemStateFactory
PropertyState
.
createNewPropertyState
in interface TransientItemStateFactory
PropertyState
.
RepositoryException
TransientItemStateFactory#createNewPropertyState(PropertyEntry, QPropertyDefinition)
public NodeState createRootState(NodeEntry entry) throws ItemNotFoundException, RepositoryException
createRootState
in interface ItemStateFactory
ItemNotFoundException
RepositoryException
ItemStateFactory.createRootState(NodeEntry)
public NodeState createNodeState(NodeId nodeId, NodeEntry entry) throws ItemNotFoundException, RepositoryException
ItemStateFactory
NodeState
with the given
nodeId
.
createNodeState
in interface ItemStateFactory
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
.ItemStateFactory.createNodeState(NodeId,NodeEntry)
public NodeState createDeepNodeState(NodeId nodeId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
ItemStateFactory
NodeState
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 ItemStateFactory
NodeState
.
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
ItemStateFactory
PropertyState
with the given
propertyId
.
createPropertyState
in interface ItemStateFactory
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
.ItemStateFactory.createPropertyState(PropertyId, PropertyEntry)
public PropertyState createDeepPropertyState(PropertyId propertyId, NodeEntry anyParent) throws ItemNotFoundException, RepositoryException
ItemStateFactory
PropertyState
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 ItemStateFactory
ItemNotFoundException
- if there is no such NodeState
.
RepositoryException
- if an error occurs while retrieving the NodeState
.ItemStateFactory.createDeepPropertyState(PropertyId, NodeEntry)
public Iterator getChildNodeInfos(NodeId nodeId) throws ItemNotFoundException, RepositoryException
ItemStateFactory
ChildInfo
s for the given NodeState
.
getChildNodeInfos
in interface ItemStateFactory
ItemNotFoundException
RepositoryException
ItemStateFactory.getChildNodeInfos(NodeId)
public PropertyId[] getNodeReferences(NodeState nodeState)
ItemStateFactory
getNodeReferences
in interface ItemStateFactory
nodeState
- reference target
ItemStateFactory.getNodeReferences(NodeState)
public void created(ItemState state)
created
in interface ItemStateCreationListener
ItemStateCreationListener.created(ItemState)
public void statusChanged(ItemState state, int previousStatus)
ItemStateLifeCycleListener
ItemState
has changed its status. The new
status can be retrieved by calling ItemState.getStatus()
.
statusChanged
in interface ItemStateLifeCycleListener
state
- the item state, which changed its status
.previousStatus
- the previous status of state
.ItemStateLifeCycleListener.statusChanged(ItemState, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |