Class HvlNotificationAdminPollingUserRestController
java.lang.Object
tr.com.havelsan.javarch.notification.polling.starter.controller.HvlNotificationAdminPollingUserRestController
- All Implemented Interfaces:
HvlNotificationAdminPollingUserRestService
@RestController
@RequestMapping("${hvl.notification.polling.user.controller-path:/polling/user}")
@HvlActuatorService(name="HvlNotificationPollingUserRestService",
groupName="HvlNotificationPolling")
public class HvlNotificationAdminPollingUserRestController
extends Object
implements HvlNotificationAdminPollingUserRestService
The class in which service endpoints are defined for notification polling admin operations for user.
-
Constructor Summary
ConstructorDescriptionHvlNotificationAdminPollingUserRestController
(HvlNotificationAdminPollingUserService notificationAdminPollingUserService) Instantiates a new HvlNotificationAdminPollingUserRestController. -
Method Summary
Modifier and TypeMethodDescriptiontr.com.havelsan.javarch.service.data.HvlResponse
<Void> deleteByUuidSet
(@NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSet) Deletes notification by admin.tr.com.havelsan.javarch.service.data.HvlResponse
<HvlNotificationSubCountModel> getUnreadNotificationSubCountByUser
(@NotBlank @Size(max=50) String user) Returns unread notification count according to user by type.tr.com.havelsan.javarch.service.data.HvlResponse
<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingUserModel>> queryPage
(@NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Returns a page of notification matching the query criteria.
-
Constructor Details
-
HvlNotificationAdminPollingUserRestController
public HvlNotificationAdminPollingUserRestController(HvlNotificationAdminPollingUserService notificationAdminPollingUserService) Instantiates a new HvlNotificationAdminPollingUserRestController.- Parameters:
notificationAdminPollingUserService
- the notification admin polling user service
-
-
Method Details
-
deleteByUuidSet
@PreAuthorize("hasAuthority(\'notification_manager\')") public tr.com.havelsan.javarch.service.data.HvlResponse<Void> deleteByUuidSet(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSet) Deletes notification by admin.- Specified by:
deleteByUuidSet
in interfaceHvlNotificationAdminPollingUserRestService
- Parameters:
notificationPollingUuidSetModelSet
- the notification polling uuid set model- Returns:
- the hvl response
-
getUnreadNotificationSubCountByUser
@PreAuthorize("hasAuthority(\'notification_manager\')") public 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 user by type.- Specified by:
getUnreadNotificationSubCountByUser
in interfaceHvlNotificationAdminPollingUserRestService
- Returns:
- the hvl response
-
queryPage
@PreAuthorize("hasAuthority(\'notification_manager\')") public tr.com.havelsan.javarch.service.data.HvlResponse<tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingUserModel>> queryPage(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Returns a page of notification matching the query criteria.- Specified by:
queryPage
in interfaceHvlNotificationAdminPollingUserRestService
- Parameters:
notificationPollingUserQueryModel
- the polling user query model- Returns:
- the hvl response
-