Interface MessageListener
-
- All Known Implementing Classes:
MailingListComponent
public interface MessageListener
Listener for MessageEvent.- Author:
- Emmanuel Hugonnet
- See Also:
MessageEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
checkSender(String email)
Checks if the sender is authorized to send to this mailing list.String
getComponentId()
Returns the Silverpeas component's id.void
onMessage(MessageEvent event)
Method called when new messages are available.
-
-
-
Method Detail
-
onMessage
void onMessage(MessageEvent event)
Method called when new messages are available.- Parameters:
event
- the message event.
-
getComponentId
String getComponentId()
Returns the Silverpeas component's id. This is used to save attachements.- Returns:
- the Silverpeas component's id.
-
checkSender
boolean checkSender(String email)
Checks if the sender is authorized to send to this mailing list.- Returns:
- true if the sender is authorized - false otherwise.
-
-