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 |
---|---|
protected boolean | bToolsFramework
Whether the command is called by the tools framework.
|
static java.lang.String | CLASSNAME
The name of this implementation of the command.
|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
protected java.lang.String | istrRoleDescription
The role description.
|
protected java.lang.String | istrRoleDisplayName
The role display name.
|
protected java.lang.String | istrRoleId
The role identifier.
|
protected java.lang.String | istrRoleName
The role name.
|
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.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASSNAME
protected boolean bToolsFramework
protected java.lang.String istrRoleId
protected java.lang.String istrRoleName
protected java.lang.String istrRoleDisplayName
protected java.lang.String istrRoleDescription
public java.lang.String getRoleDescription()
public java.lang.String getRoleId()
public java.lang.String getRoleName()
public TypedProperty getViewInputProperties()
public void performExecute() throws ECException
public void reset()
public void setRequestProperties(TypedProperty reqProperties) throws ECException
public void setRoleDescription(java.lang.String astrRoleDescription)
public void setRoleName(java.lang.String astrRoleName)
public void validateParameters() throws ECException
public java.lang.String getRoleDisplayName()
public void setRoleDisplayName(java.lang.String istrRoleDisplayName)