fr.cnes.sitools.form.dataset
Class FormDTOCollectionResource

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.FormDTOCollectionResource

public final class FormDTOCollectionResource
extends AbstractFormResource

Class Resource for managing Project Collection (GET, POST)

Author:
jp.boignard (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
FormDTOCollectionResource()
           
 
Method Summary
 void describeGet(org.restlet.ext.wadl.MethodInfo info)
          Describe the Get command
 void describePost(org.restlet.ext.wadl.MethodInfo info)
          Describe the POST command
 org.restlet.representation.Representation newForm(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create new form
 org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
          get all forms
 void sitoolsDescribe()
          Method implementation mandatory
 
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

FormDTOCollectionResource

public FormDTOCollectionResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

newForm

@Post
public org.restlet.representation.Representation newForm(org.restlet.representation.Representation representation,
                                                              org.restlet.representation.Variant variant)
Create new form

Parameters:
variant - client preferred media type
representation - representation of the formed as function of the variant
Returns:
Representation

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info)
Describe the POST command

Parameters:
info - the info sent

retrieve

@Get
public org.restlet.representation.Representation retrieve(org.restlet.representation.Variant variant)
get all forms

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


Copyright © 2010-2013 CNES. All Rights Reserved.