When a requisitioner (a user of the B2B buyer org) logs on to the supplier system, if server is configured to authenticate against a third party system then this task command will be called to perform either authentication or an update.
Before executing this task command the following setter methods should be called:
setBuyerCredentials setMarketPlaceBuyerCredentials setSupplierCredentilas setUpdateFlag
If the setUpdateFlag is called then, then upon execution of this task command, the credentials set are updated in the database.
If the setUpdateFlag is not called then, 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(). Creation date: (2/27/01 3:35:09 PM)
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT copyright notice |
static java.lang.String |
defaultCommandClassName name of the default implementation of this command |
static java.lang.String |
NAME name of this command |
Method Summary | |
---|---|
int |
getErrorCode() If the isValidCredentilas() returns false (ie. |
boolean |
isValidCredentials() After the this command task is executed, a boolean result flag will be set to indicate if the authentication was successful. |
void |
setBuyerCredentials(
Credentials buyerCredentials) Sets the buyer credentials under which the current B2B user wishes to logon. |
void |
setMarketPlaceBuyerCredentials(
Credentials mpBuyerCredentials) In case the buyer comes from a marketplace and wants to be authenticated against the marketplace credentials, use this method. |
void |
setSupplierCredentilas(
Credentials supplierCredentials) Sets the supplier credentials for the store to which the buyer want to connect. |
void |
setUpdateFlag()
This method is called to indicate instead of performing verification
of the credentials, the credentials should be set in the
database. |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public int getErrorCode()
public boolean isValidCredentials()
public void setBuyerCredentials(Credentials buyerCredentials)
public void setMarketPlaceBuyerCredentials(Credentials mpBuyerCredentials)
public void setSupplierCredentilas(Credentials supplierCredentials)
public void setUpdateFlag()