info.magnolia.commands.impl
Class MarkNodeAsDeletedCommand
java.lang.Object
info.magnolia.commands.MgnlCommand
info.magnolia.commands.impl.BaseRepositoryCommand
info.magnolia.commands.impl.RuleBasedCommand
info.magnolia.commands.impl.MarkNodeAsDeletedCommand
- All Implemented Interfaces:
- Command, Cloneable
public class MarkNodeAsDeletedCommand
- extends RuleBasedCommand
Command to mark node as deleted and remove all the non-system content.
Context parameter:
- DELETED_NODE_PROP_NAME : Node name to delete.
- Context.ATTRIBUTE_UUID : Identifier of the parent node.
- Context.ATTRIBUTE_PATH : Path of the parent node
DELETED_NODE_TEMPLATE
public static final String DELETED_NODE_TEMPLATE
- See Also:
- Constant Field Values
DELETED_NODE_PROP_NAME
public static final String DELETED_NODE_PROP_NAME
- See Also:
- Constant Field Values
MarkNodeAsDeletedCommand
public MarkNodeAsDeletedCommand()
execute
public boolean execute(Context context)
throws Exception
- Description copied from class:
MgnlCommand
- This is the actual method to be overridden in descendant classes.
- Specified by:
execute
in class MgnlCommand
- Throws:
Exception
deleteNode
protected void deleteNode(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
preDeleteNode
protected void preDeleteNode(javax.jcr.Node node,
Context context)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
storeDeletionInfo
protected void storeDeletionInfo(javax.jcr.Node node,
Context context)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
version
protected void version(javax.jcr.Node node,
Context context)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
markAsDeleted
protected void markAsDeleted(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
purgeContent
protected void purgeContent(javax.jcr.Node node)
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
isVersionManually
public boolean isVersionManually()
setVersionManually
public void setVersionManually(boolean versionManually)
isForcePreDelete
public boolean isForcePreDelete()
setForcePreDelete
public void setForcePreDelete(boolean forcePreDelete)
Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.