|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.commerce.command.AbstractECCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.security.commands.MigrateUserEntriesCmdImpl
This task command is used to migrate resources owned by one user to another. The manadorty resources that are migrated are Addresses, Current Orders, Interest Items, Order Items, Orders, and OrderTemplates.
Before executing this task command the following sets should be performed:
setOldUser setNewUser
Field Summary | |
static java.lang.String |
ERRTASK_NAME
|
Fields inherited from class com.ibm.commerce.command.AbstractECCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.security.commands.MigrateUserEntriesCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Constructor Summary | |
MigrateUserEntriesCmdImpl()
|
Method Summary | |
protected UserAccessBean |
getNewUser()
Retrieves the new user which would be recipient of migrated resources from the old user. |
protected UserAccessBean |
getOldUser()
Retrieves the old user whose resources are to be migrated to the new user. |
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 |
performExecute()
Contains the actual business logic of the command It should be implemented by all the command writer. |
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. |
void |
validateParameters()
Performs server side parameter checking. |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Field Detail |
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
public MigrateUserEntriesCmdImpl()
Method Detail |
protected UserAccessBean getNewUser()
protected UserAccessBean getOldUser()
public void migrateAddresses(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
MigrateUserEntriesCmd
migrateAddresses
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abOldUser
- The Old User, whose addresses are to be migrated.abNewUser
- The New User, who will get the new addresses.public void migrateCurrentOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
MigrateUserEntriesCmd
migrateCurrentOrders
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abOldUser
- The Old User, whose current orders are to be migrated.abNewUser
- The New User, who will get the new current orders.public void migrateInterestItems(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
MigrateUserEntriesCmd
migrateInterestItems
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abOldUser
- The Old User, whose interest items are to be migrated.abNewUser
- The New User, who will get the new interest items.public void migrateOrders(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
MigrateUserEntriesCmd
migrateOrders
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abOldUser
- The Old User, whose orders are to be migrated.abNewUser
- The New User, who will get the new orders.public void migrateOrderTemplates(UserAccessBean abOldUser, UserAccessBean abNewUser) throws ECException
MigrateUserEntriesCmd
migrateOrderTemplates
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abOldUser
- The Old User, whose order templates are to be migrated.abNewUser
- The New User, who will get the new order templates.public void performExecute() throws ECException
ECCommand
performExecute
in interface ECCommand
performExecute
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.public void setNewUser(UserAccessBean abNewUser)
MigrateUserEntriesCmd
setNewUser
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abNewUser
- The new user accessbean.public void setOldUser(UserAccessBean abOldUser)
MigrateUserEntriesCmd
setOldUser
in interface MigrateUserEntriesCmd
com.ibm.commerce.security.commands.MigrateUserEntriesCmd
abNewUser
- The old user access bean.public void validateParameters() throws ECException
ECCommand
validateParameters
in interface ECCommand
validateParameters
in class AbstractECCommand
com.ibm.commerce.command.ECCommand
ECException.
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |