public interface Operation
Operation...| Modifier and Type | Field and Description |
|---|---|
static int |
STATUS_PENDING |
static int |
STATUS_PERSISTED |
static int |
STATUS_UNDO |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(OperationVisitor visitor)
Calls the appropriate
visit method on visitor
based on the type of this operation. |
Collection<ItemState> |
getAffectedItemStates()
A collection of
ItemStates that are affected by this operation. |
String |
getName()
Returns the name of
this operation. |
int |
getStatus()
Returns the status of this operation.
|
void |
persisted()
Informs this Operation that it has been successfully executed.
|
void |
undo()
Revert changes made by this operation.
|
static final int STATUS_PENDING
static final int STATUS_PERSISTED
static final int STATUS_UNDO
String getName()
this operation.this operation.void accept(OperationVisitor visitor) throws javax.jcr.RepositoryException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.ItemExistsException, javax.jcr.nodetype.NoSuchNodeTypeException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException
visit method on visitor
based on the type of this operation.visitor - the visitor to call back.javax.jcr.RepositoryExceptionjavax.jcr.nodetype.ConstraintViolationExceptionjavax.jcr.AccessDeniedExceptionjavax.jcr.ItemExistsExceptionjavax.jcr.nodetype.NoSuchNodeTypeExceptionjavax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.version.VersionExceptionCollection<ItemState> getAffectedItemStates()
ItemStates that are affected by this operation.ItemStates.void persisted()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionvoid undo()
throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionint getStatus()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.