info.magnolia.module.admininterface.commands
Class MarkNodeAsDeletedCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.module.admininterface.commands.BaseRepositoryCommand
          extended by info.magnolia.module.admininterface.commands.MarkNodeAsDeletedCommand
All Implemented Interfaces:
org.apache.commons.chain.Command

public class MarkNodeAsDeletedCommand
extends BaseRepositoryCommand


Field Summary
static java.lang.String DELETED_NODE_DELETED_BY
           
static java.lang.String DELETED_NODE_DELETED_ON
           
static java.lang.String DELETED_NODE_TEMPLATE
           
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
MarkNodeAsDeletedCommand()
           
 
Method Summary
 boolean execute(Context context)
           
 boolean isVersionManually()
           
protected  void markAsDeleted(Content node)
           
protected  void purgeContent(Content node)
           
 void setVersionManually(boolean versionManually)
           
 
Methods inherited from class info.magnolia.module.admininterface.commands.BaseRepositoryCommand
getNode, getPath, getRepository, getUuid, release, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, 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 java.lang.String DELETED_NODE_TEMPLATE
See Also:
Constant Field Values

DELETED_NODE_DELETED_BY

public static final java.lang.String DELETED_NODE_DELETED_BY
See Also:
Constant Field Values

DELETED_NODE_DELETED_ON

public static final java.lang.String DELETED_NODE_DELETED_ON
See Also:
Constant Field Values
Constructor Detail

MarkNodeAsDeletedCommand

public MarkNodeAsDeletedCommand()
Method Detail

execute

public boolean execute(Context context)
                throws java.lang.Exception
Specified by:
execute in class MgnlCommand
Throws:
java.lang.Exception

markAsDeleted

protected void markAsDeleted(Content node)
                      throws javax.jcr.RepositoryException,
                             AccessDeniedException
Throws:
javax.jcr.RepositoryException
AccessDeniedException

purgeContent

protected void purgeContent(Content node)
                     throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

isVersionManually

public boolean isVersionManually()

setVersionManually

public void setVersionManually(boolean versionManually)


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.