Class MyPreferencesResource

    • Constructor Detail

      • MyPreferencesResource

        public MyPreferencesResource()
    • Method Detail

      • getComponentId

        public String getComponentId()
        Description copied from interface: SilverpeasWebResource
        Gets the identifier of the component instance to which the requested resource belongs to.
        Returns:
        the identifier of the Silverpeas component instance.
      • setMyPreferences

        @PUT
        @Consumes("application/json")
        @Produces("application/json")
        public UserPreferencesEntity setMyPreferences​(UserPreferencesEntity preferences)
        Updates the preferences of the user behind the current request.
        Parameters:
        preferences - the user preferences to set.
        Returns:
        the updated user preferences.