public class ProcessProfileTypeCmdImpl extends TaskCommandImpl implements ProcessProfileTypeCmd
profileType
of a user during registration.
This task command is called after the ProcessParentMember task command is
called.
The default logic of this task command is:
If profileType
is specified in requestProperties
, check
if it equals either 'C' or 'B'. If it does not equal either of these values,
an exception is thrown.
If profileType
is not specified in requestProperties
,
and parentMemberId
is null or is Default Organization, then set
profileType
to 'C', otherwise, set profileType
to
'B'.
The default logic can be overwritten.
Inputs of this task command are:
setRequestProperties(TypedProperty) - sets request properties which may or may not contain profileType property, but should contain parentMemberId property, otherwise, an exception is thrown.Outputs of this task command are:
getRequestProperties(TypedProperty) - returns request properties which contains the profileType property. getProfileType - gets the profileType.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASSNAME
The name of this implementation of the command.
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ProcessProfileTypeCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getProfileType()
Gets the profile type.
|
TypedProperty |
getRequestProperties()
Gets the request properties.
|
void |
performExecute()
Determines the
profileType value to use for a user. |
void |
setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.
|
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, validateParameters
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
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.String getProfileType()
getProfileType
in interface ProcessProfileTypeCmd
public TypedProperty getRequestProperties()
getRequestProperties
in interface ProcessProfileTypeCmd
public void performExecute() throws ECException
profileType
value to use for a user. If
requestProperties
, check if it
equals either 'C' or 'B'. If it does not equal either of these values, an
ECException is thrown. If profileType
is not specified in
requestProperties
, and parentMemberId
is null
or is Default Organization, then set profileType
to 'C',
otherwise, set profileType
to 'B'.performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- If the profile type is neither
ECMemberConstants.EC_USER_PROFILE_BUSINESS ('B') nor
ECMemberConstants.EC_USER_PROFILE_CUSTOMER ('C').public void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface ProcessProfileTypeCmd
aRequestProperties
- the request properties.