com.ibm.commerce.catalogmanagement.commands
Class AttributeValueDeleteCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.catalogmanagement.commands.AttributeValueDeleteCmdImpl
- All Implemented Interfaces:
- AccCommand, AttributeValueDeleteCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class AttributeValueDeleteCmdImpl
- extends ControllerCommandImpl
- implements AttributeValueDeleteCmd
Implementation for AttributeValueDelete command which is the URL command for deleting an Attribute Value
Method Summary |
java.lang.Long |
getAttributeId()
Get the attribute Id |
java.lang.Long |
getAttrvalueId()
Get the attribute value Id |
java.lang.Long |
getCatentryId()
Get the catalog entry Id |
java.lang.Integer |
getDescLanguage()
Get the description language for the attribute value |
java.lang.Integer |
getForce()
Get the force delete option for the attribute value. |
java.lang.String |
getURL()
Get the redirect URL |
void |
performExecute()
The main program for AttributeValueDelete command |
void |
reset()
This method reset all the variables used in AttributeValueDelete command |
void |
setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id |
void |
setAttrvalueId(java.lang.Long anAttrvalueId)
Set the attribute value Id |
void |
setCatentryId(java.lang.Long anCatentryId)
Set a catalog entry Id |
void |
setDescLanguage(java.lang.Integer anDescLanguage)
Set the language Id of the attribute value |
void |
setForce(java.lang.Integer anForce)
Set the force delete option for the attribute value
The force delete option is used to determine if the catalog entry associated with
the attribute value is to be deleted or marked for deletion. |
void |
setRequestProperties(TypedProperty reqParms)
This method obtain the input parameters for AttributeValueDelete command |
void |
setURL(java.lang.String astrURL)
Set a redirect URL |
void |
validateParameters()
This method validates the parameters for AttributeValueDelete command |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties |
CLASSNAME
public static final java.lang.String CLASSNAME
COPYRIGHT
public static final java.lang.String COPYRIGHT
inAttributeId
protected java.lang.Long inAttributeId
inAttrvalueId
protected java.lang.Long inAttrvalueId
inCatentryId
protected java.lang.Long inCatentryId
inDescLanguage
protected java.lang.Integer inDescLanguage
inForce
protected java.lang.Integer inForce
istrURL
protected java.lang.String istrURL
AttributeValueDeleteCmdImpl
public AttributeValueDeleteCmdImpl()
getAttributeId
public java.lang.Long getAttributeId()
- Get the attribute Id
- Specified by:
getAttributeId
in interface AttributeValueDeleteCmd
- Returns:
- java.lang.Long
getAttrvalueId
public java.lang.Long getAttrvalueId()
- Get the attribute value Id
- Specified by:
getAttrvalueId
in interface AttributeValueDeleteCmd
- Returns:
- java.lang.Long
getCatentryId
public java.lang.Long getCatentryId()
- Get the catalog entry Id
- Specified by:
getCatentryId
in interface AttributeValueDeleteCmd
- Returns:
- java.lang.Long
getDescLanguage
public java.lang.Integer getDescLanguage()
- Get the description language for the attribute value
- Returns:
- java.lang.Integer
getForce
public java.lang.Integer getForce()
- Get the force delete option for the attribute value.
The force delete option is used to determine if the catalog entry associated with
the attribute value is to be deleted or marked for deletion.
0 = catalog entry associated with the attribute value will be marked for deletion
1 = catalog entry associated with the attribute value will be deleted
- Returns:
- java.lang.Integer
getURL
public java.lang.String getURL()
- Get the redirect URL
- Returns:
- java.lang.String
performExecute
public void performExecute()
throws ECException
- The main program for AttributeValueDelete command
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Throws:
ECException
-
reset
public void reset()
- This method reset all the variables used in AttributeValueDelete command
- Overrides:
reset
in class AbstractECTargetableCommand
setAttributeId
public void setAttributeId(java.lang.Long anAttributeId)
- Set the attribute Id
- Specified by:
setAttributeId
in interface AttributeValueDeleteCmd
- Parameters:
anAttributeId
- java.lang.Long
setAttrvalueId
public void setAttrvalueId(java.lang.Long anAttrvalueId)
- Set the attribute value Id
- Specified by:
setAttrvalueId
in interface AttributeValueDeleteCmd
- Parameters:
anAttrvalueId
- java.lang.Long
setCatentryId
public void setCatentryId(java.lang.Long anCatentryId)
- Set a catalog entry Id
- Specified by:
setCatentryId
in interface AttributeValueDeleteCmd
- Parameters:
anCatentryId
- java.lang.Long
setDescLanguage
public void setDescLanguage(java.lang.Integer anDescLanguage)
- Set the language Id of the attribute value
- Specified by:
setDescLanguage
in interface AttributeValueDeleteCmd
- Parameters:
anDescLanguage
- java.lang.Integer
setForce
public void setForce(java.lang.Integer anForce)
- Set the force delete option for the attribute value
The force delete option is used to determine if the catalog entry associated with
the attribute value is to be deleted or marked for deletion.
0 = catalog entry associated with the attribute value will be marked for deletion
1 = catalog entry associated with the attribute value will be deleted
- Specified by:
setForce
in interface AttributeValueDeleteCmd
- Parameters:
anForce
- java.lang.Integer
setRequestProperties
public void setRequestProperties(TypedProperty reqParms)
throws ECApplicationException
- This method obtain the input parameters for AttributeValueDelete command
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Throws:
ECApplicationException
-
setURL
public void setURL(java.lang.String astrURL)
- Set a redirect URL
- Specified by:
setURL
in interface AttributeValueDeleteCmd
- Parameters:
astrURL
- java.lang.String
validateParameters
public void validateParameters()
throws ECException
- This method validates the parameters for AttributeValueDelete command
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Throws:
ECException
-