|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.restlet.security.Role
public class Role
Application specific role. Common examples are "administrator", "user", "anonymous", "supervisor". Note that for reusability purpose, it is recommended that those role don't reflect an actual organization, but more the functional requirements of your application.
| Field Summary | |
|---|---|
static Role |
ALL
Unmodifiable role that covers all existing roles. |
| Constructor Summary | |
|---|---|
Role()
Default constructor. |
|
Role(String name,
String description)
Constructor. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Role ALL
| Constructor Detail |
|---|
public Role()
public Role(String name,
String description)
name - The name.description - The description.| Method Detail |
|---|
public boolean equals(Object target)
equals in interface Principalequals in class Objectpublic List<Role> getChildRoles()
public String getDescription()
public String getName()
getName in interface Principalpublic int hashCode()
hashCode in interface PrincipalhashCode in class Objectpublic 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.public String toString()
toString in interface PrincipaltoString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||