public class RetrieveContentTaskCmdImpl extends MarketingSpotCommandBaseTaskCmdImpl implements RetrieveContentTaskCmd, 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 |
---|
RetrieveContentTaskCmdImpl()
Default constructor for this command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] | getCacheKey()
This method generates a key to enable command caching.
|
protected java.lang.String | getCalculationCodeIdFromPromotionId(java.lang.String promotionId)
This method gets the Calculation Code Id give a Promotion Id.
|
protected java.lang.String | getCalculationUsageIdFromPromotionId(java.lang.String promotionId)
This method gets the Calculation Usage Id give a Promotion Id.
|
MarketingContentType | getMarketingContent(java.lang.String marketingContentId)
This method gets the marketing content specified by the marketing content ID.
|
protected MarketingContentType | getMarketingContent(java.lang.String marketingContentId, java.lang.String languageId)
This method gets the marketing content specified by the marketing content ID in the specified language.
|
byte[][] | getMarketingContentObjects()
This method returns a byte array of serialized marketing content objects (MarketingSpotActivityMarketingContentDataType) that are being populated in this command.
|
protected MarketingContentType | getMarketingContentSDO(MarketingContentType marketingContentSdo)
This method returns the MarketingContentType SDO to return to the e-Marketing Spot.
|
java.util.List | getMarketingContentSDOObjects()
This method returns a list of marketing content objects (MarketingSpotActivityMarketingContentDataType) that are being populated in this command.
|
long | getObjectSize()
Returns the estimated footprint size in bytes of this object and the objects it contains.
|
protected java.lang.String | getPStoreIdFromPromotionId(java.lang.String promotionId)
This method gets the promotion store id given a promotion id.
|
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.
|
java.lang.String | replaceUrlParameters(java.lang.String currentUrl, java.lang.String promotionId)
This method gets the URL link to associated with 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 | 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 RetrieveContentTaskCmdImpl()
public long getObjectSize()
public EMarketingSpotDataBean[] getResultDataBeans()
public java.util.List getMarketingContentSDOObjects()
public byte[][] getMarketingContentObjects()
public boolean isReadyToCallExecute()
public void reset()
public void performExecute() throws java.lang.Exception
protected MarketingContentType getMarketingContentSDO(MarketingContentType marketingContentSdo)
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.
public void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
public java.lang.String[] getCacheKey()
protected MarketingContentType getMarketingContent(java.lang.String marketingContentId, java.lang.String languageId) throws java.lang.Exception
public MarketingContentType getMarketingContent(java.lang.String marketingContentId) throws java.lang.Exception
public java.lang.String replaceUrlParameters(java.lang.String currentUrl, java.lang.String promotionId)
protected java.lang.String getPStoreIdFromPromotionId(java.lang.String promotionId)
protected java.lang.String getCalculationCodeIdFromPromotionId(java.lang.String promotionId)
protected java.lang.String getCalculationUsageIdFromPromotionId(java.lang.String promotionId)
public void setMarketingSpotIdAndContentType(java.lang.Integer newEmsId, boolean newTitleContent)