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 Summary
Fields 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.
-
Method Summary
All Methods Instance Methods Abstract Methods 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.-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
static final java.lang.String COPYRIGHT
The copyright field.- See Also:
- Constant Field Values
-
NAME
static final java.lang.String NAME
The command name.- 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.
-
-