|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Storage and retrieval of portlet message mappings, and the messages.
MessageCentreImpl
Method Summary | |
void |
addInputMapping(MessageBoxKey key,
MessageBoxKey source)
|
void |
addInputMapping(java.lang.String portletID,
java.lang.String name,
MessageBoxKey source)
Set a portlet message key => message box mapping. |
void |
addOutputMapping(MessageBoxKey key,
MessageBoxKey target)
|
void |
addOutputMapping(java.lang.String portletID,
java.lang.String name,
MessageBoxKey target)
Add a portlet message key => message box mapping. |
void |
clearAllOutputMappings(MessageBoxKey key)
Remove any existing output mappings for this key. |
void |
clearInputMapping(MessageBoxKey key)
Remove a message key => message box mapping. |
void |
deleteInput(MessageBoxKey key)
Remove all trace of the specified input message box. |
void |
deleteOutput(MessageBoxKey key)
Remove all trace of the specified output message box. |
MessageBoxKey |
findInputSource(MessageBoxKey key)
|
MessageBoxKey |
findInputSource(java.lang.String portletID,
java.lang.String name)
Get the key of the source message box for this portletID+name combination. |
java.util.Set |
findOutputTargets(MessageBoxKey key)
|
java.util.Set |
findOutputTargets(java.lang.String portletID,
java.lang.String name)
This will always return a Set which contains at least a key for a message box corresponding to the provided portletID+name (it always outputs to itself as well as any other registered mappings) |
java.lang.Object |
get(MessageBoxKey boxKey)
Get message from this message box. |
java.lang.Object |
get(java.lang.String portletID,
java.lang.String name)
Get message for this portletID+name combination. |
java.util.Set |
getAllInputKeys()
|
java.util.Set |
getAllOutputKeys()
|
java.util.Map |
getBoxes()
|
java.util.Set |
getInputKeys(java.lang.String portletID)
|
java.util.Set |
getOutputKeys(java.lang.String portletID)
|
java.util.Set |
getPublicBoxKeys()
|
boolean |
isValid()
|
void |
send(java.util.Set targetKeys,
java.lang.Object message)
Send message to these message boxes. |
void |
send(java.lang.String portletID,
java.lang.String name,
java.lang.Object message)
Send message to this portletID+name combination. |
void |
setStore(MessageStore store)
|
Method Detail |
public void setStore(MessageStore store)
public void addInputMapping(java.lang.String portletID, java.lang.String name, MessageBoxKey source)
portletID
- ID of the portlet which is receiving the inputname
- (local) name of the portlet input, referred to in the portlet's codesource
- the message box from which the portlet's input will read.public void addInputMapping(MessageBoxKey key, MessageBoxKey source)
public void clearInputMapping(MessageBoxKey key)
public void deleteInput(MessageBoxKey key)
public void addOutputMapping(java.lang.String portletID, java.lang.String name, MessageBoxKey target)
portletID
- ID of the portlet which is sending the outputname
- (local) name of the portlet output, referred to in the portlet's codetarget
- the message box to which the portlet's output will copy its message.public void addOutputMapping(MessageBoxKey key, MessageBoxKey target)
public void clearAllOutputMappings(MessageBoxKey key)
public void deleteOutput(MessageBoxKey key)
public java.util.Set findOutputTargets(java.lang.String portletID, java.lang.String name)
public java.util.Set findOutputTargets(MessageBoxKey key)
public MessageBoxKey findInputSource(java.lang.String portletID, java.lang.String name)
public MessageBoxKey findInputSource(MessageBoxKey key)
public java.lang.Object get(java.lang.String portletID, java.lang.String name)
public java.lang.Object get(MessageBoxKey boxKey)
public void send(java.lang.String portletID, java.lang.String name, java.lang.Object message)
public void send(java.util.Set targetKeys, java.lang.Object message)
targetKeys
- Set of MessageBoxKeys to which the message should be sentpublic java.util.Set getInputKeys(java.lang.String portletID)
public java.util.Set getOutputKeys(java.lang.String portletID)
public java.util.Set getPublicBoxKeys()
public java.util.Map getBoxes()
public java.util.Set getAllInputKeys()
public java.util.Set getAllOutputKeys()
public boolean isValid()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |