message.store
Class BasicMessageStore
java.lang.Object
   message.store.BasicMessageStore
message.store.BasicMessageStore
- All Implemented Interfaces: 
- MessageStore, java.io.Serializable
- public class BasicMessageStore- extends java.lang.Object- implements MessageStore, java.io.Serializable
Storage and retrieval of portlet message mappings, and the messages. The
 MessageStore instance is kept within the MessageCentre instance for the
 portlet webapp. This implementation just stores the messages locally in Maps,
 and therefore if a BasicMessageStore is set as the store for a MessageCentre,
 the messages will only be visible to portlets within the same webapp.
- See Also:
- Serialized Form
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
inputKeyMap
protected java.util.Map inputKeyMap
outputKeyMap
protected java.util.Map outputKeyMap
msgBoxes
protected java.util.Map msgBoxes
BasicMessageStore
public BasicMessageStore()
initialise
public void initialise(java.lang.String sessionID)
- 
- Specified by:
- initialisein interface- MessageStore
 
- 
 
saveInputMapping
public void saveInputMapping(MessageBoxKey key,
                             MessageBoxKey source)
- 
- Specified by:
- saveInputMappingin interface- MessageStore
 
- 
 
deleteInput
public void deleteInput(MessageBoxKey key)
- 
- Specified by:
- deleteInputin interface- MessageStore
 
- 
 
saveOutputMapping
public void saveOutputMapping(MessageBoxKey key,
                              MessageBoxKey target)
- 
- Specified by:
- saveOutputMappingin interface- MessageStore
 
- 
 
clearAllOutputMappings
public void clearAllOutputMappings(MessageBoxKey key)
- 
- Specified by:
- clearAllOutputMappingsin interface- MessageStore
 
- 
 
deleteOutput
public void deleteOutput(MessageBoxKey key)
- 
- Specified by:
- deleteOutputin interface- MessageStore
 
- 
 
findOutputTargets
public java.util.Set findOutputTargets(MessageBoxKey key)
- 
- Specified by:
- findOutputTargetsin interface- MessageStore
 
- 
 
getInputSource
public MessageBoxKey getInputSource(MessageBoxKey key)
- 
- Specified by:
- getInputSourcein interface- MessageStore
 
- 
 
getMessage
public java.lang.Object getMessage(MessageBoxKey key)
- 
- Specified by:
- getMessagein interface- MessageStore
 
- 
 
sendMessage
public void sendMessage(java.util.Set targetKeys,
                        java.lang.Object message)
- 
- Specified by:
- sendMessagein interface- MessageStore
 
- 
 
getInputKeys
public java.util.Set getInputKeys(java.lang.String portletID)
- 
- Specified by:
- getInputKeysin interface- MessageStore
 
- 
 
getOutputKeys
public java.util.Set getOutputKeys(java.lang.String portletID)
- 
- Specified by:
- getOutputKeysin interface- MessageStore
 
- 
 
getPublicBoxKeys
public java.util.Set getPublicBoxKeys()
- 
- Specified by:
- getPublicBoxKeysin interface- MessageStore
 
- 
 
getBoxes
public java.util.Map getBoxes()
- 
- Specified by:
- getBoxesin interface- MessageStore
 
- 
 
getAllInputKeys
public java.util.Set getAllInputKeys()
- 
- Specified by:
- getAllInputKeysin interface- MessageStore
 
- 
 
getAllOutputKeys
public java.util.Set getAllOutputKeys()
- 
- Specified by:
- getAllOutputKeysin interface- MessageStore
 
- 
 
isValid
public boolean isValid()
- 
- Specified by:
- isValidin interface- MessageStore
 
- 
 
getKeysWithNamespace
protected java.util.Set getKeysWithNamespace(java.util.Collection searchKeys,
                                             java.lang.String ns)
- 
 
-