com.ibm.commerce.usermanagement.commands
Class UserRegistrationRoleAssignCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.usermanagement.commands.UserRegistrationRoleAssignCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, UserRegistrationRoleAssignCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class UserRegistrationRoleAssignCmdImpl extends TaskCommandImpl implements UserRegistrationRoleAssignCmd
This task command is called by UserRegistrationAddPreApproval to assign roles during self-registration.Currently this command does nothing and it needs to be overridden 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 be thrown. getRequestProperties(TypedProperty) - returns request properties.
- See Also:
- Serialized Form
-
-
Field Summary
Fields 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.-
Fields inherited from interface com.ibm.commerce.usermanagement.commands.UserRegistrationRoleAssignCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description UserRegistrationRoleAssignCmdImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description 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, 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
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM Copyright notice field.- See Also:
- Constant Field Values
-
CLASSNAME
public static final java.lang.String CLASSNAME
The name of this implementation of the command.- See Also:
- Constant Field Values
-
-
Method Detail
-
getRequestProperties
public TypedProperty getRequestProperties()
Returns the request properties.- Specified by:
getRequestProperties
in interfaceUserRegistrationRoleAssignCmd
- Returns:
- The request properties.
-
performExecute
public void performExecute() throws ECException
Assigns the member to the specified roles.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- If the parent member was not specified.
-
setRequestProperties
public void setRequestProperties(TypedProperty aRequestProperties)
Sets the request properties.- Specified by:
setRequestProperties
in interfaceUserRegistrationRoleAssignCmd
- Parameters:
aRequestProperties
- the request properties.
-
-