fr.cnes.sitools.security
Class GroupResource

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.GroupResource
All Implemented Interfaces:
GroupResource

public final class GroupResource
extends UsersAndGroupsResource
implements GroupResource

Group resource

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
GroupResource()
          Negotiated content false To avoid a potential bug on content negotiation
 
Method Summary
 org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
          delete a group
 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 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

GroupResource

public GroupResource()
Negotiated content false To avoid a potential bug on content negotiation

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: GroupResource
Get JSON representation

Specified by:
getJSON in interface GroupResource
Returns:
JSON

getXML

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

Specified by:
getXML in interface GroupResource
Returns:
XML

getObject

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

Specified by:
getObject in interface GroupResource
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)
Update Group

Specified by:
update in interface GroupResource
Parameters:
representation - Group representation
variant - client preferred media type
Returns:
Representation

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: GroupResource
delete a group

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

describeDelete

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


Copyright © 2010-2013 CNES. All Rights Reserved.