fr.cnes.sitools.form.dataset
Class FormDTOResource

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
                  extended by fr.cnes.sitools.form.dataset.FormDTOResource

public final class FormDTOResource
extends AbstractFormResource

Form management via FormDTO

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
FormDTOResource()
           
 
Method Summary
 org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
          Delete form
 void describeDelete(org.restlet.ext.wadl.MethodInfo info)
          Describe the Delete command
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the Get command
 void describePut(org.restlet.ext.wadl.MethodInfo info)
          Describe the Put command
 org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
          Get a single form by ID
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation update(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing forms
 
Methods inherited from class fr.cnes.sitools.form.dataset.AbstractFormResource
getDataset, getDatasetId, getFormApplication, getFormId, getObject, getRepresentation, getStore, registerObserver, unregisterObserver
 
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

FormDTOResource

public FormDTOResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

retrieve

@Get
public org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
Get a single form by ID

Parameters:
variant - client preferred media type
Returns:
Representation

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info)
Describe the Get command

Parameters:
info - the info sent

update

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

Parameters:
representation - FormDTO representation
variant - client preferred media type
Returns:
Response representation FormDTO Representation if update succeed

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info)
Describe the Put command

Parameters:
info - the info sent

delete

@Delete
public org.restlet.representation.Representation delete(org.restlet.representation.Variant variant)
Delete form

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info)
Describe the Delete command

Parameters:
info - the info sent


Copyright © 2010-2013 CNES. All Rights Reserved.