info.magnolia.commands.impl
Class MessageCommand

java.lang.Object
  extended by info.magnolia.commands.MgnlCommand
      extended by info.magnolia.commands.impl.MessageCommand
All Implemented Interfaces:
Command

public class MessageCommand
extends MgnlCommand

A command setting a message using the AlertUtil.


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
MessageCommand()
           
 
Method Summary
 boolean execute(Context context)
          This is the actual method to be overridden in descendant classes.
 String getI18nBasename()
           
 String getMessage()
           
 void release()
          If a clone is passivated we call this method.
 void setI18nBasename(String basename)
           
 void setMessage(String message)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
copy, execute, isEnabled, setEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCommand

public MessageCommand()
Method Detail

execute

public boolean execute(Context context)
                throws Exception
Description copied from class: MgnlCommand
This is the actual method to be overridden in descendant classes.

Specified by:
execute in class MgnlCommand
Throws:
Exception
See Also:
MgnlCommand.execute(info.magnolia.context.Context)

getMessage

public String getMessage()
Returns:
Returns the message.

setMessage

public void setMessage(String message)
Parameters:
message - The message to set.

getI18nBasename

public String getI18nBasename()
Returns:
Returns the i18nBasename.

setI18nBasename

public void setI18nBasename(String basename)
Parameters:
basename - The i18nBasename to set.

release

public void release()
Description copied from class: MgnlCommand
If a clone is passivated we call this method. Please clean up private properties.

Overrides:
release in class MgnlCommand


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