com.ibm.commerce.security.commands
Interface MigrateUserEntriesCmd

All Superinterfaces:
ECCommand, 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
           
static java.lang.String defaultCommandClassName
           
static java.lang.String 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.
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

defaultCommandClassName

public static final java.lang.String defaultCommandClassName

NAME

public static final java.lang.String NAME
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.

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.

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.

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.

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.

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.
Parameters:
abNewUser - The old user access bean.