com.ibm.commerce.security.commands

Interface MigrateUserEntriesCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    GiftRegistryMigrateUserEntriesCmdImpl, MigrateUserEntriesCmdImpl


    public interface MigrateUserEntriesCmd
    extends TaskCommand

    This task command is used to migrate resources owned by one user to another user. The mandatory resources that are migrated are: Addresses, Current Orders, Interest Items, Order Items, Orders, and Order Templates.

    Before executing this task command, the methods listed below must be invoked.

    • setOldUser
    • setNewUser
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The copyright field.
        See Also:
        Constant Field Values
      • COMMIT_TRANSACTION_KEY

        static final java.lang.String COMMIT_TRANSACTION_KEY
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default command implementation class.
        See Also:
        Constant Field Values
    • Method Detail

      • migrateAddresses

        void migrateAddresses(UserAccessBean abOldUser,
                              UserAccessBean abNewUser)
                       throws ECException
        This method migrates addresses from one user to another user.
        Parameters:
        abOldUser - The old user, whose addresses are to be migrated.
        abNewUser - The new user, who will receive the new addresses.
        Throws:
        ECException
      • migrateCurrentOrders

        void migrateCurrentOrders(UserAccessBean abOldUser,
                                  UserAccessBean abNewUser)
                           throws ECException
        This method migrates current orders from one user to another user.
        Parameters:
        abOldUser - The old user, whose current orders are to be migrated.
        abNewUser - The new user, who will receive the new current orders.
        Throws:
        ECException
      • migrateInterestItems

        void migrateInterestItems(UserAccessBean abOldUser,
                                  UserAccessBean abNewUser)
                           throws ECException
        This method migrates interest items from one user to another user.
        Parameters:
        abOldUser - The old user, whose interest items are to be migrated.
        abNewUser - The new user, who will receive the new interest items.
        Throws:
        ECException
      • migrateOrders

        void migrateOrders(UserAccessBean abOldUser,
                           UserAccessBean abNewUser)
                    throws ECException
        This method migrates orders from one user to another user.
        Parameters:
        abOldUser - The old user, whose orders are to be migrated.
        abNewUser - The new user, who will receive the new orders.
        Throws:
        ECException
      • migrateOrderTemplates

        void migrateOrderTemplates(UserAccessBean abOldUser,
                                   UserAccessBean abNewUser)
                            throws ECException
        This method migrates order templates from one user to another user.
        Parameters:
        abOldUser - The old user, whose order templates are to be migrated.
        abNewUser - The new user, who will receive the new order templates.
        Throws:
        ECException
      • setNewUser

        void setNewUser(UserAccessBean abNewUser)
        This method sets the new user who is the recipient of the migrated resources from the old user.
        Parameters:
        abNewUser - The new user access bean.
      • setOldUser

        void setOldUser(UserAccessBean abOldUser)
        This method sets the old user whose resources are to be migrated to the new user.
        Parameters:
        abOldUser - The old user access bean.