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, setupLogger
protected CurrentUserProvider _currentUserProvider
protected AmetysObjectResolver _ametysObjectResolver
public LoggerBroker()
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public void send(Set<String> phoneNumbers, String message, String listId) throws Exception
Broker
public String getPhoneNumberFromStopRequest() throws Exception
Broker
getPhoneNumberFromStopRequest
in interface Broker
Exception
- 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