com.ibm.commerce.usermanagement.commands
Class AddressDeleteCmdImpl

java.lang.Object
  |
  +--AddressBaseCmdImpl
        |
        +--com.ibm.commerce.usermanagement.commands.AddressDeleteCmdImpl
All Implemented Interfaces:
AccCommand, AddressDeleteCmd, ControllerCommand, ECCommand

public class AddressDeleteCmdImpl
extends AddressBaseCmdImpl
implements AddressDeleteCmd

This command deletes a address for a user, organization, or organiztional unit.

Use this command with SSL (Secure Sockets Layer) to ensure that the information are encrypted. To do so type the command with the HTTPS secure protocol.

The parameters URL and addressId are mandatory. The rest of the parameters are all optional.

Behavior

Exception Conditions

See Also:
Serialized Form

Field Summary
static java.lang.String CLASSNAME
          The name of this command.
static java.lang.String COPYRIGHT
          IBM Copyright notice field.
protected  AddressAccessBean iabAddress
          The address access bean.
 
Fields inherited from interface com.ibm.commerce.usermanagement.commands. AddressDeleteCmd
NAME
 
Fields inherited from interface com.ibm.commerce.command. ECCommand
defaultCommandClassName
 
Constructor Summary
AddressDeleteCmdImpl()
           
 
Method Summary
 void performExecute()
          Sets the address status as temporary and calls the PostAddressDelete command to perform some customized operations after the address is deleted.
 void reset()
          Resets all the stored values.
 void setRequestProperties( TypedProperty reqProperties)
          Sets the parameters passed to the command and then calls the PreAddressDelete command to preform any processing that is needed before the address is deleted.
 void validateParameters()
          Validates the parameters passed to the command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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
IBM Copyright notice field.
See Also:
Constant Field Values

CLASSNAME

public static final java.lang.String CLASSNAME
The name of this command.
See Also:
Constant Field Values

iabAddress

protected AddressAccessBean iabAddress
The address access bean.
Constructor Detail

AddressDeleteCmdImpl

public AddressDeleteCmdImpl()
Method Detail

performExecute

public void performExecute()
                    throws ECException
Sets the address status as temporary and calls the PostAddressDelete command to perform some customized operations after the address is deleted.
Specified by:
performExecute in interface ECCommand
Throws:
ECException - If there was a problem updating the status of the address or executing the PostAddressDelete command.

reset

public void reset()
Resets all the stored values.
Specified by:
reset in interface AddressDeleteCmd

setRequestProperties

public void setRequestProperties(TypedProperty reqProperties)
                          throws ECApplicationException
Sets the parameters passed to the command and then calls the PreAddressDelete command to preform any processing that is needed before the address is deleted.
Specified by:
setRequestProperties in interface ControllerCommand
Parameters:
reqProperties - request properties
Throws:
ECApplicationException - If there was a problem when executing the PreAddressDelete command.

validateParameters

public void validateParameters()
                        throws ECException
Validates the parameters passed to the command. Validate involves verifying the address identifier passed to the command and finding the related Address access bean. Then the values of other parameters are verified to ensure they are correct.
Specified by:
validateParameters in interface ECCommand
Throws:
ECException - If there is a problem with the parameters passed.