public interface DBProcurementAuthenticationCmd extends TaskCommand
A requisitioner is a user of the Business Direct buyer organization. Upon requisitioner logon of the supplier system, this task command will perform either an authentication or an update. This task command runs only if the server is configured to authenticate against the database.
Before executing this task command the following operation set should be performed:
If the setUpdateFlag method is called, upon execution of this task command, the credentials set are updated in the database.
If the setUpdateFlag method is not called, upon execution of this task command, verification of the credentials is performed. To determine whether the authentication was successful a call should be made to isValidCredentials().
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
static java.lang.String |
defaultCommandClassName
Name of the default implementation of this command
|
static java.lang.String |
NAME
The name of this interface
|
Modifier and Type | Method and Description |
---|---|
long |
getBuyerId()
If
isValidCredentilas() returns true (if the command is successful),
this method can be called to get the buyer organization ID. |
int |
getErrorCode()
If
isValidCredentilas() returns false (if the
command fails), this method can be called to get the error code. |
long |
getSupplierId()
If
isValidCredentilas() returns true (if the
command is successful), this method can be called to get the
supplier organization ID. |
boolean |
isValidCredentials()
After this task command executes, a boolean result flag is
set to indicate if authentication succeeds.
|
void |
setAuthenticationType(int authenticationType)
This method sets the authentication level.
|
void |
setBuyerCredentials(Credentials buyerCredentials)
This method sets the buyer credentials under which the current
B2B user wishes to logon.
|
void |
setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
Use this method if the buyer comes from a marketplace and wants to be authenticated
against the marketplace credentials.
|
void |
setMerchantKey(java.lang.String strMerchantKey)
This method sets the Merchant Key to use in the encryption of
the password.
|
void |
setSupplierCredentilas(Credentials supplierCredentials)
This method sets the supplier credentials for the store to which
the buyer wants to connect.
|
void |
setUpdateFlag()
This method is called to indicate the credentials should be set in the
database, instead of performing verification on the credentials.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
long getBuyerId()
isValidCredentilas()
returns true (if the command is successful),
this method can be called to get the buyer organization ID.int getErrorCode()
isValidCredentilas()
returns false (if the
command fails), this method can be called to get the error code.
This is required because the B2B scenario needs
the exact reason for each authentication failure.long getSupplierId()
isValidCredentilas()
returns true (if the
command is successful), this method can be called to get the
supplier organization ID.boolean isValidCredentials()
void setAuthenticationType(int authenticationType)
B2BLogonCmd
for details about
against which credentials the buyer and supplier are validated.authenticationType
- code indicating authentication typevoid setBuyerCredentials(Credentials buyerCredentials)
buyerCredentials
- buyer credentials under which the current
B2B user wishes to logonvoid setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
mpBuyerCredentials
- the marketplace buyer credentials under which
the current B2B user wishes to logonvoid setMerchantKey(java.lang.String strMerchantKey)
merchantKey
- the Merchant Key.void setSupplierCredentilas(Credentials supplierCredentials)
supplierCredentials
- the supplier credentials for
the store to which the buyer wants to connectvoid setUpdateFlag()