com.atlassian.confluence.util.message
Class DefaultMessageManager

java.lang.Object
  extended by com.atlassian.confluence.util.message.DefaultMessageManager
All Implemented Interfaces:
MessageManager

public class DefaultMessageManager
extends Object
implements MessageManager

Combines different message managers into one


Constructor Summary
DefaultMessageManager(List<MessageManager> managers)
           
 
Method Summary
 void addMessage(Message message)
          Add a message
 List<Message> getMessages()
          Gets all messages
 void removeMessage(String id)
          Removes a message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMessageManager

public DefaultMessageManager(List<MessageManager> managers)
Method Detail

addMessage

public void addMessage(Message message)
Description copied from interface: MessageManager
Add a message

Specified by:
addMessage in interface MessageManager
Parameters:
message - The message

getMessages

public List<Message> getMessages()
Description copied from interface: MessageManager
Gets all messages

Specified by:
getMessages in interface MessageManager
Returns:
A list of global Message objects

removeMessage

public void removeMessage(String id)
Description copied from interface: MessageManager
Removes a message

Specified by:
removeMessage in interface MessageManager
Parameters:
id - The message id


Copyright © 2003-2011 Atlassian. All Rights Reserved.