Interface HvlNotificationPollingUserService

All Known Implementing Classes:
HvlNotificationPollingUserServiceImpl

@Validated public interface HvlNotificationPollingUserService
This service provides operational and retrieve methods.
  • 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