|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Identifies an ItemStateManager
that allows updating
items.
Method Summary | |
void |
cancel()
Cancel an update operation. |
NodeState |
createNew(NodeId id,
QName nodeTypeName,
NodeId parentId)
Creates a NodeState instance representing new,
i.e. |
PropertyState |
createNew(QName propName,
NodeId parentId)
Creates a PropertyState instance representing new,
i.e. |
void |
destroy(ItemState state)
Destroy an item state. |
void |
dispose()
Disposes this UpdatableItemStateManager and frees resources. |
void |
edit()
Start an edit operation on items inside this manager. |
boolean |
inEditMode()
Returns true if this manager is in edit mode i.e. |
void |
store(ItemState state)
Store an item state. |
void |
update()
End an update operation. |
Methods inherited from interface org.apache.jackrabbit.core.state.ItemStateManager |
getItemState, getNodeReferences, hasItemState, hasNodeReferences |
Method Detail |
public void edit() throws IllegalStateException
update()
or cancel()
must be invoked.
IllegalStateException
- if the manager is already in edit mode.public boolean inEditMode()
true
if this manager is in edit mode i.e.
if an edit operation has been started by invoking edit()
,
otherwise returns false
.
true
if this manager is in edit mode, otherwise
false
public NodeState createNew(NodeId id, QName nodeTypeName, NodeId parentId) throws IllegalStateException
NodeState
instance representing new,
i.e. not yet existing state. Call store(org.apache.jackrabbit.core.state.ItemState)
on the returned object to make it persistent.
id
- the id of the nodenodeTypeName
- qualified node type nameparentId
- parent node's id
IllegalStateException
- if the manager is not in edit mode.public PropertyState createNew(QName propName, NodeId parentId) throws IllegalStateException
PropertyState
instance representing new,
i.e. not yet existing state. Call store(org.apache.jackrabbit.core.state.ItemState)
on the returned object to make it persistent.
propName
- qualified property nameparentId
- parent node Id
IllegalStateException
- if the manager is not in edit mode.public void store(ItemState state) throws IllegalStateException
state
- item state that should be stored
IllegalStateException
- if the manager is not in edit mode.public void destroy(ItemState state) throws IllegalStateException
state
- item state that should be destroyed
IllegalStateException
- if the manager is not in edit mode.public void cancel() throws IllegalStateException
IllegalStateException
- if the manager is not in edit mode.public void update() throws ReferentialIntegrityException, StaleItemStateException, ItemStateException, IllegalStateException
ReferentialIntegrityException
- if a new or modified REFERENCE
property refers to a non-existent
target or if a removed node is still
being referenced
StaleItemStateException
- if at least one of the affected items
has become stale in the meantime
ItemStateException
- if the operation failed for another reason
IllegalStateException
- if the manager is not in edit mode.public void dispose()
UpdatableItemStateManager
and frees resources.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |