public interface FilterContentTaskCmd extends MarketingSpotCommandBaseTaskCmd
RetrieveContentTaskCmd
command. Then this command checks if the specified marketing content 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 promotion matches
the content url requirements)
are evaluated in the performExecute
method. Filters that cannot be cached
(such as check if the promotion is active) are evaluated in the postFilter
method. If a custom filter is added, and the evaluation can be cached, then extend the
methods removeContent
and removeContentPromotion
. 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 |
getMarketingContent()
This method returns an array of filtered marketing content 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(MarketingSpotActivityMarketingContentDataType content)
This method checks the filters that need to be evaluated every time and
cannot be cached when this command is cached.
|
void |
setMarketingSpotIdAndContentType(java.lang.Integer emsId,
boolean titleContent)
This method sets the e-Marketing Spot ID and content type associated with the content being loaded.
|
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 getMarketingContent()
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(MarketingSpotActivityMarketingContentDataType content)
content
- The content to check.void setMarketingSpotIdAndContentType(java.lang.Integer emsId, boolean titleContent)
emsId
- The e-Marketing Spot ID associated with the content being loaded.titleContent
- True if the content is associated with an e-Marketing Spot title.