public class Role extends Object implements Principal
Application.getRole(String) method
instead.| Modifier and Type | Field and Description |
|---|---|
static Role |
ALL
Unmodifiable role that covers all existing roles.
|
| Constructor and Description |
|---|
Role()
Default constructor.
|
Role(String name)
Constructor.
|
Role(String name,
String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
List<Role> |
getChildRoles()
Returns the modifiable list of child roles.
|
String |
getDescription()
Returns the description.
|
String |
getName()
Returns the name.
|
void |
setChildRoles(List<Role> childRoles)
Sets the modifiable list of child roles.
|
void |
setDescription(String description)
Sets the description.
|
void |
setName(String name)
Sets the name.
|
String |
toString() |
public static final Role ALL
public Role()
public Role(String name)
name - The name.public List<Role> getChildRoles()
public String getDescription()
public String getName()
public void setChildRoles(List<Role> childRoles)
childRoles - A list of child roles.public void setDescription(String description)
description - The description.public void setName(String name)
name - The name.Copyright © 2005–2015. All rights reserved.