fr.cnes.sitools.security
Class UserResource

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.UsersAndGroupsResource
                  extended by fr.cnes.sitools.security.UserResource
All Implemented Interfaces:
UserResource

public final class UserResource
extends UsersAndGroupsResource
implements UserResource

Resource for managing single User [3317773]
21/06/2011 m.gond {}

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
UserResource()
           
 
Method Summary
 org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
          delete a user
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 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)
           
 org.restlet.representation.Representation getJSON()
          Get JSON representation
 org.restlet.representation.Representation getObject()
          Get class representation
 org.restlet.representation.Representation getXML()
          Get XML representation
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation update(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          update a user
 
Methods inherited from class fr.cnes.sitools.security.UsersAndGroupsResource
checkPropertiesName, doInit, getGroupName, getGroupObject, getMediaTypes, getRepresentation, getStore, getUserId, getUsersAndGroupsAdministration
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, 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

UserResource

public UserResource()
Method Detail

sitoolsDescribe

public void sitoolsDescribe()
Description copied from class: AbstractSitoolsResource
Method implementation mandatory

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

getJSON

public org.restlet.representation.Representation getJSON()
Description copied from interface: UserResource
Get JSON representation

Specified by:
getJSON in interface UserResource
Returns:
JSON

getXML

public org.restlet.representation.Representation getXML()
Description copied from interface: UserResource
Get XML representation

Specified by:
getXML in interface UserResource
Returns:
XML

getObject

public org.restlet.representation.Representation getObject()
Description copied from interface: UserResource
Get class representation

Specified by:
getObject in interface UserResource
Returns:
class

get

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

describeGet

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

update

@Put
public org.restlet.representation.Representation update(org.restlet.representation.Representation representation,
                                                            org.restlet.representation.Variant variant)
Description copied from interface: UserResource
update a user

Specified by:
update in interface UserResource
Parameters:
representation - the representation used
variant - the variant used
Returns:
a representation of the user

describePut

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

delete

public org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
Description copied from interface: UserResource
delete a user

Specified by:
delete in interface UserResource
Parameters:
variant - the variant used
Returns:
a representation of the group user

describeDelete

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


Copyright © 2010-2013 CNES. All Rights Reserved.