info.magnolia.module.forum.admin.command
Class AbstractForumCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.BaseRepositoryCommand
          extended by info.magnolia.module.forum.admin.command.AbstractForumCommand
All Implemented Interfaces:
info.magnolia.commands.chain.Command, Cloneable
Direct Known Subclasses:
DeleteForumCommand, DeleteMessageCommand, DeleteThreadCommand, InvalidateMessageCommand, LockForumCommand, LockThreadCommand, UnlockForumCommand, UnlockThreadCommand, ValidateMessageCommand

public abstract class AbstractForumCommand
extends info.magnolia.commands.impl.BaseRepositoryCommand

Parent command for all forum related commands. Currently only sets forum manager.


Field Summary
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface info.magnolia.commands.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
AbstractForumCommand()
           
 
Method Summary
 boolean execute(info.magnolia.context.Context ctx)
           
protected abstract  void execute(ForumManager forumManager, info.magnolia.cms.core.Content node)
           
 
Methods inherited from class info.magnolia.commands.impl.BaseRepositoryCommand
getJCRNode, getNode, getPath, getRepository, getUuid, release, 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

AbstractForumCommand

public AbstractForumCommand()
Method Detail

execute

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

execute

protected abstract void execute(ForumManager forumManager,
                                info.magnolia.cms.core.Content node)
                         throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException


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