java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.orderquotation.commands.GetCredentialsCmdImpl
Get the credentials (userId, password) for the calling user.
If the (UserDistributorUserId, UserDistributorPasswordEncrypted (unencrypted)) for the user is (uuuu, pppp) then the results for each example input values of (userId, password) would be:
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.orderquotation.commands. GetCredentialsCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
GetCredentialsCmdImpl() Constructor for GetCredentialsCmdImpl |
Method Summary | |
---|---|
java.lang.String |
getPasswordForCredentials() Get the password to use on the credentials. |
java.lang.String |
getUserIdForCredentials() Get the user id to use on the credentials. |
void |
performExecute() Execute the command. |
void |
reset() Resets the command. |
void |
setPassword(java.lang.String thePassword) Set the user's password. |
void |
setReferralStoreId(java.lang.Integer theStoreId) Set the referral store id for the credentials. |
void |
setUserId(java.lang.String theUserId) Set the user id. |
void |
validateParameters() Check mandatory parameters. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Constructor Detail |
---|
public GetCredentialsCmdImpl()
Method Detail |
---|
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- These exceptions are allowed to percolate.public void reset()
reset
in class
AbstractECTargetableCommand
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- Raised with message
_ERR_BAD_MISSING_CMD_PARAMETER if the store id is not specified.ECException
public void setUserId(java.lang.String theUserId)
setUserId
in interface
GetCredentialsCmd
theUserId
- (Optional) The user id. If not specified the
"UserDistributorUserId" attribute of the commandContext user profile
will be used.public void setPassword(java.lang.String thePassword)
setPassword
in interface
GetCredentialsCmd
thePassword
- (Optional) The password. If not specified the
"UserDistributorPasswordEncrypted" attribute (unencrypted) of the
commandContext user profile will be used.public void setReferralStoreId(java.lang.Integer theStoreId)
setReferralStoreId
in interface
GetCredentialsCmd
theStoreId
- The distributor's store
id.public java.lang.String getUserIdForCredentials()
getUserIdForCredentials
in interface
GetCredentialsCmd
public java.lang.String getPasswordForCredentials()
getPasswordForCredentials
in interface
GetCredentialsCmd