java.lang.ObjectCacheableCommandImpl
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
public java.lang.Long getUsersId()
public boolean isRegisteredSuccessfully()
public void performExecute() throws ECException
public void setBuyerId(long buyerId)
public void setDeptName(java.lang.String deptName)
public void setOrderStatusUrl(java.lang.String orderStatusUrl)
public void setPostbackUrl(java.lang.String postbackUrl)
public void setProtocolId(java.lang.Integer protocol)
public void setReqId(java.lang.String reqId)
public void setReqName(java.lang.String reqName)
public void setSessionId(java.lang.String sessionId)
public void setSessionInfo(SessionInfo sessionInfo)
public void setSessionType(java.lang.String sessionType)
public void setSupplierId(long supplierId)
public void setUsersId(java.lang.Long userId)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.