public class FetchPageDesignCmdImpl extends AbstractFetchNounCmdImpl implements FetchPageDesignCmd
It uses Marketing Engine as the execution engine for evaluating the Winning Layout. Refer to
evaluateWinningLayout(PageDesignType) for more details on the evaluation of a Winning Layout.
Refer to performExecute() for more details on the execution steps that this command follows.
| Constructor and Description |
|---|
FetchPageDesignCmdImpl()
This method is the default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
getFallBackDeviceClass(java.lang.String deviceClass)
For a given deviceClass, this method returns the fall back device class
defined in
wc-component.xml under the extended configuration
group DeviceClassDefaultLayoutFallback. |
static java.lang.String |
getFallBackPageGroup(java.lang.String pageGroup)
For a given pageGroup, this method returns the fall back page group
defined in
wc-component.xml under the extended configuration
group PageGroupDefaultLayoutFallback. |
java.util.List<com.ibm.commerce.pagelayout.facade.datatypes.PageDesignType> |
getNouns()
This method returns the list of nouns retrieved by the fetch implementation.
|
void |
performExecute()
This method performs the main execution logic of this command.
|
void |
reset()
This method resets the instance variables so the command can be reused.
|
getShow, isReadyToCallExecute, setGet, setSearchExpressionexecute, executeFromCache, getCaller, getEntryInfo, getId, getObjectSize, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetShow, setGet, setSearchExpressionpublic FetchPageDesignCmdImpl()
It sets the following:
IBM_Store_All.IBM_Widgets_With_Hierarchy.public void reset()
AbstractFetchNounCmdImplreset in interface com.ibm.websphere.command.Commandreset in class AbstractFetchNounCmdImplCommand.reset()public java.util.List<com.ibm.commerce.pagelayout.facade.datatypes.PageDesignType> getNouns()
AbstractFetchNounCmdgetNouns in interface AbstractFetchNounCmdpublic static java.lang.String getFallBackPageGroup(java.lang.String pageGroup)
wc-component.xml under the extended configuration
group PageGroupDefaultLayoutFallback.
pageGroup - public static java.lang.String getFallBackDeviceClass(java.lang.String deviceClass)
wc-component.xml under the extended configuration
group DeviceClassDefaultLayoutFallback.
deviceClass - public void performExecute()
throws java.lang.Exception
It performs the following:
PageDesign Noun.resolveLayout(PageDesignType).resolveLayout(PageDesignType)
method, it populates the PageDesign Noun with the details of
the Resolved Layout by invoking
populateLayoutDetails(PageDesignType).resolveLayout(PageDesignType),
it populates the PageDesign Noun with the details of the
default layout associated with the layout group and device class.
performExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class com.ibm.websphere.command.TargetableCommandImpljava.lang.Exception - If any exception occurs.