java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.me.commands.RegisterRequisitionerCmdImpl
This is the implementation 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 Copyright statement. |
protected
static java.lang.Object |
critsect |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.me.commands. RegisterRequisitionerCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
RegisterRequisitionerCmdImpl() RegisterRequisitionerCmdImpl constructor comment. |
Method Summary | |
---|---|
java.lang.Integer |
getProtocolId() Gets the protocol id |
AccessVector |
getResources() Gets resources which contains organizations |
java.lang.Long |
getUsersId() Gets the userId |
boolean |
isRegisteredSuccessfully() Check if registered successfully. |
void |
performExecute() The business logic for this task command. |
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 |
setOrderStatusUrl(java.lang.String orderStatusUrl) Sets the orderstatusurl |
void |
setPostbackUrl(java.lang.String postbackUrl) Sets the postbackUrl |
void |
setProtocolId(java.lang.Integer protocol) Sets the requisitioner name |
void |
setReqId(java.lang.String reqId) Sets the requisitioner id |
void |
setReqName(java.lang.String reqName) Sets the buyer cookie |
void |
setSessionId(java.lang.String sessionId) Sets the buyer cookie |
void |
setSessionInfo(
SessionInfo sessionInfo) Sets the sessionInfo |
void |
setSessionType(java.lang.String sessionType) Sets the session type |
void |
setSupplierId(long supplierId) Sets the supplierId |
void |
setUsersId(java.lang.Long userId) Sets the userId |
void |
validateParameters() Check whether all the required parameters are available authentication. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
protected static java.lang.Object critsect
Constructor Detail |
---|
public RegisterRequisitionerCmdImpl()
Method Detail |
---|
public java.lang.Integer getProtocolId()
public AccessVector getResources() throws ECException
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
- Rasied when any error occured.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 class
AbstractECTargetableCommand
ECException
- Raised when application errors occured.public void setBuyerId(long buyerId)
setBuyerId
in interface
RegisterRequisitionerCmd
buyerId
- The buyer Id.public void setDeptName(java.lang.String deptName)
setDeptName
in interface
RegisterRequisitionerCmd
deptName
- The department name.public void setOrderStatusUrl(java.lang.String orderStatusUrl)
orderStatusUrl
- The order status URL.public void setPostbackUrl(java.lang.String postbackUrl)
setPostbackUrl
in interface
RegisterRequisitionerCmd
postbackUrl
- The URL that will be used to post
back.public void setProtocolId(java.lang.Integer protocol)
setProtocolId
in interface
RegisterRequisitionerCmd
protocol
- The protocol id.public void setReqId(java.lang.String reqId)
setReqId
in interface
RegisterRequisitionerCmd
reqId
- The requisitioner id.public void setReqName(java.lang.String reqName)
public void setSessionId(java.lang.String sessionId)
setSessionId
in interface
RegisterRequisitionerCmd
sessionId
- The buyer cookiepublic void setSessionInfo(SessionInfo sessionInfo)
setSessionInfo
in interface
RegisterRequisitionerCmd
sessionInfo
- The
com.ibm.commerce.me.datatype.SessionInfo.public void setSessionType(java.lang.String sessionType)
sessionType
- The session type.public void setSupplierId(long supplierId)
setSupplierId
in interface
RegisterRequisitionerCmd
supplierId
- The supplier Id.public void setUsersId(java.lang.Long userId)
userId
- The user idpublic void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException.
ECException