public class FilterContentTaskCmdImpl extends MarketingSpotCommandBaseTaskCmdImpl implements FilterContentTaskCmd, com.ibm.websphere.cache.Sizeable
Modifier and Type | Field and Description |
---|---|
protected CheckCurrentUserInMemberGroupCmd | checkCurrentUserInMemberGroupCmd
An instance of the CheckCurrentUserInMemberGroupCmd object.
|
static java.lang.String | CLASSNAME
The name of this class.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
protected static URLCommandTaskCmd | urlCmd
The class that implements the url commands methods.
|
Constructor and Description |
---|
FilterContentTaskCmdImpl()
Default constructor for this command.
|
Modifier and Type | Method and Description |
---|---|
boolean | checkCatalogEntryEntitlement(java.lang.Long catalogEntryId)
Checks whether the given catalog entry is entitled to the contracts for which the current user is eligible.
|
boolean | checkCatalogGroupEntitlement(java.lang.Long catalogGroupId)
Checks whether the given catalog group is entitled to the contracts for which the current user is eligible.
|
boolean | checkPromotionContentEntitlement(java.lang.String calCodeId, java.lang.String pStoreId)
Checks whether the promotion content that is assigned to the given collateral is entitled to the contracts for which the current user is eligible.
|
java.lang.String[] | getCacheKey()
This method generates a key to enable command caching.
|
protected CheckCurrentUserInMemberGroupCmd | getCheckCurrentUserInMemberGroupCmd()
Gets the current user in the member group.
|
java.util.ArrayList | getMarketingContent()
This method returns an array of filtered marketing content 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 | getRemoveIfMemberNotInPromotionSegment()
This method gets if promotions should not be displayed if the member does not belong to the same segment of the promotion.
|
java.lang.String | getRemoveIfPromotionBeforeStartDate()
This method gets if promotions should not be displayed if their start date is before the current date.
|
java.lang.String | getRemoveIfPromotionNotAvailable()
This method gets if promotions should not be displayed if they do not fall within their active date/time.
|
java.lang.String | getRemoveIfPromotionNotEntitledCatalogEntryOrCategory()
This method gets if promotions should not be displayed if the member is not entitled to the catalog entry or category being promoted.
|
EMarketingSpotDataBean[] | getResultDataBeans()
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
TradingAgreementAccessBean[] | getTradingAgreementAccessBeans()
Gets the list of trading agreement objects that are used to check product and category entitlement.
|
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(MarketingSpotActivityMarketingContentDataType content)
This method checks the filters that need to be evaluated every time and cannot be cached when this command is cached.
|
protected boolean | removeContent(MarketingSpotActivityMarketingContentDataType content)
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 | removeContentPromotion(MarketingSpotActivityMarketingContentDataType content, Promotion promotion)
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 | removeIfPromotionBeforeStartDate(Promotion promotion)
This method checks whether the given promotion is before its start date.
|
protected boolean | removeIfPromotionInactive(Promotion promotion)
This method checks whether the given promotion is inactive.
|
protected boolean | removeIfPromotionIsWrongType(MarketingSpotActivityMarketingContentDataType content, java.lang.String commandType, Promotion promotion)
This method checks whether the given promotion is of the wrong type for the given click-action command.
|
protected boolean | removeIfPromotionIsWrongType(java.lang.String commandType, Promotion promotion)
This method checks whether the given promotion is of the wrong type for the given click-action command.
|
protected boolean | removeIfPromotionNotAvailable(Promotion promotion)
This method checks whether the given promotion falls within its active date/times.
|
protected boolean | removeIfPromotionNotEntitledCatalogEntryOrCategory(java.lang.String calCodeId, java.lang.String pStoreId)
This method checks whether the member is entitled to the catalog entries or categories in the given promotion.
|
protected boolean | removeLargeAttachment(MarketingContentType marketingContent, java.lang.String contentId)
Checks whether the Marketing Content contains a Large Attachment that exceeds the Marketing Attachment Limit if the Marketing Attachment Limit Override is not enabled for the content.
|
void | reset()
Re-initializes the command for re-execution.
|
void | setMarketingSpotIdAndContentType(java.lang.Integer newEmsId, boolean newTitleContent)
This method sets the e-Marketing Spot ID and content type associated with the content being loaded.
|
void | setOutputProperties(com.ibm.websphere.command.TargetableCommand fromCommand)
Sets the output properties by copying them from another instance of this command.
|
void | setRemoveIfMemberNotInPromotionSegment(java.lang.String setting)
This method sets if promotions should not be displayed if the member does not belong to the same segment of the promotion.
|
void | setRemoveIfPromotionBeforeStartDate(java.lang.String setting)
This method sets if promotions should not be displayed if their start date is before the current date.
|
void | setRemoveIfPromotionNotAvailable(java.lang.String setting)
This method sets if promotions should not be displayed if they do not fall within their active date/time.
|
void | setRemoveIfPromotionNotEntitledCatalogEntryOrCategory(java.lang.String setting)
This method sets if promotions should not be displayed if the member is not entitled to the catalog entry or category being promoted.
|
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
protected transient CheckCurrentUserInMemberGroupCmd checkCurrentUserInMemberGroupCmd
protected static URLCommandTaskCmd urlCmd
public FilterContentTaskCmdImpl()
public long getObjectSize()
public void setRemoveIfPromotionNotAvailable(java.lang.String setting)
public java.lang.String getRemoveIfPromotionNotAvailable()
public void setRemoveIfPromotionBeforeStartDate(java.lang.String setting)
public java.lang.String getRemoveIfPromotionBeforeStartDate()
public void setRemoveIfMemberNotInPromotionSegment(java.lang.String setting)
public java.lang.String getRemoveIfMemberNotInPromotionSegment()
public void setRemoveIfPromotionNotEntitledCatalogEntryOrCategory(java.lang.String setting)
public java.lang.String getRemoveIfPromotionNotEntitledCatalogEntryOrCategory()
public java.util.ArrayList getMarketingContent()
public EMarketingSpotDataBean[] getResultDataBeans()
public boolean isReadyToCallExecute()
public void reset()
protected boolean removeIfPromotionInactive(Promotion promotion)
protected boolean removeIfPromotionNotAvailable(Promotion promotion)
protected boolean removeIfPromotionBeforeStartDate(Promotion promotion)
protected boolean removeIfPromotionIsWrongType(java.lang.String commandType, Promotion promotion)
protected boolean removeIfPromotionIsWrongType(MarketingSpotActivityMarketingContentDataType content, java.lang.String commandType, Promotion promotion)
protected CheckCurrentUserInMemberGroupCmd getCheckCurrentUserInMemberGroupCmd()
protected boolean removeIfPromotionNotEntitledCatalogEntryOrCategory(java.lang.String calCodeId, java.lang.String pStoreId)
public void performExecute() throws java.lang.Exception
public boolean postFilter(MarketingSpotActivityMarketingContentDataType content)
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 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 removeContent(MarketingSpotActivityMarketingContentDataType content)
protected boolean removeContentPromotion(MarketingSpotActivityMarketingContentDataType content, Promotion promotion)
public void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
public java.lang.String[] getCacheKey()
public TradingAgreementAccessBean[] getTradingAgreementAccessBeans()
public boolean checkCatalogEntryEntitlement(java.lang.Long catalogEntryId)
public boolean checkCatalogGroupEntitlement(java.lang.Long catalogGroupId)
public boolean checkPromotionContentEntitlement(java.lang.String calCodeId, java.lang.String pStoreId)
public void setMarketingSpotIdAndContentType(java.lang.Integer newEmsId, boolean newTitleContent)
protected boolean removeLargeAttachment(MarketingContentType marketingContent, java.lang.String contentId)