Class NotificationPreferenceController


  • @Controller
    @RequestMapping("/{baseSiteId}/users/{userId}/notificationpreferences")
    public class NotificationPreferenceController
    extends java.lang.Object
    Web Services Controller to expose the functionality of the NotificationPreferenceFacade.
    • Constructor Detail

      • NotificationPreferenceController

        public NotificationPreferenceController()
    • Method Detail

      • getNotificationPreferences

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(method=GET)
        @ResponseBody
        public NotificationPreferenceListWsDTO getNotificationPreferences()
      • updateNotificationPreferences

        @Secured({"ROLE_CUSTOMERGROUP","ROLE_CUSTOMERMANAGERGROUP","ROLE_TRUSTED_CLIENT"})
        @RequestMapping(method=PATCH,
                        consumes={"application/json","application/xml"})
        @ResponseStatus(OK)
        public void updateNotificationPreferences​(@RequestBody
                                                  BasicNotificationPreferenceListWsDTO notificationPreferences)
      • getDataMapper

        protected DataMapper getDataMapper()
      • getNotificationPreferenceDTOValidator

        protected org.springframework.validation.Validator getNotificationPreferenceDTOValidator()
      • validate

        protected void validate​(java.lang.Object object,
                                java.lang.String objectName,
                                org.springframework.validation.Validator validator)