com.ibm.commerce.me.commands
Interface RegisterRequisitionerCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
RegisterRequisitionerCmdImpl

public interface RegisterRequisitionerCmd
extends TaskCommand

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
IBM copyright field
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The interface name.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation class name.
See Also:
Constant Field Values
Method Detail

getUsersId

public java.lang.Long getUsersId()
set the userId
Returns:
userId The user id.

isRegisteredSuccessfully

public boolean isRegisteredSuccessfully()
Once the command is completed, this method will be called to check whether the registration of the requisitioner is successfull.
Returns:
boolean true if the requisitioner is registered successfully; false otherwise

setBuyerId

public void setBuyerId(long buyerId)
Sets the buyerId (Id of the buyer org)
Parameters:
buyerId - The buyer organization id.

setDeptName

public void setDeptName(java.lang.String deptName)
Sets the department name (if any) to which the requisitioner belong to.
Parameters:
deptName - The department name.

setPostbackUrl

public void setPostbackUrl(java.lang.String postbackUrl)
Sets the URI that will be used as Postback.
Parameters:
postbackUrl - The post back URI

setProtocolId

public void setProtocolId(java.lang.Integer protocol)
Sets the protocolId
Parameters:
protocol - The protocol id.

setReqId

public void setReqId(java.lang.String reqId)
Sets the requisitioner id
Parameters:
reqId - The requisitioner id

setSessionId

public void setSessionId(java.lang.String sessionId)
Sets the buyer cookie
Parameters:
sessionId - The buyer cookie

setSessionInfo

public void setSessionInfo(SessionInfo sessionInfo)
Sets the sessionInfo
Parameters:
sessionInfo - The com.ibm.commerce.me.datatype.SessionInfo.

setSupplierId

public void setSupplierId(long supplierId)
Sets the supplierId
Parameters:
supplierId - The supplier id.