fr.cnes.sitools.form.dataset
Class AbstractFormResource

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.form.dataset.AbstractFormResource
Direct Known Subclasses:
FormDTOCollectionResource, FormDTOResource, FormNotificationResource

public abstract class AbstractFormResource
extends SitoolsResource

Abstract Resource class for Forms management

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractFormResource()
          Default constructor
 
Method Summary
 DataSet getDataset(java.lang.String id)
          Get the dataset object with the given id
 java.lang.String getDatasetId()
          Gets the datasetId value
 FormApplication getFormApplication()
          Gets the application value
 java.lang.String getFormId()
          Gets the formId value
 FormDTO getObject(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Get the object from the representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Response to Representation
 SitoolsStore<Form> getStore()
          Gets the store value
 void registerObserver(Form input)
          Register as observer
 void unregisterObserver(Form 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, trace, trace
 
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
 

Constructor Detail

AbstractFormResource

public AbstractFormResource()
Default constructor

Method Detail

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 to treat
media - the media to use
Returns:
Representation

getObject

public final FormDTO getObject(org.restlet.representation.Representation representation,
                               org.restlet.representation.Variant variant)
Get the object from the representation

Parameters:
representation - the representation to use
variant - the variant to use
Returns:
a project

registerObserver

public final void registerObserver(Form input)
Register as observer

Parameters:
input - The Form object

unregisterObserver

public final void unregisterObserver(Form input)
Unregister as Observer

Parameters:
input - Form Object

getFormApplication

public final FormApplication getFormApplication()
Gets the application value

Returns:
the application

getStore

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

Returns:
the store

getFormId

public final java.lang.String getFormId()
Gets the formId value

Returns:
the formId

getDatasetId

public final java.lang.String getDatasetId()
Gets the datasetId value

Returns:
the datasetId

getDataset

public final DataSet getDataset(java.lang.String id)
Get the dataset object with the given id

Parameters:
id - the id of the dataset
Returns:
a dataset object corresponding to the given id


Copyright © 2010-2013 CNES. All Rights Reserved.