public class PunchOutSetupCmdImpl extends ControllerCommandImpl implements PunchOutSetupCmd
defaultCommandClassName, messageName, NAME| Constructor and Description |
|---|
PunchOutSetupCmdImpl()
The PunchOutSetupCmdImpl constructor calls its parents constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
isGeneric()
This method checks if the user is a generic user or not.
|
void |
performExecute()
The business logic for this controller command.
|
void |
setAuthType(int anAuthType)
This method sets the authentication type.
|
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.
|
void |
validateParameters()
This method validates the required parameters for this controller command.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic PunchOutSetupCmdImpl()
public int getAuthType()
public java.lang.Long getOrganizationUnitId()
public java.lang.Integer getProtocolId()
public java.lang.String getRequisitionerId()
public java.lang.Long getUsersId()
public boolean isGeneric()
isGeneric in interface ControllerCommandisGeneric in class ControllerCommandImplpublic 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.
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - Raised when failed to register requisitioner;
or failed to retrieve catalogId from BuyerSupplierMappingBean.public void setAuthType(int anAuthType)
anAuthType - The authentication typepublic void setOrganizationUnitId(java.lang.Long orgUnit)
orgUnit - The organization unit ID.public void setRequestProperties(TypedProperty p) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplrequestProperties - com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.ECExceptionpublic void setRequisitionerId(java.lang.String newRequisitionerId)
newRequisitionerId - The requisitioner ID.public void setUsersId(java.lang.Long newUserId)
public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException.ECExceptionpublic CIData getCIData()
com.ibm.commerce.me.datatypepublic void setCIData(CIData newCIData)
com.ibm.commerce.me.datatype