@Transactional(propagation=REQUIRED) public abstract class NotificationManagementBase extends Object implements NotificationManagement
Spring Service base class for
MessagingManagement
, provides access to all
services and entities referenced by this service.
NotificationManagement
Constructor and Description |
---|
NotificationManagementBase() |
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) |
protected Principal |
getPrincipal()
Gets the current
principal if one has been set, otherwise returns
null . |
String |
getUserAlias(String username,
String connectorId) |
protected abstract void |
handleDisableUser(long userId,
String connectorId)
Performs the core logic for
disableUser(long, String) |
protected abstract void |
handleEnableUser(long userId,
String connectorId)
Performs the core logic for
enableUser(long, String) |
protected abstract String |
handleGetClientId(String client,
String connectorId)
Performs the core logic for
getClientId(String, String) |
protected abstract String |
handleGetUserAlias(String username,
String connectorId)
Performs the core logic for
getUserAlias(String, String) |
protected abstract void |
handleRemoveMessagerConnector(String connectorId)
Performs the core logic for
removeMessagerConnector(String) |
void |
removeMessagerConnector(String connectorId) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getXMPPId, registerMessagerConnector, sendMessage, sendMessage, start, stop
public void disableUser(long userId, String connectorId)
disableUser
in interface NotificationManagement
userId
- The users id.connectorId
- The connectors id.public void enableUser(long userId, String connectorId)
enableUser
in interface NotificationManagement
userId
- The users id.connectorId
- The connectors id.public String getClientId(String client, String connectorId)
getClientId
in interface NotificationManagement
client
- The client.connectorId
- The connectors id.protected Principal getPrincipal()
principal
if one has been set, otherwise returns
null
.@Transactional(propagation=SUPPORTS) public String getUserAlias(String username, String connectorId)
getUserAlias
in interface NotificationManagement
username
- Name of the user.connectorId
- Id of the connector.protected abstract void handleDisableUser(long userId, String connectorId)
disableUser(long, String)
userId
- Id of the user.connectorId
- Id of the connector.protected abstract void handleEnableUser(long userId, String connectorId)
enableUser(long, String)
userId
- Id of the user.connectorId
- Id of the connector.protected abstract String handleGetClientId(String client, String connectorId)
getClientId(String, String)
client
- The client.connectorId
- Id of the connector.protected abstract String handleGetUserAlias(String username, String connectorId)
getUserAlias(String, String)
username
- The users name.connectorId
- Id of the connector.protected abstract void handleRemoveMessagerConnector(String connectorId)
removeMessagerConnector(String)
connectorId
- Id of the connector.public void removeMessagerConnector(String connectorId)
removeMessagerConnector
in interface NotificationManagement
connectorId
- Id of the connector to unregister.Copyright © 2019 Communote team. All rights reserved.