public class CacheUserSettingServiceImpl extends Object implements org.exoplatform.commons.api.notification.service.setting.UserSettingService
| Modifier and Type | Field and Description |
|---|---|
static String |
CACHE_NAME |
| Constructor and Description |
|---|
CacheUserSettingServiceImpl(org.exoplatform.services.cache.CacheService cacheService,
JPAUserSettingServiceImpl userSettingService) |
| Modifier and Type | Method and Description |
|---|---|
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) |
void |
initDefaultSettings(String userId) |
void |
initDefaultSettings(org.exoplatform.services.organization.User[] users) |
void |
save(org.exoplatform.commons.api.notification.model.UserSetting notificationSetting) |
void |
saveLastReadDate(String userId,
Long time) |
void |
setUserEnabled(String username,
boolean enabled) |
public static final String CACHE_NAME
public CacheUserSettingServiceImpl(org.exoplatform.services.cache.CacheService cacheService,
JPAUserSettingServiceImpl userSettingService)
public void save(org.exoplatform.commons.api.notification.model.UserSetting notificationSetting)
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 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.UserSettingServicepublic void initDefaultSettings(String userId)
initDefaultSettings in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic void initDefaultSettings(org.exoplatform.services.organization.User[] users)
initDefaultSettings in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic void saveLastReadDate(String userId, Long time)
saveLastReadDate in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServicepublic void setUserEnabled(String username, boolean enabled)
setUserEnabled in interface org.exoplatform.commons.api.notification.service.setting.UserSettingServiceCopyright © 2003–2018 eXo Platform SAS. All rights reserved.