fr.cnes.sitools.project.graph
Class GraphResource

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.project.graph.AbstractGraphResource
                  extended by fr.cnes.sitools.project.graph.GraphResource

public final class GraphResource
extends AbstractGraphResource

Sprint 6

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.project.graph.AbstractGraphResource
PROJECT_ID_PARAM_NAME
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
GraphResource()
           
 
Method Summary
 void configure(com.thoughtworks.xstream.XStream xstream, Response response)
          Sets the xstream parameters
 org.restlet.representation.Representation deleteGraph(org.restlet.representation.Variant variant)
          Delete graph
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
           
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
           
 void describePost(org.restlet.ext.wadl.MethodInfo info)
           
 void describePut(org.restlet.ext.wadl.MethodInfo info)
           
 org.restlet.representation.Representation newGraph(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing graph
 org.restlet.representation.Representation retrieveGraph(org.restlet.representation.Variant variant)
          get all projects
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateGraph(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing graph
 
Methods inherited from class fr.cnes.sitools.project.graph.AbstractGraphResource
doInit, getGraphId, getObject, getProjectAdministration, getProjectId, getRepresentation, getStore, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
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

GraphResource

public GraphResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

retrieveGraph

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

Parameters:
variant - client preferred media type
Returns:
Representation

describeGet

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

updateGraph

@Put
public org.restlet.representation.Representation updateGraph(org.restlet.representation.Representation representation,
                                                                 org.restlet.representation.Variant variant)
Update / Validate existing graph

Parameters:
representation - Graph representation
variant - client preferred media type
Returns:
Representation

describePut

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

newGraph

@Post
public org.restlet.representation.Representation newGraph(org.restlet.representation.Representation representation,
                                                               org.restlet.representation.Variant variant)
Update / Validate existing graph

Parameters:
representation - Graph representation
variant - client preferred media type
Returns:
Representation

describePost

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

configure

public void configure(com.thoughtworks.xstream.XStream xstream,
                      Response response)
Sets the xstream parameters

Overrides:
configure in class SitoolsResource
Parameters:
xstream - A xstream object
response - the response used

deleteGraph

@Delete
public org.restlet.representation.Representation deleteGraph(org.restlet.representation.Variant variant)
Delete graph

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

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


Copyright © 2010-2013 CNES. All Rights Reserved.