com.silverpeas.mailinglist.model
Class MailingListComponent

java.lang.Object
  extended by com.silverpeas.mailinglist.model.MailingListComponent
All Implemented Interfaces:
MessageListener

public class MailingListComponent
extends Object
implements MessageListener


Constructor Summary
MailingListComponent(String componentId)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MailingListComponent

public MailingListComponent(String componentId)
Method Detail

checkSender

public boolean checkSender(String email)
Description copied from interface: MessageListener
Checks if the sender is authorized to send to this mailing list.

Specified by:
checkSender in interface MessageListener
Returns:
true if the sender is authorized - false otherwise.

getComponentId

public String getComponentId()
Description copied from interface: MessageListener
Returns the Silverpeas component's id. This is used to save attachements.

Specified by:
getComponentId in interface MessageListener
Returns:
the Silverpeas component's id.

onMessage

public void onMessage(MessageEvent event)
Description copied from interface: MessageListener
Method called when new messages are available.

Specified by:
onMessage in interface MessageListener
Parameters:
event - the message event.


Copyright © 2016 Silverpeas. All Rights Reserved.