info.magnolia.dam.commands
Class MarkAssetFolderAsDeletedCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.BaseRepositoryCommand
          extended by info.magnolia.commands.impl.RuleBasedCommand
              extended by info.magnolia.commands.impl.MarkNodeAsDeletedCommand
                  extended by info.magnolia.dam.commands.MarkAssetFolderAsDeletedCommand
All Implemented Interfaces:
info.magnolia.commands.chain.Command, Cloneable

public class MarkAssetFolderAsDeletedCommand
extends info.magnolia.commands.impl.MarkNodeAsDeletedCommand

The command marks the folder as deleted, as well as the assets in it. It has to be created, because mgnl:asset nodetype is not a sub-type of the mgnl:content nodetype used in the standard MarkNodeAsDeletedCommand.


Field Summary
 
Fields inherited from class info.magnolia.commands.impl.MarkNodeAsDeletedCommand
DELETED_NODE_PROP_NAME, DELETED_NODE_TEMPLATE
 
Fields inherited from class info.magnolia.commands.impl.RuleBasedCommand
ATTRIBUTE_RULE
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface info.magnolia.commands.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
MarkAssetFolderAsDeletedCommand()
           
 
Method Summary
protected  void preDeleteNode(javax.jcr.Node node, info.magnolia.context.Context context)
           
 
Methods inherited from class info.magnolia.commands.impl.MarkNodeAsDeletedCommand
execute, isForcePreDelete, isVersionManually, markAsDeleted, purgeContent, setForcePreDelete, setVersionManually, storeDeletionInfo, version
 
Methods inherited from class info.magnolia.commands.impl.RuleBasedCommand
getItemTypes, getRule, release, setItemTypes, setRule
 
Methods inherited from class info.magnolia.commands.impl.BaseRepositoryCommand
getJCRNode, getNode, getPath, getRepository, getUuid, setPath, setRepository, setUuid
 
Methods inherited from class info.magnolia.commands.MgnlCommand
clone, execute, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MarkAssetFolderAsDeletedCommand

public MarkAssetFolderAsDeletedCommand()
Method Detail

preDeleteNode

protected void preDeleteNode(javax.jcr.Node node,
                             info.magnolia.context.Context context)
                      throws javax.jcr.RepositoryException
Overrides:
preDeleteNode in class info.magnolia.commands.impl.MarkNodeAsDeletedCommand
Throws:
javax.jcr.RepositoryException


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.