public class Role
extends java.lang.Object
implements java.security.Principal
| Modifier and Type | Field and Description |
|---|---|
static Role |
ALL
Unmodifiable role that covers all existing roles.
|
| Constructor and Description |
|---|
Role()
Default constructor.
|
Role(java.lang.String name,
java.lang.String description)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object target) |
java.util.List<Role> |
getChildRoles()
Returns the modifiable list of child roles.
|
java.lang.String |
getDescription()
Returns the description.
|
java.lang.String |
getName()
Returns the name.
|
int |
hashCode() |
void |
setChildRoles(java.util.List<Role> childRoles)
Sets the modifiable list of child roles.
|
void |
setDescription(java.lang.String description)
Sets the description.
|
void |
setName(java.lang.String name)
Sets the name.
|
java.lang.String |
toString() |
public static final Role ALL
public Role()
public Role(java.lang.String name,
java.lang.String description)
name - The name.description - The description.public boolean equals(java.lang.Object target)
equals in interface java.security.Principalequals in class java.lang.Objectpublic java.util.List<Role> getChildRoles()
public java.lang.String getDescription()
public java.lang.String getName()
getName in interface java.security.Principalpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in class java.lang.Objectpublic void setChildRoles(java.util.List<Role> childRoles)
childRoles - A list of child roles.public void setDescription(java.lang.String description)
description - The description.public void setName(java.lang.String name)
name - The name.public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.ObjectCopyright © 2005-2012. All Rights Reserved.