public interface UserSettingService
| Modifier and Type | Method and Description |
|---|---|
void |
addMixin(String userId)
Adds the default settings to a user's node.
|
void |
addMixin(org.exoplatform.services.organization.User[] users)
Adds the default settings to a list of users.
|
UserSetting |
get(String userId)
Gets the notification settings of a user by his remote Id.
|
List<UserSetting> |
getDigestDefaultSettingForAllUser(int offset,
int limit)
Gets all settings of users registering for default daily notifications.
|
List<UserSetting> |
getDigestSettingForAllUser(NotificationContext context,
int offset,
int limit)
Gets the list of user settings which has at least the plug-in to be configured by weekly or daily.
|
List<String> |
getUserHasSettingPlugin(String channelId,
String pluginId)
Gets all Ids of users registering for notifications by a given plugin.
|
List<String> |
getUserSettingByPlugin(String pluginId)
Deprecated.
- Replace by
getUserHasSettingPlugin(String, String) |
List<UserSetting> |
getUserSettingWithDeactivate()
Gets all settings of users who deactivated is FALSE
|
void |
save(UserSetting notificationSetting)
Saves the notification settings of a user.
|
void |
saveLastReadDate(String userId,
Long time)
Stores the read time point when user clicks mark all read his/her messages.
|
void save(UserSetting notificationSetting)
notificationSetting - The notification settings.UserSetting get(String userId)
userId - The user's remote Id.List<UserSetting> getDigestSettingForAllUser(NotificationContext context, int offset, int limit)
context - the weekly or daily conditionoffset - The start point from which the user settings are got.limit - The limited number of user settings.List<UserSetting> getDigestDefaultSettingForAllUser(int offset, int limit)
offset - The start point from which the user settings are got.limit - The limited number of user settings.List<UserSetting> getUserSettingWithDeactivate()
List<String> getUserSettingByPlugin(String pluginId)
getUserHasSettingPlugin(String, String)pluginId - Id of the plugin.List<String> getUserHasSettingPlugin(String channelId, String pluginId)
pluginId - Id of the plugin.void addMixin(String userId)
userId - The user's remote Id.void addMixin(org.exoplatform.services.organization.User[] users)
users - The list of users.void saveLastReadDate(String userId, Long time)
userId - The user's idtime - The time millisecondsCopyright © 2003–2015 eXo Platform SAS. All rights reserved.