public class ResellerRegistrationAddCmdImpl extends ControllerCommandImpl implements ResellerRegistrationAddCmd
org_
and usr_
in order to separate the parameters. The non prefixed
names of attributes are same as for commands OrgEntityAddCmd and UserRegistrationAddCmd.
Behavior
org_
to the ResellerOrgEntityRegistrationAdd
, and the properties prefixed with usr_
to the ResellerUserRegistrationAdd
. The result is the creation of a new Reseller organization, and a user under that
organization.
Exception Conditions
ResellerOrgEntityRegistrationAdd
cannot be resolved (_ERR_CMD_CMD_NOT_FOUND).
ResellerUserRegistrationAdd
cannot be resolved (_ERR_CMD_CMD_NOT_FOUND).
orgEntityId
from creating the OrgEntity is null. (_ERR_MISSING_CMD_PARAMETER)
userId
from creating the User is null. (_ERR_MISSING_CMD_PARAMETER)
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
NAME
defaultCommandClassName
Constructor and Description |
---|
ResellerRegistrationAddCmdImpl()
Constructor for ResellerRegistrationAddCmdImpl.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getUniqueUserId()
Creates a new guest user, and returns the userId of this user.
|
boolean |
isGeneric()
This command can be run by a generic user.
|
boolean |
isRetriable()
This method determines whether this command is retriable on transaction rollback exceptions.
|
void |
performExecute()
Executes the command.
|
void |
setRequestProperties(TypedProperty reqProperties)
Sets the request properties for this command.
|
void |
setViewInputProperties(TypedProperty tpRequestProperties)
Sets the input properties to be passed to the view command.
|
void |
validateParameters()
Parameters are validated by the child commands for this flow.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, 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, mergeProperties, setGeneric, setRetriable
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, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
fulfills, getOwner
public static final java.lang.String COPYRIGHT
public ResellerRegistrationAddCmdImpl()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
TypedProperty
- ECException
public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException
ECCommand.validateParameters()
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
TargetableCommand.performExecute()
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
ControllerCommand.isGeneric()
public boolean isRetriable()
ControllerCommandImpl
isRetriable
in interface ControllerCommand
isRetriable
in class ControllerCommandImpl
ControllerCommand.isRetriable()
public void setViewInputProperties(TypedProperty tpRequestProperties) throws ECException
setViewInputProperties
in interface ControllerCommand
setViewInputProperties
in class ControllerCommandImpl
com.ibm.commerce.datatype.TypedProperty
- The request properties to be passed to the view command.com.ibm.commerce.exception.ECException.
ECException
public java.lang.Long getUniqueUserId() throws ECException
com.ibm.commerce.exception.ECException.
ECException