|
|||||||||||
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. |
PropertyState |
createNew(QName propName,
String parentUUID)
Creates a PropertyState instance representing new,
i.e. |
NodeState |
createNew(String uuid,
QName nodeTypeName,
String parentUUID)
Creates a NodeState 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 |
store(NodeReferences refs)
Store a node references object |
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
IllegalStateException
- if the manager is not in edit mode.public NodeState createNew(String uuid, QName nodeTypeName, String parentUUID) 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.
uuid
- node UUIDnodeTypeName
- qualified node type nameparentUUID
- parent node's UUID
IllegalStateException
- if the manager is not in edit mode.public PropertyState createNew(QName propName, String parentUUID) 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 nameparentUUID
- parent node UUID
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 store(NodeReferences refs) throws IllegalStateException
refs
- node references object 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 StaleItemStateException, ItemStateException, IllegalStateException
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 |