public class CatGroupRelAddCmdImpl extends ControllerCommandImpl implements CatGroupRelAddCmd
CatGroupRelAddCmd
is a URL and controller command that:
synchronizeProductSet
parameter is true (default).
CatalogId
, CatGroupIdParent
, CatGroupIdChild
CatalogGroupRelationAccessBean
AddCatgrprelCmd
catalogId
, CatgroupIdParent
, catgroupIdChild
, masterCatalog
. seq
, URL. Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatGroupRelAddCmdImpl".
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
CatGroupRelAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatalogId()
Get the catalog Id for the catalog group to catalog group relationship
|
java.lang.Long |
getCatgroupIdChild()
Get the child catalog group Id for the catalog group to catalog group relationship
|
java.lang.Long |
getCatgroupIdParent()
Get the parent catalog group Id for the catalog group to catalog group relationship
|
java.lang.String |
getRule()
Get the rule
|
java.lang.Double |
getSequence()
Get the sequence number
|
boolean |
getSynchronizeProductSets()
Get the synchronize attribute
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
CatGroupRelAdd command. |
void |
productSetSynchronization()
Product Set Synchronization
|
void |
reset()
This method reset all the variables used in
CatGroupRelAdd command. |
void |
setCatalogId(java.lang.Long anCatalogId)
Set a catalog Id for the catalog group to catalog group relationship
|
void |
setCatgroupIdChild(java.lang.Long anCatgroupIdChild)
Set a child catalog group Id for the catalog group to catalog group relationship
|
void |
setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set a parent catalog group Id for the catalog group to catalog group relationship
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
CatGroupRelAdd command. |
void |
setRule(java.lang.String astrRule)
Set the rule
|
void |
setSequence(java.lang.Double adSequence)
Set the sequence
|
void |
setSynchronizeProductSets(boolean synchronizeProductSets)
Set the synchronize attribute
|
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
validateParameters()
This method validates the parameters for
CatGroupRelAdd command. |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.Long getCatalogId()
getCatalogId
in interface CatGroupRelAddCmd
public java.lang.Long getCatgroupIdChild()
getCatgroupIdChild
in interface CatGroupRelAddCmd
public java.lang.Long getCatgroupIdParent()
getCatgroupIdParent
in interface CatGroupRelAddCmd
public java.lang.String getRule()
public java.lang.Double getSequence()
public java.lang.String getURL()
public boolean getSynchronizeProductSets()
getSynchronizeProductSets
in interface CatGroupRelAddCmd
public void performExecute() throws ECException
CatGroupRelAdd
command.
This method calls the AddCatgrprelCmd
task command and then sets catalog ID, catalog group parent ID, and catalog group child ID in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void productSetSynchronization() throws ECException
ECException
public void reset()
CatGroupRelAdd
command.reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatalogId(java.lang.Long anCatalogId)
setCatalogId
in interface CatGroupRelAddCmd
anCatalogId
- java.lang.Longpublic void setCatgroupIdChild(java.lang.Long anCatgroupIdChild)
setCatgroupIdChild
in interface CatGroupRelAddCmd
anCatgroupIdChild
- java.lang.Longpublic void setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
setCatgroupIdParent
in interface CatGroupRelAddCmd
anCatgroupIdParent
- java.lang.Longpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
CatGroupRelAdd
command.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setRule(java.lang.String astrRule)
setRule
in interface CatGroupRelAddCmd
astrRule
- java.lang.Stringpublic void setSequence(java.lang.Double adSequence)
setSequence
in interface CatGroupRelAddCmd
adSequence
- java.lang.Doublepublic void setURL(java.lang.String astrURL)
setURL
in interface CatGroupRelAddCmd
astrURL
- java.lang.Stringpublic void setSynchronizeProductSets(boolean synchronizeProductSets)
setSynchronizeProductSets
in interface CatGroupRelAddCmd
synchronize
- booleanpublic void validateParameters() throws ECException
CatGroupRelAdd
command.validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException