public class QueueMessageImpl extends AbstractService implements org.exoplatform.commons.api.notification.service.QueueMessage, org.picocontainer.Startable
ASCENDING, DATE_NODE_PATTERN, DAY, DEFAULT_WORKSPACE_NAME, DESCENDING, EXO_DAILY, EXO_DATE_CREATED, EXO_INSTANTLY, EXO_IS_ACTIVE, EXO_IS_ENABLED, EXO_LAST_MODIFIED_DATE, EXO_LAST_READ_DATE, EXO_MODIFY, EXO_WEEKLY, JCR_ROOT, MESSAGE_HOME_NODE, MESSAGE_INFO_HOME_NODE, MIX_DEFAULT_SETTING, MIX_NEW_NODE, MIX_SUB_MESSAGE_HOME, NOTIFICATION_HOME_NODE, NOTIFICATION_PARENT_PATH, NTF_CHANNEL, NTF_FROM, NTF_LAST_MODIFIED_DATE, NTF_MESSAGE, NTF_MESSAGE_HOME, NTF_MESSAGE_INFO, NTF_MESSAGE_INFO_HOME, NTF_NAME_SPACE, NTF_NOTIF_DATE, NTF_NOTIF_INFO, NTF_NOTIF_USER, NTF_NOTIFICATION, NTF_ORDER, NTF_OWNER, NTF_OWNER_PARAMETER, NTF_PARENT_ID, NTF_PLUGIN_ID, NTF_PROVIDER_TYPE, NTF_READ, NTF_SEND_TO_DAILY, NTF_SEND_TO_MONTHLY, NTF_SEND_TO_WEEKLY, NTF_SENDER, NTF_SHOW_POPOVER, NTF_TEXT, NTF_TO, SETTING_NODE, SETTING_USER_NODE, SETTING_USER_PATH, STG_CONTEXT, STG_SCOPE, STG_SIMPLE_CONTEXT, STG_SUBCONTEXT, VALUE_PATTERN, WEB_CHANNEL, WORKSPACE_PARAM| Constructor and Description |
|---|
QueueMessageImpl(NotificationConfiguration notificationConfiguration,
org.exoplatform.services.mail.MailService mailService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.commons.api.settings.SettingService settingService,
org.exoplatform.container.xml.InitParams params) |
| Modifier and Type | Method and Description |
|---|---|
void |
enable(boolean enabled) |
org.exoplatform.commons.api.notification.model.MessageInfo |
getMessageInfo(javax.jcr.Node messageInfoNode) |
boolean |
put(org.exoplatform.commons.api.notification.model.MessageInfo message) |
void |
removeAll() |
void |
send() |
boolean |
sendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message) |
void |
start() |
void |
stop() |
getCurrentTenantName, getMessageInfoHomeNode, getMessageNodeByPluginId, getNodeIteratorOrderDESC, getNotificationHomeNode, getOrCreateMessageNode, getOrCreateMessageParent, getSession, getValue, getValues, sessionSavepublic QueueMessageImpl(NotificationConfiguration notificationConfiguration, org.exoplatform.services.mail.MailService mailService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.commons.api.settings.SettingService settingService, org.exoplatform.container.xml.InitParams params)
public boolean put(org.exoplatform.commons.api.notification.model.MessageInfo message)
throws Exception
put in interface org.exoplatform.commons.api.notification.service.QueueMessageExceptionpublic void send()
throws Exception
send in interface org.exoplatform.commons.api.notification.service.QueueMessageExceptionpublic org.exoplatform.commons.api.notification.model.MessageInfo getMessageInfo(javax.jcr.Node messageInfoNode)
public boolean sendMessage(org.exoplatform.commons.api.notification.model.MessageInfo message)
throws Exception
sendMessage in interface org.exoplatform.commons.api.notification.service.QueueMessageExceptionpublic void enable(boolean enabled)
enable in interface org.exoplatform.commons.api.notification.service.QueueMessagepublic void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void removeAll()
removeAll in interface org.exoplatform.commons.api.notification.service.QueueMessageCopyright © 2003–2019 eXo Platform SAS. All rights reserved.