com.ibm.commerce.utf.commands
Class PAttributeDeleteCmdImpl

com.ibm.commerce.command.AbstractECTargetableCommand
  |
  +--com.ibm.commerce.command.ControllerCommandImpl
        |
        +--com.ibm.commerce.tools.command.ToolsControllerCommandImpl
              |
              +--com.ibm.commerce.utf.commands.PAttributeDeleteCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PAttributeDeleteCmd, Protectable, ToolsControllerCommand

public class PAttributeDeleteCmdImpl
extends ToolsControllerCommandImpl
implements PAttributeDeleteCmd

Delete Personalization Attribute command. This command will remove an Personalization Attribute.


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.utf.commands.PAttributeDeleteCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Fields inherited from interface com.ibm.commerce.command.ECTargetableCommand
COPYRIGHT
 
Constructor Summary
PAttributeDeleteCmdImpl()
          PAttributeDeleteCmdImpl constructor comment.
 
Method Summary
 void doDeleteAttribute()
          Performs the delete of the Attribute entry.
 java.util.Vector getCollAttrIds()
           
 java.util.Hashtable getErrorContent()
          Gets the error content for this command.
 java.lang.Long getLanguageId()
           
 java.lang.Long getPAttributeId()
           
 void performExecute()
          Performs database checks, then deletes the attribute.
 void setCollAttrIds(java.util.Vector collIds)
           
 void setErrorContent(java.util.Hashtable newErrorContent)
          Sets the error content for this command.
 void setLangaugeId(java.lang.Long id)
          Sets the language id for the attribute.
 void setPAttributeId(java.lang.Long id)
          Sets the Personalization Attribute Id
 void setRequestProperties(TypedProperty prop)
          Set values retrieved from the incoming property.
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, 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, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

PAttributeDeleteCmdImpl

public PAttributeDeleteCmdImpl()
PAttributeDeleteCmdImpl constructor comment.
Method Detail

doDeleteAttribute

public void doDeleteAttribute()
                       throws ECSystemException
Performs the delete of the Attribute entry.

getCollAttrIds

public java.util.Vector getCollAttrIds()

getErrorContent

public java.util.Hashtable getErrorContent()
Gets the error content for this command.
Returns:
java.util.Hashtable

getLanguageId

public java.lang.Long getLanguageId()

getPAttributeId

public java.lang.Long getPAttributeId()
Returns:
The attribute id.

performExecute

public void performExecute()
                    throws ECException
Performs database checks, then deletes the attribute.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setCollAttrIds

public void setCollAttrIds(java.util.Vector collIds)

setErrorContent

public void setErrorContent(java.util.Hashtable newErrorContent)
Sets the error content for this command.
Parameters:
newErrorContent - The collection of error content values.

setLangaugeId

public void setLangaugeId(java.lang.Long id)
Sets the language id for the attribute.
Parameters:
The - language id.

setPAttributeId

public void setPAttributeId(java.lang.Long id)
Sets the Personalization Attribute Id
Parameters:
The - attribute id.

setRequestProperties

public void setRequestProperties(TypedProperty prop)
                          throws ECApplicationException
Set values retrieved from the incoming property.
Specified by:
setRequestProperties in interface ControllerCommand
Overrides:
setRequestProperties in class ToolsControllerCommandImpl
Throws:
ECException - The exception description.