fr.cnes.sitools.security
Class UsersResource

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.UsersResource

public final class UsersResource
extends UsersAndGroupsResource

Resource for users management [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
UsersResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
           
 void describePost(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 an XML representation
 org.restlet.representation.Representation newUser(org.restlet.representation.Representation representation)
          Create a new user from representation
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation update(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update Group
 
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

UsersResource

public UsersResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

get

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

Parameters:
variant - The variant needed
Returns:
an XML representation of the user

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)

update

@Put
public org.restlet.representation.Representation update(org.restlet.representation.Representation representation,
                                                            org.restlet.representation.Variant variant)
Update Group

Parameters:
representation - input User representation
variant - client preferred media type
Returns:
Representation

describePut

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

newUser

@Post
public org.restlet.representation.Representation newUser(org.restlet.representation.Representation representation)
Create a new user from representation

Parameters:
representation - the representation to use for creation
Returns:
the representation of the answer to the creation

describePost

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


Copyright © 2010-2013 CNES. All Rights Reserved.