java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.usermanagement.commands.UserRegistrationRoleAssignCmdImpl
This task command is called by UserRegistrationAddPreApproval to assign roles during self-registration.
Currently this command does nothing and it needs to be overiden by customers if they want to assign roles during self-registration.
Inputs of this task command are:
setRequestProperties(TypedProperty) - sets request properties which should contain memberId of this user. otherwise, an exception will thrown. getRequestProperties(TypedProperty) - returns request properties.
Field Summary | |
---|---|
static java.lang.String |
CLASSNAME The name of this implementation of the command. |
static java.lang.String |
COPYRIGHT IBM Copyright notice field. |
protected
TypedProperty |
requestProperties The request properties. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.usermanagement.commands. UserRegistrationRoleAssignCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
UserRegistrationRoleAssignCmdImpl() |
Method Summary | |
---|---|
TypedProperty |
getRequestProperties() Returns the request properties. |
void |
performExecute() Assigns the member to the specified roles. |
void |
setRequestProperties(
TypedProperty aRequestProperties) Sets the request properties. |
Methods inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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
public static final java.lang.String CLASSNAME
protected TypedProperty requestProperties
Constructor Detail |
---|
public UserRegistrationRoleAssignCmdImpl()
Method Detail |
---|
public TypedProperty getRequestProperties()
getRequestProperties
in interface
UserRegistrationRoleAssignCmd
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- If the parent member was not specified.public void setRequestProperties(TypedProperty aRequestProperties)
setRequestProperties
in interface
UserRegistrationRoleAssignCmd
aRequestProperties
- the request properties.