info.magnolia.commands.impl
Class MarkNodeAsDeletedCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.BaseRepositoryCommand
          extended by info.magnolia.commands.impl.MarkNodeAsDeletedCommand
All Implemented Interfaces:
Command

public class MarkNodeAsDeletedCommand
extends BaseRepositoryCommand

Command to mark node as deleted and remove all the non-system content.
Context parameter:


Field Summary
static String DELETED_NODE_PROP_NAME
           
static String DELETED_NODE_TEMPLATE
           
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface info.magnolia.commands.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
MarkNodeAsDeletedCommand()
           
 
Method Summary
 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)
           
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)
           
 
Methods inherited from class info.magnolia.commands.impl.BaseRepositoryCommand
copy, getJCRNode, getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

MarkNodeAsDeletedCommand

public MarkNodeAsDeletedCommand()
Method Detail

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

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-2013 Magnolia International Ltd.. All Rights Reserved.