public class RoleAddCmdImpl extends ControllerCommandImpl implements RoleAddCmd
Roles are stored in the ROLE table.
Use this command with SSL (Secure Sockets Layer) to ensure that the information are encrypted. To do so type the command with the HTTPS secure protocol.
The parameter roleName is mandatory.
Behavior
Exception Conditions
| 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.
|
NAMEdefaultCommandClassName| Constructor and Description |
|---|
RoleAddCmdImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getRoleDescription()
Returns the role description.
|
java.lang.String |
getRoleDisplayName()
Returns the istrRoleDisplayName.
|
java.lang.String |
getRoleId()
Returns the role identifier.
|
java.lang.String |
getRoleName()
Returns the role name.
|
TypedProperty |
getViewInputProperties()
Returns the request properties without the tools framework objects.
|
void |
performExecute()
Creates the new Role.
|
void |
reset()
Resets the values of the command so it can be reused to add another role.
|
void |
setRequestProperties(TypedProperty reqProperties)
Sets the request properties.
|
void |
setRoleDescription(java.lang.String astrRoleDescription)
Sets the role description.
|
void |
setRoleDisplayName(java.lang.String istrRoleDisplayName)
Sets the istrRoleDisplayName.
|
void |
setRoleName(java.lang.String astrRoleName)
Sets the role name.
|
void |
validateParameters()
Validates that the name of the role is defined and an exist role of the same name does not exist.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputPropertiesaccessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcheckPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiesaccessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwnercheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesfulfills, getOwnerpublic static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
public java.lang.String getRoleDescription()
getRoleDescription in interface RoleAddCmdpublic java.lang.String getRoleId()
getRoleId in interface RoleAddCmdpublic java.lang.String getRoleName()
getRoleName in interface RoleAddCmdpublic TypedProperty getViewInputProperties()
getViewInputProperties in interface ControllerCommandgetViewInputProperties in class ControllerCommandImplpublic void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECException - If there is a problem creating the new role or
executing the PostRoleAdd command.public void reset()
reset in interface RoleAddCmdreset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic void setRequestProperties(TypedProperty reqProperties) throws ECException
setRequestProperties in interface ControllerCommandsetRequestProperties in class ControllerCommandImplreqProperties - the parameters passed to the command.ECException - If there is a problem indicated by the PreRoleAdd command.public void setRoleDescription(java.lang.String astrRoleDescription)
setRoleDescription in interface RoleAddCmdastrRoleDescription - the role description.public void setRoleName(java.lang.String astrRoleName)
setRoleName in interface RoleAddCmdastrRoleName - the role name.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECException - If the name is not specified or the name already exists for another role.public java.lang.String getRoleDisplayName()
public void setRoleDisplayName(java.lang.String istrRoleDisplayName)
istrRoleDisplayName - The istrRoleDisplayName to set