public class ComposeCatalogEntryComponentsTaskCmdImpl extends java.lang.Object implements ComposeCatalogEntryTaskCmd
AbstractFetchCatalogEntrySOICmdImpl
and populates
CatalogEntryNavigationRelationshipType
or KitComponentType
in Catalog Entry Show BOD. This compose command
executes ComposeCatalogEntryDetailsTaskCmdImpl
to populate Details access profile in
Catalog Entry Show BOD before populating CatalogEntryNavigationRelationshipType
or KitComponentType
.
The type of catalog entry will determine which type will be populated. If the catalog entry type is product then the CatalogEntryNavigationRelationshipType
is populated. If the catalog entry type is bundle or kit, then KitComponentType
is populated.
This command uses CatalogEntryDataBean
, passed by Fetch Task Commands, to populate Show BOD.DEFAULTCOMMANDCLASSNAME, NAME
Constructor and Description |
---|
ComposeCatalogEntryComponentsTaskCmdImpl()
The Constructor of this commands retrieves the command key for
instantiating 'ComposeCatalogEntryDetailsTaskCmdImpl' 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 ComposeCatalogEntryComponentsTaskCmdImpl()
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
- ArrayList
object containing one or more
CatalogEntryDataBean
public void execute() throws com.ibm.websphere.command.CommandException
CatalogEntryNavigationRelationshipType
in Catalog Entry Show BOD. KitComponentType
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