public class FilterCategoryTaskCmdImpl extends MarketingSpotCommandBaseTaskCmdImpl implements FilterCategoryTaskCmd, com.ibm.websphere.cache.Sizeable
Modifier and Type | Field and Description |
---|---|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
FilterCategoryTaskCmdImpl()
Default constructor for this command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] | getCacheKey()
This method generates a key to enable command caching.
|
java.util.ArrayList | getCategories()
This method returns an array of filtered category data objects that will be displayed in the e-Marketing Spot.
|
long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
java.lang.String | getRemoveIfNotEntitled()
This method gets if catalog entries should not be displayed if they are not entitled to being viewed by the customer.
|
java.lang.String | getRemoveIfNotInCurrentCatalog()
This method gets if catalog groups should not be displayed if they are not in the catalog currently being viewed by the customer.
|
EMarketingSpotDataBean[] | getResultDataBeans()
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
boolean | isReadyToCallExecute()
This method checks if this command is ready to be executed or not.
|
void | performExecute()
This method performs all the logic that needs to be executed in this command.
|
void | postExecute()
This method is called by the Dynamic Cache when the execute method is called, and a cache miss occurs, after the performExecute method is called.
|
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.
|
protected boolean | removeCategory(MarketingSpotActivityCatalogGroupDataType category)
This method is used by custom extensions if new filters are added to check if items should not be returned to the e-Marketing Spot.
|
protected boolean | removeCategoryByEntitlement(MarketingSpotActivityCatalogGroupDataType category)
This method filters the category by catalog entitlement check.
|
protected boolean | removeIfNotInCurrentCatalog(MarketingSpotActivityCatalogGroupDataType catgroup, java.lang.String catalogId, java.lang.Integer storeId)
This method checks whether the given catalog group exists in the current catalog being viewed by the customer.
|
void | reset()
Re-initializes the command for re-execution.
|
void | setOutputProperties(com.ibm.websphere.command.TargetableCommand fromCommand)
Sets the output properties by copying them from another instance of this command.
|
void | setRemoveIfNotEntitled(java.lang.String setting)
This method sets if catalog entries should not be displayed if they are not entitled to being viewed by the customer.
|
void | setRemoveIfNotInCurrentCatalog(java.lang.String setting)
This method sets if catalog groups should not be displayed if they are not in the catalog currently being viewed by the customer.
|
void | setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public FilterCategoryTaskCmdImpl()
public long getObjectSize()
public void setRemoveIfNotInCurrentCatalog(java.lang.String setting)
public java.lang.String getRemoveIfNotInCurrentCatalog()
public void setRemoveIfNotEntitled(java.lang.String setting)
public java.lang.String getRemoveIfNotEntitled()
protected boolean removeIfNotInCurrentCatalog(MarketingSpotActivityCatalogGroupDataType catgroup, java.lang.String catalogId, java.lang.Integer storeId)
public java.util.ArrayList getCategories()
public EMarketingSpotDataBean[] getResultDataBeans()
public boolean isReadyToCallExecute()
public void reset()
public void performExecute() throws java.lang.Exception
public void postExecute()
This method is called by the Dynamic Cache when the execute method is called, and a cache miss occurs, after the performExecute method is called.
public boolean postFilter(MarketingSpotActivityCatalogGroupDataType category)
public void setOutputProperties(com.ibm.websphere.command.TargetableCommand fromCommand)
Sets the output properties by copying them from another instance of this command.
This method is intended to be called by the cacheable command framework. Do not call this method directly.
protected boolean removeCategory(MarketingSpotActivityCatalogGroupDataType category)
protected boolean removeCategoryByEntitlement(MarketingSpotActivityCatalogGroupDataType category)
public void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
public java.lang.String[] getCacheKey()