public class Role extends Object implements Principal
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,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object target) |
List<Role> |
getChildRoles()
Returns the modifiable list of child roles.
|
String |
getDescription()
Returns the description.
|
String |
getName()
Returns the name.
|
int |
hashCode() |
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 boolean equals(Object target)
public List<Role> getChildRoles()
public String getDescription()
public String getName()
public int hashCode()
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–2016. All rights reserved.