fr.cnes.sitools.plugins.filters
Class AbstractFilterPluginResource

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.plugins.filters.AbstractFilterPluginResource
Direct Known Subclasses:
FilterClassPluginCollectionResource, FilterClassPluginResource, FilterPluginResource

public class AbstractFilterPluginResource
extends AbstractPluginResource

Base class for filter plugins resources

Author:
m.marseille (AKKA Technologies)

Field Summary
 
Fields inherited from class fr.cnes.sitools.common.SitoolsResource
DEFAULT_MEDIATYPE
 
Constructor Summary
AbstractFilterPluginResource()
           
 
Method Summary
 java.util.Set<ConstraintViolation> checkValidity(FilterModel input)
          Check the validaty of the given FilterModel
 void doInit()
          Initiate the resource
 FilterModelDTO getFilterModelDTO(FilterModel filter)
          Get a FilterModelDTO from a FilterModel
 java.lang.String getFilterPluginId()
          Gets the filterPluginId value
 FilterModelDTO getObject(org.restlet.representation.Representation representation)
          Get a FilterModelDTO from a Representation
 org.restlet.representation.Representation getRepresentation(Response response, org.restlet.data.MediaType media)
          Gets representation according to the specified MediaType.
 void registerObserver(FilterModel input)
          Register as observer
 void sitoolsDescribe()
          Method implementation mandatory
 void unregisterObserver(FilterModel input)
          Unregister as Observer
 
Methods inherited from class fr.cnes.sitools.common.AbstractPluginResource
checkValidity, configure, 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

AbstractFilterPluginResource

public AbstractFilterPluginResource()
Method Detail

sitoolsDescribe

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

Specified by:
sitoolsDescribe in class AbstractSitoolsResource

doInit

public void doInit()
Description copied from class: SitoolsResource
Initiate the resource


getRepresentation

public final 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

getObject

public FilterModelDTO getObject(org.restlet.representation.Representation representation)
Get a FilterModelDTO from a Representation

Parameters:
representation - the Representation
Returns:
a FilterModelDTO

registerObserver

public final void registerObserver(FilterModel input)
Register as observer

Parameters:
input - The ConverterChainedModel

unregisterObserver

public final void unregisterObserver(FilterModel input)
Unregister as Observer

Parameters:
input - ConverterChainedModel Objet

getFilterPluginId

public final java.lang.String getFilterPluginId()
Gets the filterPluginId value

Returns:
the filterPluginId

checkValidity

public final 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

getFilterModelDTO

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

Parameters:
filter - the FilterModel
Returns:
a FilterModelDTO


Copyright © 2010-2013 CNES. All Rights Reserved.