Interface HvlNotificationPollingUserService

All Known Implementing Classes:
HvlNotificationPollingUserServiceImpl

@Validated public interface HvlNotificationPollingUserService
This service provides operational and retrieve methods.
  • Method Details

    • getUnreadNotificationCount

      Integer getUnreadNotificationCount(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String assigneeUser)
      Gets unread notification count according to token owner
      Parameters:
      assigneeUser - the assignee user
      Returns:
      unread notification count
    • getUnreadNotificationCountByType

      HvlNotificationSubCountModel getUnreadNotificationCountByType(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String assigneeUser)
      Gets unread notification count by type.
      Parameters:
      assigneeUser - the assignee user
      Returns:
      the unread notification count
    • 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(@NotBlank @Size(max=50) @NotBlank @Size(max=50) String assigneeUser)
      Marks all unread notification as read
      Parameters:
      assigneeUser - the assignee user
    • 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
    • getNotificationPage

      @Validated(HvlNotificationPollingUserValidation.class) 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

      @Validated(HvlNotificationPollingUserValidation.class) 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
    • removeBulk

      void removeBulk()
      Removes notification according to expirationDate