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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DataMapperprotected org.springframework.validation.ValidatorvoidupdateNotificationPreferences(BasicNotificationPreferenceListWsDTO notificationPreferences) protected voidupdatePreferences(NotificationPreferenceData changedData, List<NotificationPreferenceData> preferences) protected void
-
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
-
getNotificationPreferenceDTOValidator
protected org.springframework.validation.Validator getNotificationPreferenceDTOValidator() -
validate
-
updatePreferences
protected void updatePreferences(NotificationPreferenceData changedData, List<NotificationPreferenceData> preferences)
-