com.ibm.commerce.catalogmanagement.commands
Class ProductAttributeDeleteCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.ControllerCommandImpl
                    |
                    +--com.ibm.commerce.catalogmanagement.commands.ProductAttributeDeleteCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, ProductAttributeDeleteCmd

public class ProductAttributeDeleteCmdImpl
extends ControllerCommandImpl
implements ProductAttributeDeleteCmd

Implementation for ProductAttributeDelete command which is the URL command for deleting an Attribute to a Catalog Entry (Product)

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
           
static java.lang.String COPYRIGHT
           
protected  java.lang.Boolean ibDeleteItems
           
protected  java.lang.Long inAttributeId
           
protected  java.lang.Integer inAttrLangId
           
protected  java.lang.Long inCatentryId
           
protected  java.lang.Integer inForce
           
protected  java.lang.Double inSequence
           
protected  java.lang.String istrAttrtypeId
           
protected  java.lang.String istrDescription
           
protected  java.lang.String istrDescription2
           
protected  java.lang.String istrField1
           
protected  java.lang.String istrName
           
protected  java.lang.String istrOID
           
protected  java.lang.String istrURL
           
 
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
ProductAttributeDeleteCmdImpl()
           
 
Method Summary
 java.lang.Long getAttributeId()
          Get the attribute Id
 java.lang.Integer getAttrLangId()
          Get attribute language Id
 java.lang.String getAttrtypeId()
          Get the attribute type Id Attribute types included: 1.
 java.lang.Long getCatentryId()
          Get the catalog entry Id
 java.lang.Integer getForce()
          Get the force delete option for the attribute
 java.lang.String getName()
          Get the attribute name
 java.lang.Double getSequence()
          Get the sequence number
 java.lang.String getURL()
          Get the redirect URL
 void performExecute()
          The main program for ProductAttributeDelete command
 void reset()
          This method reset all the variables used in ProductAttributeDelete command
 void setAttributeId(java.lang.Long anAttributeId)
          Set the attribute Id
 void setAttrLangId(java.lang.Integer anAttrLangId)
          Set the language Id of the Attribute
 void setAttrtypeId(java.lang.String astrAttrtypeId)
          Set the attribute type Id Attribute types included: 1.
 void setCatentryId(java.lang.Long anCatentryId)
          Set the catalog entry Id
 void setDeleteItems(java.lang.Boolean abDeleteItems)
          Set wheteher or not to delete the items of the product for the deleting attribute
 void setForce(java.lang.Integer anForce)
          Set the force delete option of the attribute
 void setName(java.lang.String astrName)
          Set the attribute name
 void setRequestProperties( TypedProperty reqParms)
          This method obtain the input parameters for ProductAttributeDelete command
 void setSequence(java.lang.Double anSequence)
          Set the sequence number of the attribute
 void setURL(java.lang.String astrURL)
          Set a redirect URL
 void validateParameters()
          This method validates the parameters for ProductAttributeDelete 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, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 
Methods inherited from class java.lang.Object
clone, 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.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, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
See Also:
Constant Field Values

istrURL

protected java.lang.String istrURL

inAttributeId

protected java.lang.Long inAttributeId

istrAttrtypeId

protected java.lang.String istrAttrtypeId

inCatentryId

protected java.lang.Long inCatentryId

istrDescription

protected java.lang.String istrDescription

istrDescription2

protected java.lang.String istrDescription2

istrField1

protected java.lang.String istrField1

inAttrLangId

protected java.lang.Integer inAttrLangId

istrName

protected java.lang.String istrName

istrOID

protected java.lang.String istrOID

inSequence

protected java.lang.Double inSequence

inForce

protected java.lang.Integer inForce

ibDeleteItems

protected java.lang.Boolean ibDeleteItems
Constructor Detail

ProductAttributeDeleteCmdImpl

public ProductAttributeDeleteCmdImpl()
Method Detail

getAttributeId

public java.lang.Long getAttributeId()
Get the attribute Id
Specified by:
getAttributeId in interface ProductAttributeDeleteCmd
Returns:
java.lang.Long

getAttrLangId

public java.lang.Integer getAttrLangId()
Get attribute language Id
Returns:
java.lang.Integer

getAttrtypeId

public java.lang.String getAttrtypeId()
Get the attribute type Id Attribute types included: 1. String 2. Integer 3. Float
Returns:
java.lang.String

getCatentryId

public java.lang.Long getCatentryId()
Get the catalog entry Id
Specified by:
getCatentryId in interface ProductAttributeDeleteCmd
Returns:
the catalog entry ID

getForce

public java.lang.Integer getForce()
Get the force delete option for the attribute

getName

public java.lang.String getName()
Get the attribute name

getSequence

public java.lang.Double getSequence()
Get the sequence number

getURL

public java.lang.String getURL()
Get the redirect URL

performExecute

public void performExecute()
                    throws ECException
The main program for ProductAttributeDelete 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 ProductAttributeDelete command
Overrides:
reset in class AbstractECTargetableCommand

setAttributeId

public void setAttributeId(java.lang.Long anAttributeId)
Set the attribute Id
Specified by:
setAttributeId in interface ProductAttributeDeleteCmd
Parameters:
anAttributeId - java.lang.Long

setAttrLangId

public void setAttrLangId(java.lang.Integer anAttrLangId)
Set the language Id of the Attribute
Specified by:
setAttrLangId in interface ProductAttributeDeleteCmd
Parameters:
anAttrLangId - java.lang.Integer

setAttrtypeId

public void setAttrtypeId(java.lang.String astrAttrtypeId)
Set the attribute type Id Attribute types included: 1. String 2. Integer 3. Float
Specified by:
setAttrtypeId in interface ProductAttributeDeleteCmd
Parameters:
astrAttrtypeId - java.lang.String

setCatentryId

public void setCatentryId(java.lang.Long anCatentryId)
Set the catalog entry Id
Specified by:
setCatentryId in interface ProductAttributeDeleteCmd
Parameters:
anCatentryId - java.lang.Long

setForce

public void setForce(java.lang.Integer anForce)
Set the force delete option of the attribute
Specified by:
setForce in interface ProductAttributeDeleteCmd
Parameters:
anForce - java.lang.Integer

setName

public void setName(java.lang.String astrName)
Set the attribute name
Specified by:
setName in interface ProductAttributeDeleteCmd
Parameters:
astrName - java.lang.String

setDeleteItems

public void setDeleteItems(java.lang.Boolean abDeleteItems)
Set wheteher or not to delete the items of the product for the deleting attribute
Specified by:
setDeleteItems in interface ProductAttributeDeleteCmd
Parameters:
abDeleteItems - java.lang.Boolean

setRequestProperties

public void setRequestProperties(TypedProperty reqParms)
                          throws ECApplicationException
This method obtain the input parameters for ProductAttributeDelete command
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ControllerCommandImpl
Parameters:
reqParms - request properties
Throws:
ECApplicationException

setSequence

public void setSequence(java.lang.Double anSequence)
Set the sequence number of the attribute
Specified by:
setSequence in interface ProductAttributeDeleteCmd
Parameters:
anSequence - java.lang.Double

setURL

public void setURL(java.lang.String astrURL)
Set a redirect URL
Specified by:
setURL in interface ProductAttributeDeleteCmd
Parameters:
astrURL - java.lang.String

validateParameters

public void validateParameters()
                        throws ECException
This method validates the parameters for ProductAttributeDelete command
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException