fr.cnes.sitools.dataset.plugins.filters.core
Class PrimaryKeyFilter

java.lang.Object
  extended by org.restlet.engine.Helper
      extended by fr.cnes.sitools.common.model.ExtensionModel<E>
          extended by fr.cnes.sitools.common.business.AbstractExtension<FilterParameter>
              extended by fr.cnes.sitools.dataset.filter.business.AbstractFilter
                  extended by fr.cnes.sitools.dataset.plugins.filters.core.PrimaryKeyFilter
All Implemented Interfaces:
IResource, Validable

public class PrimaryKeyFilter
extends AbstractFilter

Dataset filter on primary key, used to get the details of a specific record identified by its primary key

Author:
m.gond

Constructor Summary
PrimaryKeyFilter()
          Default constructor
 
Method Summary
 java.util.List<Predicat> createPredicats(org.restlet.Request request, java.util.List<Predicat> predicats)
          Method to process conversion, Must be overridden
 Validator<?> getValidator()
          Get the Validator on a Object
 
Methods inherited from class fr.cnes.sitools.dataset.filter.business.AbstractFilter
addParam, convert, getDefaultFilter, getDictionaryFromName, getInternParam, getRequestParamsDescription, setDefaultFilter, setRequestParamsDescription
 
Methods inherited from class fr.cnes.sitools.common.business.AbstractExtension
getContext, setContext
 
Methods inherited from class fr.cnes.sitools.common.model.ExtensionModel
getClassAuthor, getClassName, getClassOwner, getClassVersion, getDescription, getDescriptionAction, getId, getName, getParametersMap, setClassAuthor, setClassName, setClassOwner, setClassVersion, setDescription, setDescriptionAction, setId, setName, setParametersMap
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimaryKeyFilter

public PrimaryKeyFilter()
Default constructor

Method Detail

getValidator

public Validator<?> getValidator()
Description copied from interface: Validable
Get the Validator on a Object

Returns:
the validator on a object

createPredicats

public java.util.List<Predicat> createPredicats(org.restlet.Request request,
                                                java.util.List<Predicat> predicats)
                                         throws java.lang.Exception
Description copied from class: AbstractFilter
Method to process conversion, Must be overridden

Specified by:
createPredicats in class AbstractFilter
Parameters:
request - the request to be processed
predicats - the ArrayList to be processed
Returns:
the ArrayList processed
Throws:
java.lang.Exception - TODO EVOLUTION - Possibilité de passer des paramètres d'un filtre à l'autre autrement que par les predicats Voir si besoin.


Copyright © 2010-2013 CNES. All Rights Reserved.