public class AddLabel extends AbstractOperation
AddLabel...statusSTATUS_PENDING, STATUS_PERSISTED, 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. |
static Operation |
create(NodeState versionHistoryState,
NodeState versionState,
org.apache.jackrabbit.spi.Name label,
boolean moveLabel) |
org.apache.jackrabbit.spi.Name |
getLabel() |
org.apache.jackrabbit.spi.NodeId |
getVersionHistoryId() |
org.apache.jackrabbit.spi.NodeId |
getVersionId() |
boolean |
moveLabel() |
void |
persisted()
Invalidates the jcr:versionLabel nodestate present with the given
version history.
|
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus, undopublic void accept(OperationVisitor visitor) throws RepositoryException, ConstraintViolationException, AccessDeniedException, ItemExistsException, NoSuchNodeTypeException, UnsupportedRepositoryOperationException, VersionException
Operationvisit method on visitor
based on the type of this operation.public void persisted()
moveLabel' is true, all descendant states
(property states) are invalidated as well.Operation.persisted()public org.apache.jackrabbit.spi.NodeId getVersionHistoryId()
throws RepositoryException
RepositoryExceptionpublic org.apache.jackrabbit.spi.NodeId getVersionId()
throws RepositoryException
RepositoryExceptionpublic org.apache.jackrabbit.spi.Name getLabel()
public boolean moveLabel()
Copyright © 2004–2018 The Apache Software Foundation. All rights reserved.