public class DefaultMessageManager extends Object implements MessageManager
Constructor and Description |
---|
DefaultMessageManager(List<MessageManager> managers) |
Modifier and Type | Method and Description |
---|---|
void |
addMessage(Message message)
Add a message
|
List<Message> |
getMessages()
Gets all messages
|
void |
removeMessage(String id)
Removes a message
|
public DefaultMessageManager(List<MessageManager> managers)
public void addMessage(Message message)
MessageManager
addMessage
in interface MessageManager
message
- The messagepublic List<Message> getMessages()
MessageManager
getMessages
in interface MessageManager
public void removeMessage(String id)
MessageManager
removeMessage
in interface MessageManager
id
- The message idCopyright © 2003–2017 Atlassian. All rights reserved.