Class HvlNotificationPollingUserServiceImpl
java.lang.Object
tr.com.havelsan.javarch.notification.polling.starter.logic.HvlNotificationPollingUserServiceImpl
- All Implemented Interfaces:
HvlNotificationPollingUserService
@Service
public class HvlNotificationPollingUserServiceImpl
extends Object
implements HvlNotificationPollingUserService
The class which implements
HvlNotificationPollingUserService
.-
Constructor Summary
ConstructorDescriptionHvlNotificationPollingUserServiceImpl
(HvlNotificationPollingUserManager notificationPollingUserManager, HvlNotificationPollingUserOperationalManager notificationPollingUserOperationalManager) Instantiates a new HvlNotificationPollingUserService. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Delete notification according to expirationDatevoid
deleteByUuidSet
(@NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSet) 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 notificationPollingUuidSetModelSet) 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
-
Constructor Details
-
HvlNotificationPollingUserServiceImpl
public HvlNotificationPollingUserServiceImpl(HvlNotificationPollingUserManager notificationPollingUserManager, HvlNotificationPollingUserOperationalManager notificationPollingUserOperationalManager) Instantiates a new HvlNotificationPollingUserService.- Parameters:
notificationPollingUserManager
- the notification polling user managernotificationPollingUserOperationalManager
- the notification polling user operational manager
-
-
Method Details
-
sendNotification
public HvlNotificationPollingUserModel sendNotification(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserModel notificationPollingUserModel) Sends user specific notification- Specified by:
sendNotification
in interfaceHvlNotificationPollingUserService
- Parameters:
notificationPollingUserModel
- the notification polling user model- Returns:
- hvl notification polling user model
-
markReadNotificationByUuid
public void markReadNotificationByUuid(@NotBlank @Size(min=36,max=36) @NotBlank @Size(min=36,max=36) String uuid) Mark read notification by uuid.- Specified by:
markReadNotificationByUuid
in interfaceHvlNotificationPollingUserService
- Parameters:
uuid
- the uuid
-
markReadByUuidSet
public void markReadByUuidSet(@NotNull @Valid @RequestBody @NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSet) Mark read by uuid set.- Specified by:
markReadByUuidSet
in interfaceHvlNotificationPollingUserService
- Parameters:
notificationPollingUuidSetModelSet
- the notification polling uuid set model
-
markAllRead
public void markAllRead()Marks all unread notification as read- Specified by:
markAllRead
in interfaceHvlNotificationPollingUserService
-
deleteByUuidSet
public void deleteByUuidSet(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUuidSetModel notificationPollingUuidSetModelSet) Delete by uuid set.- Specified by:
deleteByUuidSet
in interfaceHvlNotificationPollingUserService
- Parameters:
notificationPollingUuidSetModelSet
- the notification polling uuid set model setd
-
deleteBulk
public void deleteBulk()Delete notification according to expirationDate- Specified by:
deleteBulk
in interfaceHvlNotificationPollingUserService
-
getUnreadNotificationCount
Gets unread notification count according to token owner- Specified by:
getUnreadNotificationCount
in interfaceHvlNotificationPollingUserService
- Returns:
- unread notification count
-
getUnreadNotificationCountByType
Gets unread notification count by type.- Specified by:
getUnreadNotificationCountByType
in interfaceHvlNotificationPollingUserService
- Returns:
- the unread notification count
-
getNotificationPage
public tr.com.havelsan.javarch.data.commons.pageable.HvlPage<HvlNotificationPollingUserModel> getNotificationPage(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModel- Specified by:
getNotificationPage
in interfaceHvlNotificationPollingUserService
- Parameters:
notificationPollingUserQueryModel
- the notification polling user query model- Returns:
- notification page
-
getNotificationList
public List<HvlNotificationPollingUserModel> getNotificationList(@NotNull @Valid @NotNull @Valid HvlNotificationPollingUserQueryModel notificationPollingUserQueryModel) Gets notifications according to pollingNotificationQueryModel- Specified by:
getNotificationList
in interfaceHvlNotificationPollingUserService
- Parameters:
notificationPollingUserQueryModel
- the notification polling user query model- Returns:
- notification list
-