public class TopCatalogGroupAddCmdImpl extends ControllerCommandImpl implements TopCatalogGroupAddCmd
TopCatalogGroupAddCmd
is a URL and controller command that adds a relationship between a catalog and a
catalog group for the top category.
Parameters:
CatalogCatalogGroupRelationAccessBean
AddCattogrpCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.TopCatalogGroupAddCmdImpl
|
static java.lang.String |
COPYRIGHT
The internal copyright field.
|
defaultCommandClassName
Constructor and Description |
---|
TopCatalogGroupAddCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getCatalogId()
Get the catalog Id for the catalog to catalog group relationship
|
java.lang.Long |
getCatgroupId()
Get the Catalog Group Id for the catalog to catalog group relationship
|
java.lang.String |
getURL()
Get the redirect URL
|
void |
performExecute()
The main program for
TopCatalogGroupAdd command. |
void |
reset()
This method reset all the variables used in
TopCatalogGroupAdd command |
void |
setCatalogId(java.lang.Long anCatalogId)
Set a catalog Id for the catalog to top catalog group relationship
|
void |
setCatgroupId(java.lang.Long anCatgroupId)
Set a catalog group Id for the catalog to top catalog group relationship
|
void |
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters for
TopCatalogGroupAdd command |
void |
setURL(java.lang.String astrURL)
Set a redirect URL
|
void |
validateParameters()
This method validates the parameters for
TopCatalogGroupAdd 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 TopCatalogGroupAddCmd
public java.lang.Long getCatgroupId()
getCatgroupId
in interface TopCatalogGroupAddCmd
public java.lang.String getURL()
public void performExecute() throws ECException
TopCatalogGroupAdd
command.
This method first calls the AddCattogrpCmd
task command, and then sets the catalog ID and catalog group ID in the response properties.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
TopCatalogGroupAdd
commandreset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setCatalogId(java.lang.Long anCatalogId)
setCatalogId
in interface TopCatalogGroupAddCmd
anCatalogId
- jav.lang.Longpublic void setCatgroupId(java.lang.Long anCatgroupId)
setCatgroupId
in interface TopCatalogGroupAddCmd
anCatgroupId
- java.lang.Longpublic void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
TopCatalogGroupAdd
commandsetRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- This is an object that represents the request properties.ECApplicationException
public void setURL(java.lang.String astrURL)
setURL
in interface TopCatalogGroupAddCmd
astrURL
- java.lang.Stringpublic void validateParameters() throws ECException
TopCatalogGroupAdd
commandvalidateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException