fr.cnes.sitools.security.api
Interface UserResource

All Known Implementing Classes:
UserResource

public interface UserResource

REST API for CRUD operations on a User resource

Author:
AKKA

Method Summary
 org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
          delete a user
 org.restlet.representation.Representation getJSON()
          Get JSON representation
 org.restlet.representation.Representation getObject()
          Get class representation
 org.restlet.representation.Representation getXML()
          Get XML representation
 org.restlet.representation.Representation update(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          update a user
 

Method Detail

getXML

@Get(value="xml")
org.restlet.representation.Representation getXML()
Get XML representation

Returns:
XML

getJSON

@Get(value="json")
org.restlet.representation.Representation getJSON()
Get JSON representation

Returns:
JSON

getObject

@Get(value="class")
org.restlet.representation.Representation getObject()
Get class representation

Returns:
class

update

@Put
org.restlet.representation.Representation update(org.restlet.representation.Representation representation,
                                                     org.restlet.representation.Variant variant)
update a user

Parameters:
representation - the representation used
variant - the variant used
Returns:
a representation of the user

delete

@Delete
org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
delete a user

Parameters:
variant - the variant used
Returns:
a representation of the group user


Copyright © 2010-2013 CNES. All Rights Reserved.