Class DefaultMessageManager
- java.lang.Object
-
- 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
Constructors Constructor Description DefaultMessageManager(List<MessageManager> managers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addMessage(Message message)
Add a messageList<Message>
getMessages()
Gets all messagesvoid
removeMessage(String id)
Removes a message
-
-
-
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 interfaceMessageManager
- Parameters:
message
- The message
-
getMessages
public List<Message> getMessages()
Description copied from interface:MessageManager
Gets all messages- Specified by:
getMessages
in interfaceMessageManager
- 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 interfaceMessageManager
- Parameters:
id
- The message id
-
-