public class RegisterRequisitionerCmdImpl extends TaskCommandImpl implements RegisterRequisitionerCmd
RegisterRequisitioner
command is called by the PunchOutSetup
and BatchOrderRequest
commands after
successfully authenticating the PunchOutSetupRequest
and PurchaseOrderRequest
messages.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
Copyright statement.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
RegisterRequisitionerCmdImpl()
The RegisterRequisitionerCmdImpl constructor calls its parents constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getProtocolId()
This method gets the protocol ID.
|
AccessVector |
getResources()
This method gets a list of all resources that contain organizations.
|
java.lang.Long |
getUsersId()
This method gets the user ID.
|
boolean |
isRegisteredSuccessfully()
This method checks if a requisitioner registered successfully.
|
void |
performExecute()
The business logic for this task command.
|
void |
setBuyerId(long aBuyerId)
This method sets the buyer ID (ID of the buyer organization).
|
void |
setDeptName(java.lang.String aDeptName)
This method sets the department name (if any) to which the requisitioner belongs to.
|
void |
setOrderStatusUrl(java.lang.String anOrderStatusUrl)
This method sets the order status URL.
|
void |
setPostbackUrl(java.lang.String aPostbackUrl)
This method sets the postback URL.
|
void |
setProtocolId(java.lang.Integer aProtocol)
This method sets the protocol ID.
|
void |
setReqId(java.lang.String aReqId)
This method sets the requisitioner ID.
|
void |
setReqName(java.lang.String aReqName)
This method sets the requisitioner name.
|
void |
setSessionId(java.lang.String aSessionId)
This method sets the session ID.
|
void |
setSessionInfo(SessionInfo aSessionInfo)
This method sets the session information.
|
void |
setSessionType(java.lang.String aSessionType)
This method sets the session type.
|
void |
setSupplierId(long aSupplierId)
This method sets the supplier ID.
|
void |
setUsersId(java.lang.Long aUserId)
This method sets the user ID.
|
void |
validateParameters()
This method checks whether all the required parameters are available for authentication.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, 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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public RegisterRequisitionerCmdImpl()
public java.lang.Integer getProtocolId()
public AccessVector getResources() throws ECException
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
ECException
public java.lang.Long getUsersId()
getUsersId
in interface RegisterRequisitionerCmd
public boolean isRegisteredSuccessfully()
isRegisteredSuccessfully
in interface RegisterRequisitionerCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- Raised when application errors occur.public void setBuyerId(long aBuyerId)
setBuyerId
in interface RegisterRequisitionerCmd
aBuyerId
- The buyer ID.public void setDeptName(java.lang.String aDeptName)
setDeptName
in interface RegisterRequisitionerCmd
aDeptName
- The department name.public void setOrderStatusUrl(java.lang.String anOrderStatusUrl)
anOrderStatusUrl
- The order status URL.public void setPostbackUrl(java.lang.String aPostbackUrl)
setPostbackUrl
in interface RegisterRequisitionerCmd
aPostbackUrl
- The URL to use to post back.public void setProtocolId(java.lang.Integer aProtocol)
setProtocolId
in interface RegisterRequisitionerCmd
aProtocol
- The requisitioner name.public void setReqId(java.lang.String aReqId)
setReqId
in interface RegisterRequisitionerCmd
aReqId
- The requisitioner ID.public void setReqName(java.lang.String aReqName)
aReqName
- The buyer cookie.public void setSessionId(java.lang.String aSessionId)
setSessionId
in interface RegisterRequisitionerCmd
aSessionId
- The buyer cookiepublic void setSessionInfo(SessionInfo aSessionInfo)
setSessionInfo
in interface RegisterRequisitionerCmd
aSessionInfo
- The session information.com.ibm.commerce.me.datatype
public void setSessionType(java.lang.String aSessionType)
aSessionType
- The session type.public void setSupplierId(long aSupplierId)
setSupplierId
in interface RegisterRequisitionerCmd
aSupplierId
- The supplier ID.public void setUsersId(java.lang.Long aUserId)
aUserId
- The user ID.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
- Raised when there is no reqId
parameter provided to this command.