info.magnolia.module.admininterface.setup
Class AddMainMenuItemTask

java.lang.Object
  extended by info.magnolia.module.delta.AbstractTask
      extended by info.magnolia.module.admininterface.setup.AddMainMenuItemTask
All Implemented Interfaces:
info.magnolia.module.delta.Task
Direct Known Subclasses:
AddSubMenuItemTask

public class AddMainMenuItemTask
extends info.magnolia.module.delta.AbstractTask

Version:
$Revision: $ ($Author: $)
Author:
gjoseph

Field Summary
 
Fields inherited from class info.magnolia.module.delta.AbstractTask
log
 
Constructor Summary
AddMainMenuItemTask(String menuName, String label, String i18nBasename, String onClick, String icon, String orderBefore)
           
 
Method Summary
 void execute(info.magnolia.module.InstallContext ctx)
           
protected  info.magnolia.cms.core.Content getParentNode(info.magnolia.module.InstallContext ctx)
           
 
Methods inherited from class info.magnolia.module.delta.AbstractTask
getDescription, getName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AddMainMenuItemTask

public AddMainMenuItemTask(String menuName,
                           String label,
                           String i18nBasename,
                           String onClick,
                           String icon,
                           String orderBefore)
Parameters:
orderBefore - the menu name before which this new menu should be positioned. ignored if null.
i18nBasename - ignored if null.
Method Detail

execute

public void execute(info.magnolia.module.InstallContext ctx)
             throws info.magnolia.module.delta.TaskExecutionException
Throws:
info.magnolia.module.delta.TaskExecutionException

getParentNode

protected info.magnolia.cms.core.Content getParentNode(info.magnolia.module.InstallContext ctx)
                                                throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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