Interface HvlNotificationPollingUserService
- All Known Implementing Classes:
HvlNotificationPollingUserServiceImpl
@Validated
public interface HvlNotificationPollingUserService
This service provides operational and retrieve methods.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete notification according to expirationDatevoid
deleteByUuidSet
(@NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSetd) Delete by uuid set.getNotificationList
(@NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModeltr.com.havelsan.javarch.data.commons.pageable.HvlPage
<HvlNotificationPollingUserModel> getNotificationPage
(@NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModelGets unread notification count according to token ownerGets unread notification count by type.void
Marks all unread notification as readvoid
markReadByUuidSet
(@NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModel) Mark read by uuid set.void
markReadNotificationByUuid
(@NotBlank @Size(min=36,max=36) String uuid) Mark read notification by uuid.sendNotification
(@NotNull @Valid HvlNotificationPollingUserModel notificationPollingUserModel) Sends user specific notification
-
Method Details
-
sendNotification
HvlNotificationPollingUserModel sendNotification(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserModel notificationPollingUserModel) Sends user specific notification- Parameters:
notificationPollingUserModel
- the notification polling user model- Returns:
- hvl notification polling user model
-
markReadNotificationByUuid
void markReadNotificationByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Mark read notification by uuid.- Parameters:
uuid
- the uuid
-
markAllRead
void markAllRead()Marks all unread notification as read -
markReadByUuidSet
void markReadByUuidSet(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModel) Mark read by uuid set.- Parameters:
notificationPollingUuidSetModel
- the notification polling uuid set model
-
deleteByUuidSet
void deleteByUuidSet(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSetd) Delete by uuid set.- Parameters:
notificationPollingUuidSetModelSetd
- the notification polling uuid set model setd
-
deleteBulk
void deleteBulk()Delete notification according to expirationDate -
getUnreadNotificationCount
Long getUnreadNotificationCount()Gets unread notification count according to token owner- Returns:
- unread notification count
-
getUnreadNotificationCountByType
HvlNotificationSubCountModel getUnreadNotificationCountByType()Gets unread notification count by type.- Returns:
- the unread notification count
-
getNotificationPage
tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingUserModel> getNotificationPage(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModel- Parameters:
notificationPollingUserQueryModel
- the notification polling user query model- Returns:
- notification page
-
getNotificationList
List<HvlNotificationPollingUserModel> getNotificationList(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModel- Parameters:
notificationPollingUserQueryModel
- the notification polling user query model- Returns:
- notification list
-