public class RetrieveShopperProfileCmdImpl extends com.ibm.commerce.command.ControllerCommandImpl implements RetrieveShopperProfileCmd
(sametime)
tooling in Commerce Accelerator
The command does the following:
1. Verifies that the user requesting the action is a Customer Service Representative (CSR) or Customer Service Supervisor (CSS).
It could also be the Seller or a Site Administrator role in the seller organization. Otherwise, the requester does not have the authority to execute this command.
2. Creates an instance of UserRegistrationDataBean.
3. Creates an instance of UserAccessBean.
4. Creates an instance of OrderAccessBean.
5. Checks if the user is registered.
6. If the user is NOT registered, puts the userId in the responseProperties as "Title"
7. If the user is registered, puts the logonName
in the responseProperties as "Title"
8. puts the profile Hashtable in the responseProperties as "ShopperProfile"
9. Sets the viewtask
to LiveHelpUserProfileView
in responseProperties
Exception Conditions
If any parameters are missing, the command sets the _ERR_MISSING_PARMS exception task to handle the error.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
Class name
|
static java.lang.String |
COPYRIGHT
IBM copyright info
|
static java.lang.String |
ERRTASK_NAME
Error task name
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RetrieveShopperProfileCmdImpl()
RetrieveShopperProfileCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
com.ibm.commerce.accesscontrol.AccessVector |
getResources()
Gets the access vector accessed by this command.
|
void |
performExecute()
Contains the business logic for the command.
|
void |
validateParameters()
Validates the parameters expected in the request properties.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String CLASSNAME
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
public RetrieveShopperProfileCmdImpl()
public com.ibm.commerce.accesscontrol.AccessVector getResources() throws com.ibm.commerce.exception.ECException
getResources
in interface com.ibm.commerce.command.ECCommand
getResources
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECException
- if anything goes wrong with the resources being instantiated.public void performExecute() throws com.ibm.commerce.exception.ECException
logonName
in the responseProperties as "Title"
7. puts the profile Hashtable in the responseProperties as "ShopperProfile"
8. Sets the viewtask
to LiveHelpUserProfileView
in responsePropertiesperformExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECSystemException
- Raised with message key :
ECMessage._ERR_CREATE_EXCEPTION or ECMessage._ERR_FINDER_EXCEPTION or ECMessage._ERR_FINDER_EXCEPTION
or ECMessage._ERR_NAMING_EXCEPTION or ECMessage._ERR_REMOTE_EXCEPTION or ECMessage._ERR_REMOVE_EXCEPTION
if anything goes wrong with the data resources being queried.com.ibm.commerce.exception.ECException
public void validateParameters() throws com.ibm.commerce.exception.ECException
validateParameters
in interface com.ibm.commerce.command.ECCommand
validateParameters
in class com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.exception.ECApplicationException
- Raised with message key ECMessage._ERR_MISSING_PARMS if fails the validation,com.ibm.commerce.exception.ECException