Class NotificationPreferenceController

java.lang.Object
de.hybris.platform.notificationocc.controllers.NotificationPreferenceController

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

    • NotificationPreferenceController

      public NotificationPreferenceController()
  • Method Details

    • 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(Object object, String objectName, org.springframework.validation.Validator validator)
    • updatePreferences

      protected void updatePreferences(NotificationPreferenceData changedData, List<NotificationPreferenceData> preferences)