info.magnolia.module.data.commands
Class TypeDeleteCommand

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

public class TypeDeleteCommand
extends info.magnolia.commands.MgnlCommand

This class will delete a type and the corresponding menue entry.

Version:
$Revision$ ($Author$)
Author:
Enrico Kufahl (BeagleSoft GmbH)

Field Summary
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
TypeDeleteCommand()
           
 
Method Summary
 boolean execute(info.magnolia.context.Context ctx)
          This method deletes the type, if no data items of the specified type are available.
 String getNodeTypeName(javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, release, setClone, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypeDeleteCommand

public TypeDeleteCommand()
Method Detail

execute

public boolean execute(info.magnolia.context.Context ctx)
This method deletes the type, if no data items of the specified type are available. Otherwise an error message will be returned.

Specified by:
execute in class info.magnolia.commands.MgnlCommand
See Also:
Command.execute(org.apache.commons.chain.Context)

getNodeTypeName

public String getNodeTypeName(javax.jcr.Node node)
                       throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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