fr.cnes.sitools.dataset.converter
Class ConverterActivationResource

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.common.AbstractPluginResource
                  extended by fr.cnes.sitools.dataset.converter.AbstractConverterResource
                      extended by fr.cnes.sitools.dataset.converter.ConverterActivationResource

public final class ConverterActivationResource
extends AbstractConverterResource

Activate or disactivate a Converter

Author:
m.gond

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
ConverterActivationResource()
           
 
Method Summary
 void describePut(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the PUT method
 void doInit()
          Initiate the resource
 SitoolsStore<ConverterChainedModel> getStore()
          Gets the store value
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation validate(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Actions on PUT
 
Methods inherited from class fr.cnes.sitools.dataset.converter.AbstractConverterResource
addCurrentClassDescriptions, checkValidity, configure, getConverterModel, getConverterModelDTO, getDatasetId, getRepresentation, registerObserver, unregisterObserver
 
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource
checkValidity, fromListToMap
 
Methods inherited from class fr.cnes.sitools.common.SitoolsResource
addStandardGetRequestInfo, addStandardInternalServerErrorInfo, addStandardNotificationInfo, addStandardObjectResponseInfo, addStandardPostOrPutRequestInfo, addStandardResourceCollectionFilterInfo, addStandardResponseInfo, addStandardSimpleResponseInfo, 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

ConverterActivationResource

public ConverterActivationResource()
Method Detail

doInit

public void doInit()
Initiate the resource

Overrides:
doInit in class AbstractConverterResource

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

validate

@Put
public org.restlet.representation.Representation validate(org.restlet.representation.Representation representation,
                                                              org.restlet.representation.Variant variant)
Actions on PUT

Parameters:
representation - could be null.
variant - MediaType of response
Returns:
Representation response

describePut

public void describePut(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)
Describe the PUT method

Parameters:
info - WADL method information
path - url attachment in application

getStore

public SitoolsStore<ConverterChainedModel> getStore()
Gets the store value

Returns:
the store


Copyright © 2010-2013 CNES. All Rights Reserved.