Interface HvlNotificationPollingUserRestService

All Known Implementing Classes:
HvlNotificationPollingUserRestController

@Validated @HvlPublicFeignRestService @FeignClient(name="notificationPollingRestService", path="${hvl.notification.polling.service.user.path:/polling/user}", url="${hvl.notification.polling.service.user.url:${hvl.notification.polling.service.url}}") public interface HvlNotificationPollingUserRestService
A restful service which provides specific methods for notification polling users.
  • Method Details

    • getUnreadNotificationCountByUser

      @GetMapping(path="/unread/by-user/{user}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Number> getUnreadNotificationCountByUser(@NotBlank @Size(max=50) @PathVariable("user") @NotBlank @Size(max=50) String user)
      Returns unread notification count according to token owner.
      Parameters:
      user - the assignee user
      Returns:
      the hvl response
    • getUnreadNotificationSubCountByUser

      @GetMapping(path="/unread/sub-count/by-user/{user}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationSubCountModel> getUnreadNotificationSubCountByUser(@NotBlank @Size(max=50) @PathVariable("user") @NotBlank @Size(max=50) String user)
      Returns unread notification count according to token owner by type.
      Parameters:
      user - the assignee user
      Returns:
      the hvl response
    • markReadNotificationByUuid

      @GetMapping(path="/mark-read/by-uuid/{uuid}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> markReadNotificationByUuid(@NotBlank @Size(min=36,max=36) @PathVariable("uuid") @NotBlank @Size(min=36,max=36) String uuid)
      Marks read notification.
      Parameters:
      uuid - the notification id
      Returns:
      the hvl response
    • markAllReadByUser

      @GetMapping(path="/mark-all-read/by-user/{user}", produces="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<Void> markAllReadByUser(@NotBlank @Size(max=50) @PathVariable("user") @NotBlank @Size(max=50) String user)
      Marks all unread notification as read.
      Parameters:
      user - the assignee user
      Returns:
      the hvl response
    • send

      @PostMapping(path="/send", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<HvlNotificationPollingUserModel> send(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUserModel pollingUserModel)
      Sends user specific notification.
      Parameters:
      pollingUserModel - the polling user model
      Returns:
      the hvl response
    • queryPage

      @Validated(HvlNotificationPollingUserValidation.class) @PostMapping(path="/page", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingUserModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUserQueryModel pollingUserQueryModel)
      Returns a page of notification matching the query criteria.
      Parameters:
      pollingUserQueryModel - the polling user query model
      Returns:
      the hvl response
    • queryList

      @Validated(HvlNotificationPollingUserValidation.class) @PostMapping(path="/list", produces="application/json", consumes="application/json") tr.com.havelsan.javarch.service.data.HvlResponse<List<HvlNotificationPollingUserModel>> queryList(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUserQueryModel pollingUserQueryModel)
      Returns a list of notification matching the query criteria.
      Parameters:
      pollingUserQueryModel - the polling user query model
      Returns:
      the hvl response