com.elasticpath.service.catalogview
Interface FilterFactory

All Superinterfaces:
EpService
All Known Implementing Classes:
FilterFactoryImpl

public interface FilterFactory
extends EpService

Represents a factory which will create Filters based on the given filter Id.


Method Summary
 Filter getFilter(Filter filter)
          Get the filter from the range filter cache with the given temporary filter.
 Filter getFilter(java.lang.String idStr)
          Creates and returns a Filter based on the given identifier string.
 
Methods inherited from interface com.elasticpath.service.EpService
getElasticPath, setElasticPath
 

Method Detail

getFilter

Filter getFilter(Filter filter)
Get the filter from the range filter cache with the given temporary filter.

Parameters:
filter - the temporary created filter.
Returns:
the cached range filter if exists, else return the temporary filter.

getFilter

Filter getFilter(java.lang.String idStr)
                 throws EpCatalogViewRequestBindException
Creates and returns a Filter based on the given identifier string.

Parameters:
idStr - the identifier string
Returns:
a Filter
Throws:
EpCatalogViewRequestBindException - when the given identifier string is invalid