com.ibm.commerce.utf.commands
Class PAttributeDeleteCmdImpl

java.lang.Object
  CacheableCommandImpl
      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

Deletes personalization attributes.

This is the default implementation of the PAttributeDeleteCmd. This command uses the following AccessBeans:

See Also:
Serialized Form

Field Summary
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
Constructor Summary
PAttributeDeleteCmdImpl()
PAttributeDeleteCmdImpl constructor comment.
Method Summary
void doDeleteAttribute()
Performs the delete of the Attribute entry
java.util.Vector getCollAttrIds()
Returns the attribute Id
java.util.Hashtable getErrorContent()
Gets the error content for this command.
java.lang.Long getLanguageId()
Gets the error content for this command.
java.lang.Long getPAttributeId()
void performExecute()
Performs database checks, then deletes the attribute
void reset()
Reset the command.
void setCollAttrIds(java.util.Vector collIds)
Sets the attibute Ids
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
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, 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, validateParameters
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, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner

Constructor Detail

PAttributeDeleteCmdImpl

public PAttributeDeleteCmdImpl()
PAttributeDeleteCmdImpl constructor comment.
Method Detail

reset

public void reset()
Reset the command.
Overrides:
reset in class AbstractECTargetableCommand

doDeleteAttribute

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

getCollAttrIds

public java.util.Vector getCollAttrIds()
Returns the attribute Id
Returns:
Vector The attribute Ids

getErrorContent

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

getLanguageId

public java.lang.Long getLanguageId()
Gets the error content for this command.
Returns:
Long language Id

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
Throws:
ECException
See Also:
ECCommand.performExecute()

setCollAttrIds

public void setCollAttrIds(java.util.Vector collIds)
Sets the attibute Ids
Parameters:
collIds - The attribute Ids

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.

setPAttributeId

public void setPAttributeId(java.lang.Long id)
Sets the Personalization 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
Parameters:
prop - Reuest properties to be set.
Throws:
ECApplicationException
See Also:
ControllerCmd#setRequestProperties(TypedProperty)

Feedback