public class GetCredentialsCmdImpl extends TaskCommandImpl implements GetCredentialsCmd
If the (UserDistributorUserId, UserDistributorPasswordEncrypted (unencrypted)) for the user is (uuuu, pppp) then the results for each example input values of (userId, password) would be:
defaultCommandClassName, NAME
Constructor and Description |
---|
GetCredentialsCmdImpl()
Constructor for GetCredentialsCmdImpl
|
Modifier and Type | Method and Description |
---|---|
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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public GetCredentialsCmdImpl()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- These exceptions are allowed to percolate.public void reset()
reset
in interface com.ibm.websphere.command.Command
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