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.Principal
equals
in class java.lang.Object
public java.util.List<Role> getChildRoles()
public java.lang.String getDescription()
public java.lang.String getName()
getName
in interface java.security.Principal
public int hashCode()
hashCode
in interface java.security.Principal
hashCode
in class java.lang.Object
public 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.Principal
toString
in class java.lang.Object
Copyright © 2005-2012. All Rights Reserved.