com.ibm.commerce.catalogmanagement.commands
Class CatGroupRelDeleteCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.ControllerCommandImpl
-
- com.ibm.commerce.catalogmanagement.commands.CatGroupRelDeleteCmdImpl
-
- All Implemented Interfaces:
- CatGroupRelDeleteCmd, AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CatGroupRelDeleteCmdImpl extends ControllerCommandImpl implements CatGroupRelDeleteCmd
TheCatGroupRelDeleteCmd
is a URL and controller command that:- Deletes a relationship between a parent catalog group and a child catalog group.
- If the parent catalog group is generic, then deletes all the catalog group relationships with the specified child catalog group ID.
- If the child catalog group is generic, then deletes all the catalog group relationships with the specified parent catalog group ID.
- Synchronizes product sets only if the
synchronizeProductSet
parameter is true (default).
CatalogId
,CatGroupIdParent
,CatGroupIdChild
CatalogId
,CatGroupIdParent=*
,CatGroupIdChild
CatalogId
,CatGroupIdParent
,CatGroupIdChild=*
CatalogGroupRelationshipAccessBean
CatalogGroupRelationshipAccessBean
CatalogGroupRelationshipAccessBean
DeleteCatgrprelCmd
Other Controller Commands: None.
Mandatory Parameters:catalogId
,catgroupIdParent
,catgroupIdChild
,masterCatalog
.
Additional Parameters: None.
Optional Parameters: URL.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatGroupRelDeleteCmdImpl".static java.lang.String
COPYRIGHT
The internal copyright field.java.lang.Boolean
GENERIC_CATGROUP_ID_CHILD
java.lang.Boolean
GENERIC_CATGROUP_ID_PARENT
static java.lang.String
GENERIC_SYMBOL
-
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
-
-
Constructor Summary
Constructors Constructor and Description CatGroupRelDeleteCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Long
getCatalogId()
Get the catalog Id for the catalog group to catalog group relationshipjava.lang.Long
getCatgroupIdChild()
Get the child catalog group Id for the catalog group to catalog group relationshipjava.lang.Long
getCatgroupIdParent()
Get the parent catalog group Id for the catalog group to catalog group relationshipboolean
getSynchronizeProductSets()
Get the synchronize attributejava.lang.String
getURL()
Get the redirect URLvoid
performExecute()
The main program forCatGroupRelDelete
command.void
reset()
This method reset all the variables used inCatGroupRelDelete
command.void
setCatalogId(java.lang.Long anCatalogId)
Set a catalog Id for the catalog group to catalog group relationshipvoid
setCatgroupIdChild(java.lang.Long anCatgroupIdChild)
Set a child catalog group Id for the catalog group to catalog group relationshipvoid
setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set a parent catalog group Id for the catalog group to catalog group relationshipvoid
setRequestProperties(TypedProperty reqParms)
This method obtains the input parameters forCatGroupRelDelete
command.void
setSynchronizeProductSets(boolean synchronizeProductSets)
Set the synchronize attributevoid
setURL(java.lang.String astrURL)
Set a redirect URLvoid
validateParameters()
This method validates the parameters forCatGroupRelDelete
command.-
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
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
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
-
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The internal copyright field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
The name of this interface is "com.ibm.commerce.catalogmanagement.commands.CatGroupRelDeleteCmdImpl".- See Also:
- Constant Field Values
-
GENERIC_SYMBOL
public static final java.lang.String GENERIC_SYMBOL
- See Also:
- Constant Field Values
-
GENERIC_CATGROUP_ID_PARENT
public java.lang.Boolean GENERIC_CATGROUP_ID_PARENT
-
GENERIC_CATGROUP_ID_CHILD
public java.lang.Boolean GENERIC_CATGROUP_ID_CHILD
-
-
Method Detail
-
getCatalogId
public java.lang.Long getCatalogId()
Get the catalog Id for the catalog group to catalog group relationship- Specified by:
getCatalogId
in interfaceCatGroupRelDeleteCmd
- Returns:
- java.lang.Long
-
getCatgroupIdChild
public java.lang.Long getCatgroupIdChild()
Get the child catalog group Id for the catalog group to catalog group relationship- Specified by:
getCatgroupIdChild
in interfaceCatGroupRelDeleteCmd
- Returns:
- java.lang.Long
-
getCatgroupIdParent
public java.lang.Long getCatgroupIdParent()
Get the parent catalog group Id for the catalog group to catalog group relationship- Specified by:
getCatgroupIdParent
in interfaceCatGroupRelDeleteCmd
- Returns:
- java.lang.Long
-
getURL
public java.lang.String getURL()
Get the redirect URL- Returns:
- java.lang.String
-
getSynchronizeProductSets
public boolean getSynchronizeProductSets()
Get the synchronize attribute- Specified by:
getSynchronizeProductSets
in interfaceCatGroupRelDeleteCmd
- Returns:
- boolean
-
performExecute
public void performExecute() throws ECException
The main program forCatGroupRelDelete
command. This method calls theDeleteCatgrprelCmd
task command, and then sets the catalog ID, catalog group parent ID, and catalog group child ID in the response properties.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
reset
public void reset()
This method reset all the variables used inCatGroupRelDelete
command.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAbstractECTargetableCommand
-
setCatalogId
public void setCatalogId(java.lang.Long anCatalogId)
Set a catalog Id for the catalog group to catalog group relationship- Specified by:
setCatalogId
in interfaceCatGroupRelDeleteCmd
- Parameters:
anCatalogId
- java.lang.Long
-
setCatgroupIdChild
public void setCatgroupIdChild(java.lang.Long anCatgroupIdChild)
Set a child catalog group Id for the catalog group to catalog group relationship- Specified by:
setCatgroupIdChild
in interfaceCatGroupRelDeleteCmd
- Parameters:
anCatgroupIdChild
- java.lang.Long
-
setCatgroupIdParent
public void setCatgroupIdParent(java.lang.Long anCatgroupIdParent)
Set a parent catalog group Id for the catalog group to catalog group relationship- Specified by:
setCatgroupIdParent
in interfaceCatGroupRelDeleteCmd
- Parameters:
anCatgroupIdParent
- java.lang.Long
-
setURL
public void setURL(java.lang.String astrURL)
Set a redirect URL- Specified by:
setURL
in interfaceCatGroupRelDeleteCmd
- Parameters:
astrURL
- java.lang.String
-
setSynchronizeProductSets
public void setSynchronizeProductSets(boolean synchronizeProductSets)
Set the synchronize attribute- Specified by:
setSynchronizeProductSets
in interfaceCatGroupRelDeleteCmd
- Parameters:
synchronize
- boolean
-
setRequestProperties
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
This method obtains the input parameters forCatGroupRelDelete
command.- Specified by:
setRequestProperties
in interfaceControllerCommand
- Overrides:
setRequestProperties
in classControllerCommandImpl
- Parameters:
reqParms
- This is an object that represents the request properties.- Throws:
ECApplicationException
-
validateParameters
public void validateParameters() throws ECException
This method validates the parameters forCatGroupRelDelete
command.- Specified by:
validateParameters
in interfaceECCommand
- Overrides:
validateParameters
in classAbstractECTargetableCommand
- Throws:
ECException
-
-