|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UpdatableItemStateManager
Identifies an ItemStateManager
that allows updating
items.
Method Summary | |
---|---|
void |
cancel()
Cancel an update operation. |
PropertyState |
createNew(Name propName,
NodeId parentId)
Creates a PropertyState instance representing new,
i.e. not yet existing state. |
NodeState |
createNew(NodeId id,
Name nodeTypeName,
NodeId parentId)
Creates a NodeState instance representing new,
i.e. not yet existing state. |
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 |
---|
void edit() throws IllegalStateException
update()
or cancel()
must be invoked.
IllegalStateException
- if the manager is already in edit mode.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
NodeState createNew(NodeId id, Name 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.PropertyState createNew(Name 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.void store(ItemState state) throws IllegalStateException
state
- item state that should be stored
IllegalStateException
- if the manager is not in edit mode.void destroy(ItemState state) throws IllegalStateException
state
- item state that should be destroyed
IllegalStateException
- if the manager is not in edit mode.void cancel() throws IllegalStateException
IllegalStateException
- if the manager is not in edit mode.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.void dispose()
UpdatableItemStateManager
and frees resources.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |