public class PunchOutCatalogDisplayCmdImpl extends ControllerCommandImpl implements PunchOutCatalogDisplayCmd
PunchOutSetup
command, the
authentication information is stored in the supplier cookie table. The key to that
table entry and the URL of this command name are sent in the response.
Now the procurement system will invoke this command for the requisitioner
providing the supplier cookie. This command will retrieve and verify the buyer
information using the supplier cookie and forward it to the appropriate view task
based on the logon mode. (Display, Edit or Inspect)Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field
|
defaultCommandClassName, NAME
Constructor and Description |
---|
PunchOutCatalogDisplayCmdImpl()
PunchOutcatalogDisplayCmdImpl constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
The business logic for this controller command.
|
void |
setCatalogId(java.lang.Long catalogId)
Sets the catalog ID that represents the primary key of the
catalog from which the category view is to be retrieved.
|
void |
setIdentifier(java.lang.String id)
Sets the external Identifier that along with the MemberId
uniquely identifies the category whose view is to be retrieved.
|
void |
setMemberId(java.lang.Long memberId)
Sets the MemberId (or owner) that along with the Identifier
uniquely identifies the category whose view is to be retrieved.
|
void |
setRequestProperties(TypedProperty p)
The Web controller calls the setRequestProperties method before invoking the execute method in
this command.
|
void |
setSupplierCookie(java.lang.String supplierCookie)
This method sets the supplier cookie which contains the buyer and supplier credentials.
|
void |
validateParameters()
Check whether all the required parameters are available for authentication.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, 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, isGeneric, 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 static final java.lang.String COPYRIGHT
public PunchOutCatalogDisplayCmdImpl()
public void performExecute() throws ECException
checkParametersOK()
and
then retrieve the buyerRequestInfo from the SupplierCookieTable.
Since the SupplierCookieTable has been implemented using the
Singleton pattern we do not instantiate it.
Next, it will put related fields retrieved from the buyerRequestInfo into response properties.
Finally, it will create a request session, and add it into the RequisitionerSessionTable.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
CommandException
- Raised when unable to retrieve the buyer request information from the supplier cookie table.ECException
public void setCatalogId(java.lang.Long catalogId)
setCatalogId
in interface PunchOutCatalogDisplayCmd
anCatalogId
- The catalog ID that represents the primary key of the catalog.PuchOutCatalogDisplayCmd#setCatalogId()
public void setIdentifier(java.lang.String id)
setIdentifier
in interface PunchOutCatalogDisplayCmd
id
- The external identifier ID that is used along with the memberId to identify the category.PuchOutCatalogDisplayCmd#setIdentifier()
public void setMemberId(java.lang.Long memberId)
setMemberId
in interface PunchOutCatalogDisplayCmd
anMemberId
- The memberId, used along with identifier ID to identify the category.PuchOutCatalogDisplayCmd#setMemberId()
public void setRequestProperties(TypedProperty p) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
requestProperties
- The com.ibm.commerce.datatype.TypedPropertyECException
- Raised when the supplier cookie URL is null.public void setSupplierCookie(java.lang.String supplierCookie)
setSupplierCookie
in interface PunchOutCatalogDisplayCmd
supplierCookie
- The supplier cookie which contains the buyer and supplier credentials.PuchOutCatalogDisplayCmd#setSupplierCookie()
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Raised when required supplierCookie is null or empty.