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.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COMMIT_TRANSACTION_KEY |
static java.lang.String |
COPYRIGHT
The copyright field.
|
static java.lang.String |
defaultCommandClassName
The default command implementation class.
|
static java.lang.String |
NAME
The command name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
migrateAddresses(UserAccessBean abOldUser,
UserAccessBean abNewUser)
This method migrates addresses from one user to another user.
|
void |
migrateCurrentOrders(UserAccessBean abOldUser,
UserAccessBean abNewUser)
This method migrates current orders from one user to another user.
|
void |
migrateInterestItems(UserAccessBean abOldUser,
UserAccessBean abNewUser)
This method migrates interest items from one user to another user.
|
void |
migrateOrders(UserAccessBean abOldUser,
UserAccessBean abNewUser)
This method migrates orders from one user to another user.
|
void |
migrateOrderTemplates(UserAccessBean abOldUser,
UserAccessBean abNewUser)
This method migrates order templates from one user to another user.
|
void |
setNewUser(UserAccessBean abNewUser)
This method sets the new user who is the recipient of the migrated
resources from the old user.
|
void |
setOldUser(UserAccessBean abOldUser)
This method sets the old user whose resources are to be
migrated to the new user.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParametersstatic final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String COMMIT_TRANSACTION_KEY
static final java.lang.String defaultCommandClassName
void migrateAddresses(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser - The old user, whose addresses are to be migrated.abNewUser - The new user, who will receive the new addresses.ECExceptionvoid migrateCurrentOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser - The old user, whose current orders are to be migrated.abNewUser - The new user, who will receive the new current orders.ECExceptionvoid migrateInterestItems(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser - The old user, whose interest items are to be migrated.abNewUser - The new user, who will receive the new interest items.ECExceptionvoid migrateOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser - The old user, whose orders are to be migrated.abNewUser - The new user, who will receive the new orders.ECExceptionvoid migrateOrderTemplates(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
abOldUser - The old user, whose order templates are to be migrated.abNewUser - The new user, who will receive the new order templates.ECExceptionvoid setNewUser(UserAccessBean abNewUser)
abNewUser - The new user access bean.void setOldUser(UserAccessBean abOldUser)
abOldUser - The old user access bean.