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, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public 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 ControllerCommand
isGeneric
in class ControllerCommandImpl
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.
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- 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 ControllerCommand
setRequestProperties
in class ControllerCommandImpl
requestProperties
- com.ibm.commerce.datatype.TypedPropertycom.ibm.commerce.exception.ECException.
ECException
public 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 ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException.
ECException
public CIData getCIData()
com.ibm.commerce.me.datatype
public void setCIData(CIData newCIData)
com.ibm.commerce.me.datatype