@Security public class NotificationServiceSecurity extends BaseServiceSecurity implements NotificationService
NotificationService| Constructor and Description |
|---|
NotificationServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
NotificationsStatusVO |
getNotificationsStatus()
Returns the notifications status containing the unread/new notifications and the last view date.
|
NotificationVO |
load(@NotNull java.lang.Long id)
Loads a vo by id
|
void |
markAllRead()
Marks as read all the notifications of the logged user
|
void |
markAsRead(java.util.List<java.lang.Long> ids)
Marks as read the given notification ids
|
void |
remove(java.lang.Long id)
Removes the given notification id
|
void |
removeAll(java.util.Collection<java.lang.Long> ids)
Removes a set of notifications
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
Page<NotificationVO> |
search(NotificationQuery params)
Searches for notifications for the logged user
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic NotificationsStatusVO getNotificationsStatus()
NotificationServiceUserValidationService.updateUserActivity(org.cyclos.model.users.users.UserActivityType) method with the
parameter UserActivityType.NOTIFICATION.getNotificationsStatus in interface NotificationServicepublic NotificationVO load(@NotNull @NotNull java.lang.Long id) throws FrameworkException
NotificationServiceload in interface NotificationServiceFrameworkExceptionpublic void markAllRead()
NotificationServicemarkAllRead in interface NotificationServicepublic void markAsRead(java.util.List<java.lang.Long> ids)
NotificationServicemarkAsRead in interface NotificationServicepublic void remove(java.lang.Long id)
NotificationServiceremove in interface NotificationServicepublic void removeAll(java.util.Collection<java.lang.Long> ids)
NotificationServiceremoveAll in interface NotificationServicepublic Page<NotificationVO> search(NotificationQuery params) throws FrameworkException
NotificationServicesearch in interface NotificationServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity