org.silverpeas.preferences.web
Class MyPreferencesResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.preferences.web.MyPreferencesResource

@Service
@RequestScoped
@Authenticated
public class MyPreferencesResource
extends RESTWebService

The preferences of the current user in Silverpeas. This web service provides a way to get and to change its preferences. Currently, only the change of the language is implemented.

Author:
mmoquillon

Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
MyPreferencesResource()
           
 
Method Summary
 String getComponentId()
          Gets the identifier of the component instance to which the requested resource belongs to.
 UserPreferencesEntity setMyPreferences(UserPreferencesEntity preferences)
           
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyPreferencesResource

public MyPreferencesResource()
Method Detail

getComponentId

public String getComponentId()
Description copied from class: RESTWebService
Gets the identifier of the component instance to which the requested resource belongs to.

Specified by:
getComponentId in class RESTWebService
Returns:
the identifier of the Silverpeas component instance.

setMyPreferences

public UserPreferencesEntity setMyPreferences(UserPreferencesEntity preferences)


Copyright © 2016 Silverpeas. All Rights Reserved.