public class BatchOrderRequestCmdImpl extends ControllerCommandImpl implements BatchOrderRequestCmd
CREATE_MODE, defaultCommandClassName, DELETE_MODE, messageName, NAME, UPDATE_MODE
Constructor and Description |
---|
BatchOrderRequestCmdImpl()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
getAuthType()
Gets the authentication type
|
java.lang.Long |
getBuyerId()
Gets the buyer id
|
java.lang.Long |
getContractId()
Gets the contract id
|
java.lang.Long |
getOrganizationUnitId()
Gets the organization unit id
|
java.lang.Integer |
getProtocolId()
Gets the protocol id
|
java.lang.String |
getRequisitionerId()
Gets the requisitioner id
|
java.lang.Integer |
getStoreId()
Gets the store id
|
java.lang.Long |
getSupplierId()
Gets the supplier id
|
boolean |
isGeneric()
A user is generic till he logs on, so returns true.
|
void |
performExecute()
If the checkParamateres are OK, authenticate the buyer and supplier
credentials.
|
void |
setAuthType(java.lang.Integer anAuthType)
Sets the authentication type
|
void |
setBuyerId(java.lang.Long aBuyerId)
Sets the buyer organization id
|
void |
setContractId(java.lang.Long aContractId)
Sets the contract id
|
void |
setOrganizationUnitId(java.lang.Long orgUnit)
Sets the organization unit id
|
void |
setProtocolId(java.lang.Integer aProtocolId)
Sets the protocol id
|
void |
setRequestProperties(TypedProperty p)
The WebController calls the setRequestProperties method before invoking the execute method in this command.
|
void |
setRequisitionerId(java.lang.String aRequisitionerId)
Sets the requisitioner id
|
void |
setStoreId(java.lang.Integer aStoreId)
Sets the store id
|
void |
setSupplierId(java.lang.Long aSupplierId)
Sets the supplier id
|
void |
validateParameters()
Validate parameters, the validation includes checking whether buyer credential
is null or empty and whether the protocol valid.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public java.lang.Integer getAuthType()
public java.lang.Long getBuyerId()
public java.lang.Long getContractId()
public java.lang.Long getOrganizationUnitId()
public java.lang.Integer getProtocolId()
public java.lang.String getRequisitionerId()
public java.lang.Integer getStoreId()
getStoreId
in interface ECCommand
getStoreId
in class AbstractECTargetableCommand
public java.lang.Long getSupplierId()
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
none
- public void performExecute() throws ECException
I
to H
.
or else register the user.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
CommandException.
ECException
public void setAuthType(java.lang.Integer anAuthType)
anAuthType
- type of authentication modepublic void setBuyerId(java.lang.Long aBuyerId)
aBuyerId
- the buyer idpublic void setContractId(java.lang.Long aContractId)
aContractId
- the contract idpublic void setOrganizationUnitId(java.lang.Long orgUnit)
orgUnit
- the organization unit idpublic void setProtocolId(java.lang.Integer aProtocolId)
aProtocolId
- the protocol idpublic void setRequestProperties(TypedProperty p) throws ECException
POData
by calling setPOData()
passing requestProperties.setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
requestProperties
- typed Property that contains the PODataECException
public void setRequisitionerId(java.lang.String aRequisitionerId)
aRequisitionerId
- the requisitioner idpublic void setStoreId(java.lang.Integer aStoreId)
aStoreId
- the store idpublic void setSupplierId(java.lang.Long aSupplierId)
aSupplierId
- the supplier idpublic void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException.
ECException