public class UserSettingServiceImpl extends AbstractService implements org.exoplatform.commons.api.notification.service.setting.UserSettingService
| Modifier and Type | Field and Description |
|---|---|
protected static int |
MAX_LIMIT |
static String |
NAME_PATTERN |
ASCENDING, DATE_NODE_PATTERN, DAY, DEFAULT_WORKSPACE_NAME, DESCENDING, EXO_DAILY, EXO_DATE_CREATED, EXO_INSTANTLY, EXO_IS_ACTIVE, EXO_LAST_MODIFIED_DATE, EXO_LAST_READ_DATE, 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 |
|---|
UserSettingServiceImpl(org.exoplatform.commons.api.settings.SettingService settingService,
NotificationConfiguration configuration,
org.exoplatform.commons.api.notification.channel.ChannelManager channelManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMixin(String userId) |
void |
addMixin(org.exoplatform.services.organization.User[] users) |
org.exoplatform.commons.api.notification.model.UserSetting |
get(String userId) |
List<org.exoplatform.commons.api.notification.model.UserSetting> |
getDigestDefaultSettingForAllUser(int offset,
int limit) |
List<org.exoplatform.commons.api.notification.model.UserSetting> |
getDigestSettingForAllUser(org.exoplatform.commons.api.notification.NotificationContext context,
int offset,
int limit) |
List<String> |
getUserHasSettingPlugin(String channelId,
String pluginId) |
List<String> |
getUserSettingByPlugin(String pluginId) |
List<org.exoplatform.commons.api.notification.model.UserSetting> |
getUserSettingWithDeactivate() |
void |
save(org.exoplatform.commons.api.notification.model.UserSetting model) |
void |
saveLastReadDate(String userId,
Long time) |
getCurrentTenantName, getMessageInfoHomeNode, getMessageNodeByPluginId, getNodeIteratorOrderDESC, getNotificationHomeNode, getOrCreateMessageNode, getOrCreateMessageParent, getSession, getValue, getValues, sessionSaveprotected static final int MAX_LIMIT
public static final String NAME_PATTERN
public UserSettingServiceImpl(org.exoplatform.commons.api.settings.SettingService settingService,
NotificationConfiguration configuration,
org.exoplatform.commons.api.notification.channel.ChannelManager channelManager)
public void save(org.exoplatform.commons.api.notification.model.UserSetting model)
save in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic org.exoplatform.commons.api.notification.model.UserSetting get(String userId)
get in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic void addMixin(String userId)
addMixin in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic void addMixin(org.exoplatform.services.organization.User[] users)
addMixin in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic List<org.exoplatform.commons.api.notification.model.UserSetting> getUserSettingWithDeactivate()
getUserSettingWithDeactivate in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic List<String> getUserSettingByPlugin(String pluginId)
getUserSettingByPlugin in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic List<String> getUserHasSettingPlugin(String channelId, String pluginId)
getUserHasSettingPlugin in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic List<org.exoplatform.commons.api.notification.model.UserSetting> getDigestSettingForAllUser(org.exoplatform.commons.api.notification.NotificationContext context, int offset, int limit)
getDigestSettingForAllUser in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic List<org.exoplatform.commons.api.notification.model.UserSetting> getDigestDefaultSettingForAllUser(int offset, int limit)
getDigestDefaultSettingForAllUser in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServiceCopyright © 2003–2015 eXo Platform SAS. All rights reserved.