public class RetrieveCategoryTaskCmdImpl extends MarketingSpotCommandBaseTaskCmdImpl implements RetrieveCategoryTaskCmd, com.ibm.websphere.cache.Sizeable
/CatalogGroup[CatalogGroupIdentifier[(UniqueID=)] and Description[Attributes[published=1]]]
.
The access profile is specified in wc-admin-component.xml under categoryAccessProfile.
If you want to return different catalog group data to the e-Marketing Spot, then create the file
wc-admin-component.xml under the com.ibm.commerce.marketing-ext directory and specify the applicable access profile.
The CatalogGroup SDO is then returned to the eMarketing Spot JSP snippet
(wrapped in a MarketingSpotActivityCatalogGroupDataType SDO).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.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RetrieveCategoryTaskCmdImpl()
Default constructor for this command.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getCacheKey()
This method generates a key to enable command caching.
|
byte[][] |
getCategoryObjects()
This method returns a byte array of serialized category objects
(
MarketingSpotActivityCatalogGroupDataType )
that are being populated in this command. |
java.util.List |
getCategorySDOObjects()
This method returns a list of category objects
(
MarketingSpotActivityCatalogGroupDataType )
that are being populated in this command. |
long |
getObjectSize()
Returns the estimated footprint size in bytes
of this object and the objects it contains.
|
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.
|
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 |
setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
This method sets the data beans containing the results that the e-Marketing Spot displays.
|
getActiveOrg, getActivityId, getAdditionalParameter, getAdditionalParameters, getCacheId, getCatalogId, getContracts, getDataType, getExperimentId, getLanguageId, getMarketingSpotBehavior, getMemberGroups, getMemberIdsForPersonalizationId, getPreviewReport, getSpecificLanguageId, getSpecificStoreeId, getSpotCacheKey, getStoreId, getTestElementId, isCacheHit, populateActivityData, populateUserData, preExecute, randomize, setAdditionalParameters, setMarketingSpotBehavior, setPreviewReport, setSpecificLanguageId, setSpecificStoreId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setAdditionalParameters, setMarketingSpotBehavior, setPreviewReport, setSpecificLanguageId, setSpecificStoreId
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, preExecute, setCaller, updateCache
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public RetrieveCategoryTaskCmdImpl()
public long getObjectSize()
getObjectSize
in interface com.ibm.websphere.cache.Sizeable
getObjectSize
in class MarketingSpotCommandBaseTaskCmdImpl
public EMarketingSpotDataBean[] getResultDataBeans()
getResultDataBeans
in interface RetrieveCategoryTaskCmd
public java.util.List getCategorySDOObjects()
MarketingSpotActivityCatalogGroupDataType
)
that are being populated in this command.getCategorySDOObjects
in interface RetrieveCategoryTaskCmd
MarketingSpotActivityCatalogGroupDataType
).public byte[][] getCategoryObjects()
MarketingSpotActivityCatalogGroupDataType
)
that are being populated in this command.getCategoryObjects
in interface RetrieveCategoryTaskCmd
MarketingSpotActivityCatalogGroupDataType
).public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class MarketingSpotCommandBaseTaskCmdImpl
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class MarketingSpotCommandBaseTaskCmdImpl
Command.reset()
public void performExecute() throws java.lang.Exception
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class MarketingSpotCommandBaseTaskCmdImpl
java.lang.Exception
TargetableCommand.performExecute()
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.
postExecute
in interface com.ibm.websphere.command.CacheableCommand
postExecute
in class MarketingSpotCommandBaseTaskCmdImpl
CacheableCommand.postExecute()
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.
setOutputProperties
in interface com.ibm.websphere.command.TargetableCommand
setOutputProperties
in class MarketingSpotCommandBaseTaskCmdImpl
TargetableCommand.setOutputProperties(com.ibm.websphere.command.TargetableCommand)
public void setResultDataBeans(EMarketingSpotDataBean[] resultDataBeans)
setResultDataBeans
in interface RetrieveCategoryTaskCmd
resultDataBeans
- The data beans containing the results that the e-Marketing Spot displays.public java.lang.String[] getCacheKey()