public class PunchOutSetupCmdImpl extends ControllerCommandImpl implements PunchOutSetupCmd
Modifier and Type | Field and Description |
---|---|
protected CIData | ciData
CIData object to store logon properties.
|
Constructor and Description |
---|
PunchOutSetupCmdImpl()
The PunchOutSetupCmdImpl constructor calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void | changeOrderStatus(java.lang.String orderId)
This method changes the status of a given order to P if it is W.
|
int | getAuthType()
This method gets the authentication type.
|
CIData | getCIData()
This method gets the CIData object.
|
java.lang.Long | getOrganizationUnitId()
This method gets the Organization unit ID
|
java.lang.Integer | getProtocolId()
This method gets the protocol ID.
|
java.lang.String | getRequisitionerId()
This method gets the requisitioner ID.
|
java.lang.Long | getUsersId()
This method gets the user ID.
|
protected void | initializeInputData()
This method initializes input data.
|
boolean | isGeneric()
This method checks if the user is a generic user or not.
|
protected boolean | isTwoStepProtocol()
This method checks whether the protocol currently used is single step or a two step protocol.
|
void | performExecute()
The business logic for this controller command.
|
void | setAuthType(int anAuthType)
This method sets the authentication type.
|
protected void | setBuyerRequestProperties()
This method sets the buyer request properties.
|
void | setCIData(CIData newCIData)
This method sets the CIData object to store the logon properties.
|
void | setOrganizationUnitId(java.lang.Long orgUnit)
This method sets the organization unit ID.
|
void | setRequestProperties(TypedProperty p)
The Web controller calls the setRequestProperties method before invoking the execute method in this command.
|
void | setRequisitionerId(java.lang.String newRequisitionerId)
This method sets the requisitioner ID.
|
void | setUsersId(java.lang.Long newUserId)
This method sets the User ID of the owner of the order.
|
protected void | updateCmdContext()
Switches the current user identity to the identity associated with the login ID supplied to this logon command.
|
void | validateParameters()
This method validates the required parameters for this controller command.
|
protected CIData ciData
public PunchOutSetupCmdImpl()
protected void changeOrderStatus(java.lang.String orderId) throws ECException
public int getAuthType()
public java.lang.Long getOrganizationUnitId()
public java.lang.Integer getProtocolId()
public java.lang.String getRequisitionerId()
public java.lang.Long getUsersId()
protected void initializeInputData()
public boolean isGeneric()
protected boolean isTwoStepProtocol()
public void performExecute() throws ECException
This method will do the following: 1. Gets sessionInfo from CIData 2. Stores the protocol table ID in the sessionInfo 3. Uses the Authentication Helper Command to Authenticate User 4. Sets the properties of the AuthenticationHelperCommand 5. If the user is authenticated, gets the procurement buyer profile properties 6. Invokes requisitioner registration command 7. Generates the supplier cookie: first we create the buyer request information object that is referenced by the supplier cookie. The primary purpose of the buyer request information object is to pass relevant parameters onto the PunchOutCatalogDisplayCmdImpl command. The PunchOutCatalogDisplayCmdImp in turn calls the store JSPs passing these parameters to it.
public void setAuthType(int anAuthType)
protected void setBuyerRequestProperties()
public void setOrganizationUnitId(java.lang.Long orgUnit)
public void setRequestProperties(TypedProperty p) throws ECException
public void setRequisitionerId(java.lang.String newRequisitionerId)
public void setUsersId(java.lang.Long newUserId)
protected void updateCmdContext() throws ECException
public void validateParameters() throws ECException
public CIData getCIData()
public void setCIData(CIData newCIData)