Class RecurringNotificationApiController
java.lang.Object
com.bluebell.greenhouse.planter.controllers.notification.RecurringNotificationApiController
@RestController
@RequestMapping("${bluebell.base.api.controller.endpoint}/recurring-notification")
@CrossOrigin(origins="*",
methods={GET,DELETE,POST,PUT})
public class RecurringNotificationApiController
extends Object
API controller for
RecurringNotification.- Version:
- 3.0.6
- Author:
- Stephen Prizio
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity<Void> Deletes aRecurringNotificationwith the matching type.org.springframework.http.ResponseEntity<RecurringNotificationDTO> Returns the current user'sRecurringNotificationfor the given type.org.springframework.http.ResponseEntity<List<RecurringNotificationDTO>> Returns the current user'sRecurringNotifications.org.springframework.http.ResponseEntity<RecurringNotificationDTO> postCreateRecurringNotification(@Valid CreateUpdateRecurringNotificationDTO data, AuthenticatedUserRef userRef) Creates aRecurringNotification.org.springframework.http.ResponseEntity<RecurringNotificationDTO> putUpdateRecurringNotification(@Valid CreateUpdateRecurringNotificationDTO data, RecurringNotificationRequestContext context) Updates an existingRecurringNotification.
-
Constructor Details
-
RecurringNotificationApiController
public RecurringNotificationApiController()
-
-
Method Details
-
getRecurringNotificationsForCurrentUser
@GetMapping("/get-for-current-user") public org.springframework.http.ResponseEntity<List<RecurringNotificationDTO>> getRecurringNotificationsForCurrentUser(@AuthenticatedUser AuthenticatedUserRef userRef) Returns the current user'sRecurringNotifications.- Parameters:
userRef-AuthenticatedUserRef- Returns:
ResponseEntity
-
getRecurringNotificationByType
@GetMapping("/get-by-type") public org.springframework.http.ResponseEntity<RecurringNotificationDTO> getRecurringNotificationByType(@ResolvedRecurringNotification RecurringNotificationRequestContext context) Returns the current user'sRecurringNotificationfor the given type.- Parameters:
context-RecurringNotificationRequestContext- Returns:
ResponseEntity
-
postCreateRecurringNotification
@PostMapping("/create-recurring-notification") public org.springframework.http.ResponseEntity<RecurringNotificationDTO> postCreateRecurringNotification(@Valid @RequestBody @Valid CreateUpdateRecurringNotificationDTO data, @AuthenticatedUser AuthenticatedUserRef userRef) Creates aRecurringNotification.- Parameters:
data-CreateUpdateRecurringNotificationDTOuserRef-AuthenticatedUserRef- Returns:
ResponseEntity
-
putUpdateRecurringNotification
@PutMapping("/update-recurring-notification") public org.springframework.http.ResponseEntity<RecurringNotificationDTO> putUpdateRecurringNotification(@Valid @RequestBody @Valid CreateUpdateRecurringNotificationDTO data, @ResolvedRecurringNotification RecurringNotificationRequestContext context) Updates an existingRecurringNotification.- Parameters:
data-CreateUpdateRecurringNotificationDTOcontext-RecurringNotificationRequestContext- Returns:
ResponseEntity
-
deleteRecurringNotification
@DeleteMapping("/delete-recurring-notification") public org.springframework.http.ResponseEntity<Void> deleteRecurringNotification(@ResolvedRecurringNotification RecurringNotificationRequestContext context) Deletes aRecurringNotificationwith the matching type.- Parameters:
context-RecurringNotificationRequestContext- Returns:
ResponseEntity
-