Interface MessageListener

All Known Implementing Classes:
MailingListComponent

public interface MessageListener
Listener for MessageEvent.
Author:
Emmanuel Hugonnet
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if the sender is authorized to send to this mailing list.
    Returns the Silverpeas component's id.
    void
    Method called when new messages are available.
  • Method Details

    • 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.