public class PushNotificationService extends AppService implements AppServiceRemote
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PUSHNOTF_LOGGER |
static MXLogger |
PUSHNOTFLOGGER |
APPLOGGER, CRONTASKLOGGER, CRONTASKMGRLOGGER, CRONTASKMGRSQLLOGGER, DBCONNECTIONLOGGER, DDLOGGER, DMLOGGER, EVENTLOGGER, EXCEPTIONLOGGER, MAILLOGGER, MAXIMOLOGGER, MTLOGGER, NULLMBOPOINTER, SECURITY, SENDFAILEDLOGGER, SERVICELOGGER, SQLLOGGER
appenderPrefix, LOGGERNAME_APP, LOGGERNAME_CRONTASK, LOGGERNAME_CRONTASKMGR, LOGGERNAME_DBCONNECTION, LOGGERNAME_DD, LOGGERNAME_DM, LOGGERNAME_DMPREVIEW, LOGGERNAME_EVENT, LOGGERNAME_EXCEPTION, LOGGERNAME_MAIL, LOGGERNAME_MAXIMO, LOGGERNAME_MT, LOGGERNAME_NULLMBOPOINTER, LOGGERNAME_SECURITY, LOGGERNAME_SENDFAILED, LOGGERNAME_SERVICE, LOGGERNAME_SQL, LOGGERNAME_SQL_CRONTASKMGR, LOGGERNAME_TXN, loggerPrefix
Constructor and Description |
---|
PushNotificationService() |
PushNotificationService(MXServer mxServer) |
Modifier and Type | Method and Description |
---|---|
NotificationMessage |
getNotificationMessage(NotificationMessage notificationMessage,
java.lang.String deviceId)
This method creates a new notification message object for the device.
|
NotificationMessage |
getNotificationMessage(java.lang.String msg,
java.lang.String deviceId)
This method creates a new notification message object for the device.
|
MboSetRemote |
getProviderDevTypeSet(UserInfo userInfo,
java.lang.String deviceType,
java.lang.String projectName)
Get Provider info for a device type (Android, iOS)
|
MboRemote |
getProviderMbo()
Get Provider info for a device type (Android, iOS)
|
java.lang.String |
getProviderName() |
BaseRouterHandler |
getRouterHandler() |
void |
sendMessage(UserInfo userInfo,
NotificationMessage notificationMessage)
This method is used to send push notification message.
|
void |
sendMessage(UserInfo userInfo,
NotificationMessage notificationMessage,
java.lang.String eventName)
This method is used to send push notification message.
|
void |
sendMessage(UserInfo userInfo,
NotificationMessage notificationMessage,
java.lang.String eventName,
java.lang.String projectName)
This method is used to send push notification message.
|
void |
sendMessage(UserInfo userInfo,
java.lang.String msg)
This method is used to push notification message.
|
void |
sendMessageforUserId(UserInfo userInfo,
java.lang.String msgRecevingUserId,
NotificationMessage notificationMessage,
java.lang.String eventName,
java.lang.String projectName) |
void |
sendMessageforUserId(UserInfo userInfo,
java.lang.String notifMessageJsonStr,
java.lang.String msgRecevingUserId,
java.lang.String notifMessage,
java.lang.String eventName,
java.lang.String projectName)
This method is used to send push notification message.
|
void |
setProviderName(java.lang.String providername) |
checkSecurity, configure, destroy, freeDBConnection, freeMboSet, getCriteria, getCurrentState, getDBConnection, getLiveObjCount, getLoad, getMaximoDD, getMaxVar, getMboSet, getMXServer, getName, getProfile, getProxy, getSchemaOwner, getServiceInfo, getServiceLogger, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, init, initCriteriaList, isAppService, isRunning, isSingletonService, restart, setProxy, setRunning, setURL, verifyUser, verifyUser
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUser
isAppService, isSingletonService, restart
public static final java.lang.String PUSHNOTF_LOGGER
public static final MXLogger PUSHNOTFLOGGER
public PushNotificationService() throws java.rmi.RemoteException
java.rmi.RemoteException
public PushNotificationService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv
- --
the "Server Environment" this Service is being created in.java.rmi.RemoteException
public void sendMessage(UserInfo userInfo, java.lang.String msg) throws MXException, java.rmi.RemoteException
userInfo
- msg
- MXException
java.rmi.RemoteException
public void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage) throws MXException, java.rmi.RemoteException
userInfo
- notificationMessage
- MXException
java.rmi.RemoteException
public void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage, java.lang.String eventName) throws MXException, java.rmi.RemoteException
userInfo
- notificationMessage
- eventName
- MXException
java.rmi.RemoteException
public void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage, java.lang.String eventName, java.lang.String projectName) throws MXException, java.rmi.RemoteException
userInfo
- notificationMessage
- eventName
- MXException
java.rmi.RemoteException
public void sendMessageforUserId(UserInfo userInfo, java.lang.String notifMessageJsonStr, java.lang.String msgRecevingUserId, java.lang.String notifMessage, java.lang.String eventName, java.lang.String projectName) throws MXException, java.rmi.RemoteException
userInfo
- : The admin user info based on MIF, escalation or cron task.msgRecevingUserId
- notificationMessage
- MXException
java.rmi.RemoteException
public void sendMessageforUserId(UserInfo userInfo, java.lang.String msgRecevingUserId, NotificationMessage notificationMessage, java.lang.String eventName, java.lang.String projectName) throws MXException, java.rmi.RemoteException
MXException
java.rmi.RemoteException
public MboSetRemote getProviderDevTypeSet(UserInfo userInfo, java.lang.String deviceType, java.lang.String projectName) throws MXException, java.rmi.RemoteException
userInfo
- deviceType
- MXException
java.rmi.RemoteException
public MboRemote getProviderMbo() throws MXException, java.rmi.RemoteException
userInfo
- deviceType
- MXException
java.rmi.RemoteException
public java.lang.String getProviderName()
public NotificationMessage getNotificationMessage(java.lang.String msg, java.lang.String deviceId) throws MXException, java.rmi.RemoteException
msg
- deviceId
- MXException
java.rmi.RemoteException
public NotificationMessage getNotificationMessage(NotificationMessage notificationMessage, java.lang.String deviceId) throws MXException, java.rmi.RemoteException
notificationMessage
- deviceId
- MXException
java.rmi.RemoteException
public BaseRouterHandler getRouterHandler()
public void setProviderName(java.lang.String providername)