|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.confluence.util.message.DefaultMessageManager
public class DefaultMessageManager
Handles messages using Bandana for message persistence. Stores space-specific messages against the space and all others in the general bandana context. This ensures the space messages are removed when the space is removed.
| Field Summary | |
|---|---|
static String |
PERSISTENCE_KEY
|
| Constructor Summary | |
|---|---|
DefaultMessageManager()
|
|
| Method Summary | |
|---|---|
void |
addMessage(Message message)
Add a global message |
void |
addMessage(String spaceKey,
String username,
Message message)
Add a message specific to a space and/or user |
List |
getMessages()
Gets all global messages |
List |
getMessages(String spaceKey,
String user)
Get all messages for a given space and/or user, including global messages |
void |
removeMessage(String spaceKey,
String id)
Removes a message |
void |
setBandanaManager(BandanaManager bandanaManager)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String PERSISTENCE_KEY
| Constructor Detail |
|---|
public DefaultMessageManager()
| Method Detail |
|---|
public List getMessages(String spaceKey,
String user)
MessageManager
getMessages in interface MessageManagerspaceKey - The space keyuser - The user name
public List getMessages()
MessageManager
getMessages in interface MessageManager
public void removeMessage(String spaceKey,
String id)
MessageManager
removeMessage in interface MessageManagerspaceKey - The space keyid - The message idpublic void addMessage(Message message)
MessageManager
addMessage in interface MessageManagermessage - The message
public void addMessage(String spaceKey,
String username,
Message message)
MessageManager
addMessage in interface MessageManagerspaceKey - The space keyusername - The user namemessage - The messagepublic void setBandanaManager(BandanaManager bandanaManager)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||