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
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public void migrateAddresses(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser
- The Old User, whose addresses are to be
migrated.abNewUser
- The New User, who will get the new addresses.ECException
public void migrateCurrentOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser
- The Old User, whose current orders are to be
migrated.abNewUser
- The New User, who will get the new current
orders.ECException
public void migrateInterestItems(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser
- The Old User, whose interest items are to be
migrated.abNewUser
- The New User, who will get the new interest
items.ECException
public void migrateOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser
- The Old User, whose orders are to be
migrated.abNewUser
- The New User, who will get the new orders.ECException
public void migrateOrderTemplates(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser
- The Old User, whose order templates are to be
migrated.abNewUser
- The New User, who will get the new order
templates.ECException
public void setNewUser(UserAccessBean abNewUser)
abNewUser
- The new user accessbean.public void setOldUser(UserAccessBean abOldUser)