public class MarkNodeAsDeletedCommand extends RuleBasedCommand
Modifier and Type | Field and Description |
---|---|
static String |
DELETED_NODE_PROP_NAME |
static String |
DELETED_NODE_TEMPLATE |
static int |
HOLD_LOCK_IN_SECONDS |
ATTRIBUTE_RULE
log
CONTINUE_PROCESSING, PROCESSING_COMPLETE
Constructor and Description |
---|
MarkNodeAsDeletedCommand() |
Modifier and Type | Method and Description |
---|---|
protected void |
deleteNode(javax.jcr.Node node) |
boolean |
execute(Context context)
This is the actual method to be overridden in descendant classes.
|
boolean |
isForcePreDelete() |
boolean |
isVersionManually() |
protected void |
markAsDeleted(javax.jcr.Node node) |
protected void |
preDeleteNode(javax.jcr.Node node,
Context context)
Deprecated.
Since 5.5, Please use
preDeleteNode(Node, Context, Lock) instead |
protected void |
preDeleteNode(javax.jcr.Node node,
Context context,
javax.jcr.lock.Lock lock) |
protected void |
purgeContent(javax.jcr.Node node) |
void |
setForcePreDelete(boolean forcePreDelete) |
void |
setVersionManually(boolean versionManually) |
protected void |
storeDeletionInfo(javax.jcr.Node node,
Context context) |
protected void |
version(javax.jcr.Node node,
Context context) |
getDefaultRule, getItemTypes, getRule, release, setItemTypes, setRule
getJCRNode, getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
clone, execute, isEnabled, setEnabled
public static final String DELETED_NODE_TEMPLATE
public static final String DELETED_NODE_PROP_NAME
public static final int HOLD_LOCK_IN_SECONDS
public boolean execute(Context context) throws Exception
MgnlCommand
execute
in class MgnlCommand
Exception
protected void deleteNode(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void preDeleteNode(javax.jcr.Node node, Context context, javax.jcr.lock.Lock lock) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
@Deprecated protected void preDeleteNode(javax.jcr.Node node, Context context) throws javax.jcr.RepositoryException
preDeleteNode(Node, Context, Lock)
insteadjavax.jcr.RepositoryException
protected void storeDeletionInfo(javax.jcr.Node node, Context context) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void version(javax.jcr.Node node, Context context) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void markAsDeleted(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
protected void purgeContent(javax.jcr.Node node) throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
public boolean isVersionManually()
public void setVersionManually(boolean versionManually)
public boolean isForcePreDelete()
public void setForcePreDelete(boolean forcePreDelete)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.