fr.cnes.sitools.project.graph
Class AbstractGraphResource

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
Direct Known Subclasses:
GraphNotificationResource, GraphResource

public abstract class AbstractGraphResource
extends SitoolsResource

Abstract Resource class for Graphs management

Author:
jp.boignard (AKKA Technologies)

Field Summary
static java.lang.String PROJECT_ID_PARAM_NAME
          The name of the project ID parameter name
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractGraphResource()
          Default constructor
 
Method Summary
 void doInit()
          Initiate the resource
 java.lang.String getGraphId()
          Gets the graphId value
 Graph getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Gets the Graph object from the given representation and the given variant
 ProjectAdministration getProjectAdministration()
          Gets the application value
 java.lang.String getProjectId()
          Gets the projectId value
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 SitoolsStore<Graph> getStore()
          Gets the store value
 void registerObserver(Graph input)
          Register as observer
 void unregisterObserver(Graph input)
          Unregister as Observer
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, configure, getNotificationObject, getRepresentation, getSettings, getSitoolsApplication, getSitoolsSetting
 
Methods inherited from class fr.cnes.sitools.common.resource.AbstractSitoolsResource
getMediaType, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROJECT_ID_PARAM_NAME

public static final java.lang.String PROJECT_ID_PARAM_NAME
The name of the project ID parameter name

See Also:
Constant Field Values
Constructor Detail

AbstractGraphResource

public AbstractGraphResource()
Default constructor

Method Detail

doInit

public final void doInit()
Description copied from class: SitoolsResource
Initiate the resource


getRepresentation

public final org.restlet.representation.Representation getRepresentation(Response response,
                                                                         org.restlet.data.MediaType media)
Response to Representation

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - The response
media - The media type needed
Returns:
Representation

getObject

public final Graph getObject(org.restlet.representation.Representation representation,
                             org.restlet.representation.Variant variant)
Gets the Graph object from the given representation and the given variant

Parameters:
representation - A graph representation
variant - The variant of the representation
Returns:
A Graph Object

registerObserver

public final void registerObserver(Graph input)
Register as observer

Parameters:
input - The ConverterChainedModel

unregisterObserver

public final void unregisterObserver(Graph input)
Unregister as Observer

Parameters:
input - ConverterChainedModel Object

getProjectAdministration

public final ProjectAdministration getProjectAdministration()
Gets the application value

Returns:
the application

getStore

public final SitoolsStore<Graph> getStore()
Gets the store value

Returns:
the store

getProjectId

public final java.lang.String getProjectId()
Gets the projectId value

Returns:
the projectId

getGraphId

public final java.lang.String getGraphId()
Gets the graphId value

Returns:
the graphId


Copyright © 2010-2013 CNES. All Rights Reserved.