com.ibm.commerce.usermanagement.commands

Class AddressDeleteCmdImpl

  • All Implemented Interfaces:
    AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, Protectable, AddressBaseCmd, AddressDeleteCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class AddressDeleteCmdImpl
    extends AddressBaseCmdImpl
    implements AddressDeleteCmd
    Deletes an address for a user, organization, or organizational 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

    • Calls an empty task command PreAddressDeleteCmd which can be customized for any pre-processing prior to execution of this command.
    • Marks the specified address record as temporary, using the 'T' flag.
    • Calls specified URL upon successful completion. Calls AddressDeleteErrorView view command if the command fails.
    • Calls an empty task command PostAddressDeleteCmd which can be customized for any pre-processing prior to execution of this command.
    • Can not delete a temporary address.

    Exception Conditions

    • addressId is null (_ERR_CMD_MISSING_PARAM).
    • addressId is not a foreign key set to the ADDRESS table or is pointed to a temporary address(_ERR_CMD_INVALID_PARAM).
    See Also:
    Serialized Form
    • Field Detail

      • COPYRIGHT

        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
    • 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 customized operations after the address is deleted.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AddressBaseCmdImpl
        Throws:
        ECException - If there was a problem updating the status of the address or executing the PostAddressDelete command.
      • validateParameters

        public void validateParameters()
                                throws ECException
        Validates the parameters passed to the command. Validation 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 that they are correct.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AddressBaseCmdImpl
        Throws:
        ECException - If there is a problem with the parameters passed.