public interface NotificationManagement
| Modifier and Type | Method and Description |
|---|---|
void |
disableUser(long userId,
String connectorId)
This method is called when a user disables a connector.
|
void |
enableUser(long userId,
String connectorId)
This method is called if a user enables a connector.
|
String |
getClientId(String client,
String connectorId) |
String |
getUserAlias(String username,
String connectorId) |
String |
getXMPPId() |
void |
registerMessagerConnector(MessagerConnector connector) |
void |
removeMessagerConnector(String connectorId) |
void |
sendMessage(Long noteId,
Long userToNotify,
NotificationDefinition notificationDefinition,
Map<String,Object> model)
Send notifications to users to inform about created or edited notes.
|
void |
sendMessage(Note note,
Collection<User> usersToNotify,
NotificationDefinition notificationDefinition)
Send notifications to users to inform about created or edited notes.
|
void |
start()
Use this method to initialise the management.
|
void |
stop()
Use this method to stop the management.
|
void disableUser(long userId,
String connectorId)
userId - The users id.connectorId - The connectors id.void enableUser(long userId,
String connectorId)
userId - The users id.connectorId - The connectors id.String getClientId(String client, String connectorId)
client - The client.connectorId - The connectors id.String getUserAlias(String username, String connectorId)
username - Name of the user.connectorId - Id of the connector.String getXMPPId()
void registerMessagerConnector(MessagerConnector connector)
connector - Connector to register.void removeMessagerConnector(String connectorId)
connectorId - Id of the connector to unregister.void sendMessage(Long noteId, Long userToNotify, NotificationDefinition notificationDefinition, Map<String,Object> model)
noteId - Id of the note, which should be send. the note to inform aboutuserToNotify - Id of the user to notify.notificationDefinition - The current definition of the notification.model - Additional elements used for the velocity context.void sendMessage(Note note, Collection<User> usersToNotify, NotificationDefinition notificationDefinition)
note - the note to inform aboutusersToNotify - the users to be notifiednotificationDefinition - The current definition of the notification.void start()
Use this method to initialise the management.
void stop()
Use this method to stop the management.
Copyright © 2019 Communote team. All rights reserved.