lumis.doui.table.filter
Class CompositeTableSourceFilter

Package class diagram package CompositeTableSourceFilter
java.lang.Object
  extended by lumis.doui.table.filter.CompositeTableSourceFilter
All Implemented Interfaces:
ISourceFilter<TableSource>, ITableSourceFilter

public class CompositeTableSourceFilter
extends Object
implements ITableSourceFilter

A source filter that is composed of a list of source filters.

Since:
4.0.5

Constructor Summary
CompositeTableSourceFilter()
           
 
Method Summary
 ITableSourceFilter getFilter(String filterId)
          Returns the filter with the given id.
 String getInputControlType()
          Returns the input control type for this filter doui frontend.
 IQueryFilter getQueryFilter(QueryBase queryBase, IParameters parameters)
          Returns the query filter to be used with the given query.
 void init(TableSource source, Node filtersNode)
          Creates and initializes the filters inside this composite filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeTableSourceFilter

public CompositeTableSourceFilter()
Method Detail

init

public void init(TableSource source,
                 Node filtersNode)
          throws PortalException
Creates and initializes the filters inside this composite filter.

Specified by:
init in interface ISourceFilter<TableSource>
Parameters:
source - the source the filter belongs to.
filtersNode - the filter definition node.
Throws:
PortalException - if the filter could not initialize itself.
Since:
4.0.5

getQueryFilter

public IQueryFilter getQueryFilter(QueryBase queryBase,
                                   IParameters parameters)
                            throws PortalException,
                                   RequiredFilterValueException
Description copied from interface: ITableSourceFilter
Returns the query filter to be used with the given query.

Specified by:
getQueryFilter in interface ITableSourceFilter
Parameters:
queryBase - the query.
parameters - the parameters to be used for the filter.
Returns:
the query filter.
Throws:
PortalException
RequiredFilterValueException - when a required value for the filter was not given. No results should be shown when this happen.

getFilter

public ITableSourceFilter getFilter(String filterId)
                             throws PortalException
Description copied from interface: ISourceFilter
Returns the filter with the given id. The filter instances should use a chain of responsability with their children to find and return the requested source filter.

Specified by:
getFilter in interface ISourceFilter<TableSource>
Specified by:
getFilter in interface ITableSourceFilter
Parameters:
filterId - the filter id.
Returns:
return the filter instance or null if the corresponding filter was not found.
Throws:
PortalException

getInputControlType

public String getInputControlType()
                           throws PortalException
Description copied from interface: ISourceFilter
Returns the input control type for this filter doui frontend.

Specified by:
getInputControlType in interface ISourceFilter<TableSource>
Returns:
the input control type, or null if there is no frontend for this filter instance.
Throws:
PortalException


Lumisportal  5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.