public interface FilterCategoryTaskCmd extends MarketingSpotCommandBaseTaskCmd
RetrieveCategoryTaskCmd
command. Then this command checks if the specified category qualifies for the defined filtering
criteria or not.
See the file samples/samples/dynacache/marketing/cachespec.xml
for details about
caching this command. Filters that can be cached (such as check if in the current catalog)
are evaluated in the performExecute
method. Filters that cannot be cached
(such as check if in current shopping cart) are evaluated in the postFilter
method. If a custom filter is added, and the evaluation can be cached, then extend the
method removeCategory
. If a custom filter is added, and the evaluation
cannot be cached, then extend the method postFilter
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
Default implementation class for this command.
|
static java.lang.String |
NAME
The name of this interface.
|
Modifier and Type | Method and Description |
---|---|
java.util.ArrayList |
getCategories()
This method returns an array of filtered category data objects that will be displayed
in the e-Marketing Spot.
|
EMarketingSpotDataBean[] |
getResultDataBeans()
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
boolean |
postFilter(MarketingSpotActivityCatalogGroupDataType category)
This method checks the filters that need to be evaluated every time and
cannot be cached when this command is cached.
|
void |
setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
setAdditionalParameters, setMarketingSpotBehavior, setPreviewReport, setSpecificLanguageId, setSpecificStoreId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
java.util.ArrayList getCategories()
EMarketingSpotDataBean[] getResultDataBeans()
void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
EMarketingSpotDataBean
can be set.
This is to allow for the appropriate command caching.resultDataBeans
- The data beans containing the results that the e-Marketing Spot displays.boolean postFilter(MarketingSpotActivityCatalogGroupDataType category)
category
- The category to check.