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, SQLLOGGERappenderPrefix, 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, verifyUserequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckSecurity, getCriteria, getCurrentState, getLiveObjCount, getMboSet, getName, getSchemaOwner, getSetForRelationship, getSetFromKeys, getStateCmdList, getStateList, getURL, verifyUser, verifyUserisAppService, isSingletonService, restartpublic static final java.lang.String PUSHNOTF_LOGGER
public static final MXLogger PUSHNOTFLOGGER
public PushNotificationService()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic PushNotificationService(MXServer mxServer) throws java.rmi.RemoteException
srvEnv - --
the "Server Environment" this Service is being created in.java.rmi.RemoteExceptionpublic void sendMessage(UserInfo userInfo, java.lang.String msg) throws MXException, java.rmi.RemoteException
userInfo - msg - MXExceptionjava.rmi.RemoteExceptionpublic void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage) throws MXException, java.rmi.RemoteException
userInfo - notificationMessage - MXExceptionjava.rmi.RemoteExceptionpublic void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage, java.lang.String eventName) throws MXException, java.rmi.RemoteException
userInfo - notificationMessage - eventName - MXExceptionjava.rmi.RemoteExceptionpublic void sendMessage(UserInfo userInfo, NotificationMessage notificationMessage, java.lang.String eventName, java.lang.String projectName) throws MXException, java.rmi.RemoteException
userInfo - notificationMessage - eventName - MXExceptionjava.rmi.RemoteExceptionpublic 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 - MXExceptionjava.rmi.RemoteExceptionpublic void sendMessageforUserId(UserInfo userInfo, java.lang.String msgRecevingUserId, NotificationMessage notificationMessage, java.lang.String eventName, java.lang.String projectName) throws MXException, java.rmi.RemoteException
MXExceptionjava.rmi.RemoteExceptionpublic MboSetRemote getProviderDevTypeSet(UserInfo userInfo, java.lang.String deviceType, java.lang.String projectName) throws MXException, java.rmi.RemoteException
userInfo - deviceType - MXExceptionjava.rmi.RemoteExceptionpublic MboRemote getProviderMbo() throws MXException, java.rmi.RemoteException
userInfo - deviceType - MXExceptionjava.rmi.RemoteExceptionpublic java.lang.String getProviderName()
public NotificationMessage getNotificationMessage(java.lang.String msg, java.lang.String deviceId) throws MXException, java.rmi.RemoteException
msg - deviceId - MXExceptionjava.rmi.RemoteExceptionpublic NotificationMessage getNotificationMessage(NotificationMessage notificationMessage, java.lang.String deviceId) throws MXException, java.rmi.RemoteException
notificationMessage - deviceId - MXExceptionjava.rmi.RemoteExceptionpublic BaseRouterHandler getRouterHandler()
public void setProviderName(java.lang.String providername)