com.ibm.commerce.orderquotation.commands

Class GetCredentialsCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, GetCredentialsCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable


    public class GetCredentialsCmdImpl
    extends TaskCommandImpl
    implements GetCredentialsCmd
    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:

    input (userId, password) = (id, xyz)
    output credentials (userId, password) = (id, xyz) - use passed in values.
    input (userId, password) = (id, )
    output credentials (userId, password) = (id, ) - use passed in values because id != uuuu.
    input (userId, password) = (uuuu, abc)
    output credentials (userId, password) = (uuuu, abc) - use passed in values.
    input (userId, password) = (uuuu, )
    output credentials (userId, password) = (uuuu, pppp) - use user profile password if userid matches.
    input (userId, password) = (, secret)
    output credentials (userId, password) = (uuuu, secret) - use user profile userid if not specified.
    input (userId, password) = (, )
    output credentials (userId, password) = (uuuu, pppp) - use user profile userid and password.
    See Also:
    Serialized Form
    • Constructor Detail

      • GetCredentialsCmdImpl

        public GetCredentialsCmdImpl()
        Constructor for GetCredentialsCmdImpl
    • Method Detail

      • reset

        public void reset()
        Resets the command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setUserId

        public void setUserId(java.lang.String theUserId)
        Set the user id.
        Specified by:
        setUserId in interface GetCredentialsCmd
        Parameters:
        theUserId - (Optional) The user id. If not specified the "UserDistributorUserId" attribute of the commandContext user profile will be used.
      • setPassword

        public void setPassword(java.lang.String thePassword)
        Set the user's password.
        Specified by:
        setPassword in interface GetCredentialsCmd
        Parameters:
        thePassword - (Optional) The password. If not specified the "UserDistributorPasswordEncrypted" attribute (unencrypted) of the commandContext user profile will be used.
      • setReferralStoreId

        public void setReferralStoreId(java.lang.Integer theStoreId)
        Set the referral store id for the credentials.
        Specified by:
        setReferralStoreId in interface GetCredentialsCmd
        Parameters:
        theStoreId - The distributor's store id.
      • getUserIdForCredentials

        public java.lang.String getUserIdForCredentials()
        Get the user id to use on the credentials.
        Specified by:
        getUserIdForCredentials in interface GetCredentialsCmd
        Returns:
        The user id to use on the credentials.
      • getPasswordForCredentials

        public java.lang.String getPasswordForCredentials()
        Get the password to use on the credentials.
        Specified by:
        getPasswordForCredentials in interface GetCredentialsCmd
        Returns:
        The password to use on the credentials.