public class LoggerBroker extends AbstractLogEnabled implements Broker, Serviceable
| Modifier and Type | Field and Description | 
|---|---|
protected AmetysObjectResolver | 
_ametysObjectResolver
Avalon component resolving ametys objects 
 | 
protected CurrentUserProvider | 
_currentUserProvider
The user provider 
 | 
| Constructor and Description | 
|---|
LoggerBroker()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected String | 
getCategory(String listId)
Computes the name of the subscribers' list node corresponding to the list id passed as a parameter 
 | 
String | 
getPhoneNumberFromStopRequest()
When a stop request is arriving from broker, the implementation extract the phone number associated 
 | 
void | 
send(Set<String> phoneNumbers,
    String message,
    String listId)
Send the message from the sender to all the phones in the list 
 | 
void | 
service(ServiceManager manager)  | 
enableLogging, getLogger, setupLogger, setupLogger, setupLoggerprotected CurrentUserProvider _currentUserProvider
protected AmetysObjectResolver _ametysObjectResolver
public LoggerBroker()
public void service(ServiceManager manager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void send(Set<String> phoneNumbers, String message, String listId) throws Exception
Brokerpublic String getPhoneNumberFromStopRequest() throws Exception
BrokergetPhoneNumberFromStopRequest in interface BrokerException - if the phone number was not provided within the stop requestprotected String getCategory(String listId)
listId - the id of the jcr node of the subscribers list