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

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.AbstractFormFilter
All Implemented Interfaces:
IResource, Validable
Direct Known Subclasses:
BboxFilter, ConeSearchCartesienFilter, ConeSearchPgSphereFilter, DateBetweenFilter, MultipleValueFilter, NumberFieldFilter, NumericBetweenFilter, OneOrBetweenFilter, SingleValueFilter

public abstract class AbstractFormFilter
extends AbstractFilter

Abstract Class for Dataset Filters with a particular signature generated by Form components

Author:
m.gond

Field Summary
static int COLUMN
          The index of COLUMN
static int DICO_CONCEPT
          The index of COLUMN
static java.lang.String TEMPLATE_PARAM
          The TEMPLATE_PARAM
static java.lang.String TEMPLATE_PARAM_CONCEPT
          The TEMPLATE_PARAM
static int TYPE
          The index of TYPE
static int VALUES
          The index of Values
 
Constructor Summary
AbstractFormFilter()
           
 
Method Summary
 java.lang.String getColumnAlias(boolean isConcept, java.lang.String[] parameters, DataSetApplication dsApplication)
          Get a columnAlias in the list of parameters If isConcept is true, it looks for the column alias in the dictionary mapping of the dataset If isConcept is false, it looks for the column in the parameters
 java.lang.String[] getColumnsAlias(boolean isConcept, java.lang.String[] parameters, DataSetApplication dsApplication)
          Get a list of columnAlias in the list of parameters If isConcept is true, it looks for all the column alias in the dictionary mapping of the dataset If isConcept is false, it looks for the list of column alias in the parameters
 
Methods inherited from class fr.cnes.sitools.dataset.filter.business.AbstractFilter
addParam, convert, createPredicats, 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
 
Methods inherited from interface fr.cnes.sitools.common.validator.Validable
getValidator
 

Field Detail

TYPE

public static final int TYPE
The index of TYPE

See Also:
Constant Field Values

COLUMN

public static final int COLUMN
The index of COLUMN

See Also:
Constant Field Values

VALUES

public static final int VALUES
The index of Values

See Also:
Constant Field Values

TEMPLATE_PARAM

public static final java.lang.String TEMPLATE_PARAM
The TEMPLATE_PARAM

See Also:
Constant Field Values

TEMPLATE_PARAM_CONCEPT

public static final java.lang.String TEMPLATE_PARAM_CONCEPT
The TEMPLATE_PARAM

See Also:
Constant Field Values

DICO_CONCEPT

public static final int DICO_CONCEPT
The index of COLUMN

See Also:
Constant Field Values
Constructor Detail

AbstractFormFilter

public AbstractFormFilter()
Method Detail

getColumnAlias

public java.lang.String getColumnAlias(boolean isConcept,
                                       java.lang.String[] parameters,
                                       DataSetApplication dsApplication)
Get a columnAlias in the list of parameters

If isConcept is true, it looks for the column alias in the dictionary mapping of the dataset

If isConcept is false, it looks for the column in the parameters

Parameters:
isConcept - true if its a concept, false if its directly a columnAlias
parameters - the list of parameters
dsApplication - the DataSetApplicaiton
Returns:
the columnAlias

getColumnsAlias

public java.lang.String[] getColumnsAlias(boolean isConcept,
                                          java.lang.String[] parameters,
                                          DataSetApplication dsApplication)
Get a list of columnAlias in the list of parameters

If isConcept is true, it looks for all the column alias in the dictionary mapping of the dataset

If isConcept is false, it looks for the list of column alias in the parameters

Parameters:
isConcept - true if its a concept, false if its directly a columnAlias
parameters - the list of parameters
dsApplication - the DataSetApplicaiton
Returns:
a list of columnAlias


Copyright © 2010-2013 CNES. All Rights Reserved.