fr.cnes.sitools.security
Class EditUserProfileResource

java.lang.Object
  extended by ExtendedWadlServerResource
      extended by fr.cnes.sitools.common.resource.AbstractSitoolsResource
          extended by fr.cnes.sitools.common.SitoolsResource
              extended by fr.cnes.sitools.security.EditUserProfileResource

public class EditUserProfileResource
extends SitoolsResource

Class for Editing an User Profile

Author:
b.fiorito (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
EditUserProfileResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Get user profile representation
 java.lang.String getUserIdentifier()
          Gets the userIdentifier value
 java.util.List<Property> mergeUserProperties(java.util.List<Property> listProp, java.util.List<Property> listPropDb)
          Add Hidden properties to the user property list
 void setUserIdentifier(java.lang.String userIdentifier)
          Sets the value of userIdentifier
 void sitoolsDescribe()
          EditUserProfileResource Describe
 org.restlet.representation.Representation updateProfile(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update user profile
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting, trace, trace
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EditUserProfileResource

public EditUserProfileResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
EditUserProfileResource Describe

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Get user profile representation

Parameters:
variant - client preference for response media type
Returns:
Representation if success

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)

updateProfile

@Put
public org.restlet.representation.Representation updateProfile(org.restlet.representation.Representation representation,
                                                                   org.restlet.representation.Variant variant)
Update user profile

Parameters:
representation - the response to use
variant - client preference for response media type
Returns:
User Representation if success

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)

mergeUserProperties

public java.util.List<Property> mergeUserProperties(java.util.List<Property> listProp,
                                                    java.util.List<Property> listPropDb)
Add Hidden properties to the user property list

Parameters:
listProp - user properties modified from IHM
listPropDb - original user properties from DataBase
Returns:
properties

getUserIdentifier

public java.lang.String getUserIdentifier()
Gets the userIdentifier value

Returns:
the userIdentifier

setUserIdentifier

public void setUserIdentifier(java.lang.String userIdentifier)
Sets the value of userIdentifier

Parameters:
userIdentifier - the userIdentifier to set


Copyright © 2010-2013 CNES. All Rights Reserved.