public class ComposeCatalogEntryMerchandisingAssociationsTaskCmdImpl extends java.lang.Object implements ComposeCatalogEntryTaskCmd
AbstractFetchCatalogEntrySOICmdImpl
. It populates
the Catalog Entry Show BOD using CatalogEntryDataBean
. It calls the
ComposeCatalogEntryDetailsTaskCmdImpl
to populate the Show BOD
according to Details profile and populates following additional field as required
for MerchandisingAssociations profile. DEFAULTCOMMANDCLASSNAME, NAME
Constructor and Description |
---|
ComposeCatalogEntryMerchandisingAssociationsTaskCmdImpl()
The Constructor of this commands retrieves the command key for
instantiating compose task command for details to be used in this
command.
|
Modifier and Type | Method and Description |
---|---|
void |
execute()
The method contains the actual business logic of this task command.
|
CatalogEntryType |
getCatalogEntry()
This method retrieves
CatalogEntryType . |
boolean |
isReadyToCallExecute()
This method is called before calling execute() method to check if a non
null object of
CatalogEntryDataBean is present which is
used to retrieve data required to populate CatalogEntryType . |
void |
reset()
This method is used to reset the objects of
CatalogEntryDataBean and CatalogEntryType
to null value after processing is done. |
void |
setCatalogEntry(java.util.ArrayList avCatalogEntry)
This method sets an
ArrayList object containing
CatalogEntryDataBean which is used to populate
CatalogEntryType . |
public ComposeCatalogEntryMerchandisingAssociationsTaskCmdImpl()
public CatalogEntryType getCatalogEntry()
CatalogEntryType
.getCatalogEntry
in interface ComposeCatalogEntryTaskCmd
CatalogEntryType
.public void setCatalogEntry(java.util.ArrayList avCatalogEntry)
ArrayList
object containing
CatalogEntryDataBean
which is used to populate
CatalogEntryType
.setCatalogEntry
in interface ComposeCatalogEntryTaskCmd
avCatalogEntry
- an ArrayList
object containing one or more
CatalogEntryDataBean
public void execute() throws com.ibm.websphere.command.CommandException
CatalogEntryDataBean
AttributeDataBean
AttributeValueDataBean
CatalogEntryDataBean
RelatedBundleDataBean
RelatedDynamicKitDataBean
RelatedItemDataBean
RelatedProductDataBean
RelatedPackageDataBean
to populate following data in Catalog Entry Show BOD.execute
in interface com.ibm.websphere.command.Command
com.ibm.websphere.command.CommandException
- This exception is raised when a command key is not present
in the command registery.public boolean isReadyToCallExecute()
CatalogEntryDataBean
is present which is
used to retrieve data required to populate CatalogEntryType
.isReadyToCallExecute
in interface com.ibm.websphere.command.Command
CatalogEntryDataBean
is
not null, else returns false.public void reset()
CatalogEntryDataBean
and CatalogEntryType
to null value after processing is done.reset
in interface com.ibm.websphere.command.Command