# com.bea.ide.workspace.security
ISecurityRole Interface

public interface ISecurityRole

Represents a security role. This object is mutable, but changes to it will not be persisted to the workspace until its source ISecurityConfig is saved.

For instance, to change a role's description the following code could be used: `IWorkspace ws = Application.getWorkspace(); ISecurityConfig config = ws.getSecurityConfig(); ISecurityRole role = config.getRoleByName("RoleName"); role.setDescription("New description"); ws.saveSecurityConfig(config);`

## Method Summary

`public `String`` | `getDescription`() Gets the description of this role
`public `String`` | `getName`() Gets the name of this role
`public void` | `setDescription`(`String` description) Sets the name of this description
`public void` | `setName`(`String` name) Sets the name of this role

## Method Detail

### getDescription() Method

    public String getDescription()

Gets the description of this role

### getName() Method

    public String getName()

Gets the name of this role

### setDescription(String) Method

    public void setDescription(String description)

Sets the name of this description

### setName(String) Method

    public void setName(String name)
         throws NameExistsException

Sets the name of this role

#### Exceptions

``NameExistsException``