public interface UserSettingService
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
initDefaultSettings(String userId)
Adds the default settings to a user's node.
|
void |
initDefaultSettings(org.exoplatform.services.organization.User[] users)
Adds the default settings to a list of users.
|
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 |
setUserEnabled(String username,
boolean enabled)
Enables user settings
|
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.void initDefaultSettings(String userId)
userId - The user's remote Id.void initDefaultSettings(org.exoplatform.services.organization.User[] users)
users - The list of users.void saveLastReadDate(String userId, Long time)
userId - The user's idtime - The time millisecondsvoid setUserEnabled(String username, boolean enabled)
username - user idenabled - true/falseCopyright © 2003–2019 eXo Platform SAS. All rights reserved.