info.magnolia.module.admininterface.commands
Class MessageCommand

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

public class MessageCommand
extends info.magnolia.commands.MgnlCommand

A command setting a message using the AlertUtil

Version:
$Revision:6423 $ ($Author:scharles $)
Author:
Philipp Bracher

Field Summary
 
Fields inherited from class info.magnolia.commands.MgnlCommand
log
 
Fields inherited from interface org.apache.commons.chain.Command
CONTINUE_PROCESSING, PROCESSING_COMPLETE
 
Constructor Summary
MessageCommand()
           
 
Method Summary
 boolean execute(info.magnolia.context.Context context)
           
 String getI18nBasename()
           
 String getMessage()
           
 void release()
           
 void setI18nBasename(String basename)
           
 void setMessage(String message)
           
 
Methods inherited from class info.magnolia.commands.MgnlCommand
execute, isClone, isEnabled, setClone, 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(info.magnolia.context.Context context)
                throws Exception
Specified by:
execute in class info.magnolia.commands.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()
Overrides:
release in class info.magnolia.commands.MgnlCommand


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