fr.cnes.sitools.dataset.filter
Class FilterChainResource

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.filter.AbstractFilterResource
                      extended by fr.cnes.sitools.dataset.filter.FilterChainResource

public final class FilterChainResource
extends AbstractFilterResource

Resource for a filter

Author:
m.gond (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
FilterChainResource()
           
 
Method Summary
 org.restlet.representation.Representation deleteFilterChainedModel(org.restlet.representation.Variant variant)
          Delete Filter
 void describeDelete(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the Delete command
 void describeGet(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the Get command
 void describePost(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the POST command
 void describePut(org.restlet.ext.wadl.MethodInfo info, java.lang.String path)
          Describe the Put command
 void doInit()
          Initiate the resource
 org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
          Gets the FilterChainedModel object if the call is from RIAP or the FilterChainedModelDTO if the call is from another client
 SitoolsStore<FilterChainedModel> getStore()
          Gets the store value
 org.restlet.representation.Representation newFilter(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Create / attach Filter
 void sitoolsDescribe()
          Method implementation mandatory
 org.restlet.representation.Representation updateFilterChainedModel(org.restlet.representation.Representation representation, org.restlet.representation.Variant variant)
          Update / Validate existing Filter
 
Methods inherited from class fr.cnes.sitools.dataset.filter.AbstractFilterResource
checkValidity, configure, getDatasetId, getFilterModelDTO, getFilterModelDTO, 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

FilterChainResource

public FilterChainResource()
Method Detail

doInit

public void doInit()
Initiate the resource


sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

newFilter

@Post
public org.restlet.representation.Representation newFilter(org.restlet.representation.Representation representation,
                                                                org.restlet.representation.Variant variant)
Create / attach Filter

Parameters:
representation - The representation parameter
variant - client preferred media type
Returns:
Representation

describePost

public void describePost(org.restlet.ext.wadl.MethodInfo info,
                         java.lang.String path)
Describe the POST command

Parameters:
info - the info sent
path - url attachment of the resource

get

@Get
public org.restlet.representation.Representation get(org.restlet.representation.Variant variant)
Gets the FilterChainedModel object if the call is from RIAP or the FilterChainedModelDTO if the call is from another client

Parameters:
variant - The Variant needed
Returns:
the FilterChainedModel object if the client asked for MediaType.APPLICATION_JAVA_OBJECT_SITOOLS_MODEL or the FilterChainedModelDTO otherwise

describeGet

public void describeGet(org.restlet.ext.wadl.MethodInfo info,
                        java.lang.String path)
Describe the Get command

Parameters:
info - the info sent
path - url attachment of the resource

updateFilterChainedModel

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

Parameters:
representation - the representation parameter
variant - client preferred media type
Returns:
Representation

describePut

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

Parameters:
info - the info sent
path - url attachment of the resource

deleteFilterChainedModel

@Delete
public org.restlet.representation.Representation deleteFilterChainedModel(org.restlet.representation.Variant variant)
Delete Filter

Parameters:
variant - client preferred media type
Returns:
Representation

describeDelete

public void describeDelete(org.restlet.ext.wadl.MethodInfo info,
                           java.lang.String path)
Describe the Delete command

Parameters:
info - the info sent
path - url attachment of the resource

getStore

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

Returns:
the store


Copyright © 2010-2013 CNES. All Rights Reserved.