This is the interface of RegisterRequisitionerCmd. It retrieves the requisitioning user if they are already registered, and registers them as a new requisitioning user if they are not registered. The RegisterRequisitioner command is called by the PunchOutSetup and BatchOrderRequest commands after successfully authenticating the PunchOutSetupRequest and PurchaseOrderRequest messages.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright field |
static java.lang.String |
defaultCommandClassName The default implementation class name. |
static java.lang.String |
NAME The interface name. |
Method Summary | |
---|---|
java.lang.Long |
getUsersId() set the userId |
boolean |
isRegisteredSuccessfully() Once the command is completed, this method will be called to check whether the registration of the requisitioner is successfull. |
void |
setBuyerId(long buyerId) Sets the buyerId (Id of the buyer org) |
void |
setDeptName(java.lang.String deptName) Sets the department name (if any) to which the requisitioner belong to. |
void |
setPostbackUrl(java.lang.String postbackUrl) Sets the URI that will be used as Postback. |
void |
setProtocolId(java.lang.Integer protocol) Sets the protocolId |
void |
setReqId(java.lang.String reqId) Sets the requisitioner id |
void |
setSessionId(java.lang.String sessionId) Sets the buyer cookie |
void |
setSessionInfo(
SessionInfo sessionInfo) Sets the sessionInfo |
void |
setSupplierId(long supplierId)
Sets the supplierId |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String NAME
public static final java.lang.String defaultCommandClassName
Method Detail |
---|
public java.lang.Long getUsersId()
public boolean isRegisteredSuccessfully()
public void setBuyerId(long buyerId)
buyerId
- The buyer organization id.public void setDeptName(java.lang.String deptName)
deptName
- The department name.public void setPostbackUrl(java.lang.String postbackUrl)
postbackUrl
- The post back URIpublic void setProtocolId(java.lang.Integer protocol)
protocol
- The protocol id.public void setReqId(java.lang.String reqId)
reqId
- The requisitioner idpublic void setSessionId(java.lang.String sessionId)
sessionId
- The buyer cookiepublic void setSessionInfo(SessionInfo sessionInfo)
sessionInfo
- The
com.ibm.commerce.me.datatype.SessionInfo.public void setSupplierId(long supplierId)
supplierId
- The supplier id.