Class NotificationPreferenceController
- java.lang.Object
-
- de.hybris.platform.notificationoccaddon.controllers.NotificationPreferenceController
-
@Controller @RequestMapping("/{baseSiteId}/users/{userId}/notificationpreferences") public class NotificationPreferenceController extends java.lang.ObjectWeb Services Controller to expose the functionality of theNotificationPreferenceFacade.
-
-
Constructor Summary
Constructors Constructor Description NotificationPreferenceController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataMappergetDataMapper()protected org.springframework.validation.ValidatorgetNotificationPreferenceDTOValidator()NotificationPreferenceListWsDTOgetNotificationPreferences()voidupdateNotificationPreferences(BasicNotificationPreferenceListWsDTO notificationPreferences)protected voidupdatePreferences(NotificationPreferenceData changedData, java.util.List<NotificationPreferenceData> preferences)protected voidvalidate(java.lang.Object object, java.lang.String objectName, org.springframework.validation.Validator validator)
-
-
-
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)
-
updatePreferences
protected void updatePreferences(NotificationPreferenceData changedData, java.util.List<NotificationPreferenceData> preferences)
-
-