Class RecurringNotificationOrchestrator
java.lang.Object
com.bluebell.greenhouse.planter.orchestrators.notification.RecurringNotificationOrchestrator
- All Implemented Interfaces:
GenericOrchestrator
@Service
@Transactional
public class RecurringNotificationOrchestrator
extends Object
implements GenericOrchestrator
Owns the unit of work for the
RecurringNotification endpoints.- Version:
- 3.0.5
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateRecurringNotification(CreateUpdateRecurringNotificationDTO data, AuthenticatedUserRef userRef) Creates aRecurringNotification.voidDeletes theRecurringNotificationwith the resolved type.Obtains the current user'sRecurringNotificationfor the resolved type.Obtains everyRecurringNotificationbelonging to the current user.updateRecurringNotification(CreateUpdateRecurringNotificationDTO data, RecurringNotificationRequestContext context) Updates an existingRecurringNotification.
-
Constructor Details
-
RecurringNotificationOrchestrator
public RecurringNotificationOrchestrator()
-
-
Method Details
-
getRecurringNotificationsForCurrentUser
@Transactional(readOnly=true) public List<RecurringNotificationDTO> getRecurringNotificationsForCurrentUser(AuthenticatedUserRef userRef) Obtains everyRecurringNotificationbelonging to the current user.- Parameters:
userRef-AuthenticatedUserRef- Returns:
RecurringNotificationDTOs
-
getRecurringNotificationByType
@Transactional(readOnly=true) public RecurringNotificationDTO getRecurringNotificationByType(RecurringNotificationRequestContext context) Obtains the current user'sRecurringNotificationfor the resolved type.- Parameters:
context-RecurringNotificationRequestContext- Returns:
RecurringNotificationDTO
-
createRecurringNotification
public RecurringNotificationDTO createRecurringNotification(CreateUpdateRecurringNotificationDTO data, AuthenticatedUserRef userRef) Creates aRecurringNotification.- Parameters:
data-CreateUpdateRecurringNotificationDTOuserRef-AuthenticatedUserRef- Returns:
RecurringNotificationDTO
-
updateRecurringNotification
public RecurringNotificationDTO updateRecurringNotification(CreateUpdateRecurringNotificationDTO data, RecurringNotificationRequestContext context) Updates an existingRecurringNotification.- Parameters:
data-CreateUpdateRecurringNotificationDTOcontext-RecurringNotificationRequestContext- Returns:
RecurringNotificationDTO
-
deleteRecurringNotification
Deletes theRecurringNotificationwith the resolved type.- Parameters:
context-RecurringNotificationRequestContext
-