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 String DELETED_NODE_DELETED_BY
           
static String DELETED_NODE_DELETED_ON
           
static String DELETED_NODE_PROP_NAME
           
static String DELETED_NODE_TEMPLATE
           
protected  info.magnolia.cms.core.version.VersionManager versionManager
           
 
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(info.magnolia.context.Context context)
           
 boolean isForcePreDelete()
           
 boolean isVersionManually()
           
protected  void markAsDeleted(javax.jcr.Node node)
           
protected  void preDeleteNode(javax.jcr.Node node, info.magnolia.context.Context context)
           
protected  void purgeContent(javax.jcr.Node node)
           
 void setForcePreDelete(boolean forcePreDelete)
           
 void setVersionManually(boolean versionManually)
           
protected  void storeDeletionInfo(javax.jcr.Node node, info.magnolia.context.Context context)
           
protected  void version(javax.jcr.Node node, info.magnolia.context.Context context)
           
 
Methods inherited from class info.magnolia.module.admininterface.commands.BaseRepositoryCommand
getJCRNode, 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 String DELETED_NODE_TEMPLATE
See Also:
Constant Field Values

DELETED_NODE_DELETED_BY

public static final String DELETED_NODE_DELETED_BY
See Also:
Constant Field Values

DELETED_NODE_DELETED_ON

public static final String DELETED_NODE_DELETED_ON
See Also:
Constant Field Values

DELETED_NODE_PROP_NAME

public static final String DELETED_NODE_PROP_NAME
See Also:
Constant Field Values

versionManager

protected info.magnolia.cms.core.version.VersionManager versionManager
Constructor Detail

MarkNodeAsDeletedCommand

public MarkNodeAsDeletedCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context context)
                throws Exception
Specified by:
execute in class info.magnolia.commands.MgnlCommand
Throws:
Exception

preDeleteNode

protected void preDeleteNode(javax.jcr.Node node,
                             info.magnolia.context.Context context)
                      throws javax.jcr.RepositoryException,
                             info.magnolia.cms.security.AccessDeniedException
Throws:
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException

storeDeletionInfo

protected void storeDeletionInfo(javax.jcr.Node node,
                                 info.magnolia.context.Context context)
                          throws info.magnolia.cms.security.AccessDeniedException,
                                 javax.jcr.PathNotFoundException,
                                 javax.jcr.RepositoryException
Throws:
info.magnolia.cms.security.AccessDeniedException
javax.jcr.PathNotFoundException
javax.jcr.RepositoryException

version

protected void version(javax.jcr.Node node,
                       info.magnolia.context.Context context)
                throws javax.jcr.UnsupportedRepositoryOperationException,
                       javax.jcr.RepositoryException
Throws:
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException

markAsDeleted

protected void markAsDeleted(javax.jcr.Node node)
                      throws javax.jcr.RepositoryException,
                             info.magnolia.cms.security.AccessDeniedException
Throws:
javax.jcr.RepositoryException
info.magnolia.cms.security.AccessDeniedException

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.