com.ibm.commerce.security.commands
Interface MigrateUserEntriesCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
MigrateUserEntriesCmdImpl

public interface MigrateUserEntriesCmd
extends TaskCommand

This task command is used to migrate resources owned by one user to another. The manadatory 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 Summary
static java.lang.String COPYRIGHT
          Copyright field.
static java.lang.String defaultCommandClassName
          Default command implementation class.
static java.lang.String NAME
          Command name.
 
Method Summary
 void migrateAddresses( UserAccessBean abOldUser, UserAccessBean abNewUser)
          Migrates addresses from one user to another user.
 void migrateCurrentOrders( UserAccessBean abOldUser, UserAccessBean abNewUser)
          Migrates current orders from one user to another user.
 void migrateInterestItems( UserAccessBean abOldUser, UserAccessBean abNewUser)
          Migrates interest items from one user to another user.
 void migrateOrders( UserAccessBean abOldUser, UserAccessBean abNewUser)
          Migrates orders from one user to another user.
 void migrateOrderTemplates( UserAccessBean abOldUser, UserAccessBean abNewUser)
          Migrates order templates from one user to another user.
 void setNewUser( UserAccessBean abNewUser)
          Sets the new user which would be recipient of migrated addresses from the old user.
 void setOldUser( UserAccessBean abOldUser)
          Sets the old user whose addresses are to be migrated to the new user.
 

Field Detail
public static final java.lang.String COPYRIGHT
Copyright field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
Command name.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
Default command implementation class.
See Also:
Constant Field Values
Method Detail

migrateAddresses

public void migrateAddresses(UserAccessBean abOldUser,
UserAccessBean abNewUser)
                      throws ECException
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 get the new addresses.
Throws:
ECException

migrateCurrentOrders

public void migrateCurrentOrders(UserAccessBean abOldUser,
UserAccessBean abNewUser)
                          throws ECException
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 get the new current orders.
Throws:
ECException

migrateInterestItems

public void migrateInterestItems(UserAccessBean abOldUser,
UserAccessBean abNewUser)
                          throws ECException
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 get the new interest items.
Throws:
ECException

migrateOrders

public void migrateOrders(UserAccessBean abOldUser,
UserAccessBean abNewUser)
                   throws ECException
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 get the new orders.
Throws:
ECException

migrateOrderTemplates

public void migrateOrderTemplates(UserAccessBean abOldUser,
UserAccessBean abNewUser)
                           throws ECException
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 get the new order templates.
Throws:
ECException

setNewUser

public void setNewUser(UserAccessBean abNewUser)
Sets the new user which would be recipient of migrated addresses from the old user.
Parameters:
abNewUser - The new user accessbean.

setOldUser

public void setOldUser(UserAccessBean abOldUser)
Sets the old user whose addresses are to be migrated to the new user.