fr.cnes.sitools.dataset.filter
Class AbstractFilterResource

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
Direct Known Subclasses:
FilterActivationResource, FilterChainResource, FilterNotificationResource, FilterPluginsResource, FilterResource

public abstract class AbstractFilterResource
extends AbstractPluginResource

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
AbstractFilterResource()
          Default constructor
 
Method Summary
 java.util.Set<ConstraintViolation> checkValidity(FilterModel input)
          Check the validaty of the given FilterModel
 void configure(com.thoughtworks.xstream.XStream xstream, Response response)
          Configure the XStream
 java.lang.String getDatasetId()
          Get the identifier of the dataset
 FilterModelDTO getFilterModelDTO(AbstractFilter filter)
          Get a FilterModelDTO from a FilterModel
 FilterModelDTO getFilterModelDTO(FilterModel filter)
          Get a FilterModelDTO from a FilterModel
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified MediaType.
 void registerObserver(FilterChainedModel input)
          Register as observer
 void unregisterObserver(FilterChainedModel input)
          Unregister as Observer
 
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, sitoolsDescribe
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFilterResource

public AbstractFilterResource()
Default constructor

Method Detail

getRepresentation

public org.restlet.representation.Representation getRepresentation(Response response,
                                                                   org.restlet.data.MediaType media)
Gets representation according to the specified MediaType.

Overrides:
getRepresentation in class SitoolsResource
Parameters:
response - : The response to get the representation from
media - : The MediaType asked
Returns:
The Representation of the response with the selected mediaType

registerObserver

public void registerObserver(FilterChainedModel input)
Register as observer

Parameters:
input - The FilterChainedModel

unregisterObserver

public void unregisterObserver(FilterChainedModel input)
Unregister as Observer

Parameters:
input - FilterChainedModel Object

getDatasetId

public final java.lang.String getDatasetId()
Get the identifier of the dataset

Returns:
the identifier

checkValidity

public java.util.Set<ConstraintViolation> checkValidity(FilterModel input)
Check the validaty of the given FilterModel

Parameters:
input - the FilterModel to validate
Returns:
a set of ConstraintViolation if the validation fail, null otherwise

configure

public void configure(com.thoughtworks.xstream.XStream xstream,
                      Response response)
Configure the XStream

Overrides:
configure in class AbstractPluginResource
Parameters:
xstream - the XStream to treat
response - the response used

getFilterModelDTO

public FilterModelDTO getFilterModelDTO(FilterModel filter)
Get a FilterModelDTO from a FilterModel

Parameters:
filter - the FilterModel
Returns:
a FilterModelDTO

getFilterModelDTO

public FilterModelDTO getFilterModelDTO(AbstractFilter filter)
Get a FilterModelDTO from a FilterModel

Parameters:
filter - the FilterModel
Returns:
a FilterModelDTO


Copyright © 2010-2013 CNES. All Rights Reserved.