public class Role extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
addAction(Action act)
Add the given action to this role
|
void |
addActions(Action... acts)
Add the given actions to this role
|
void |
addActions(Collection<Action> actions)
Add the given actions to this role
|
String |
getName()
Return the name of the role
|
boolean |
isAllowed(Action action)
Check whether the role can perform the given action
|
void |
setName(String name)
Set the role name
|
public Role(String name)
name - public void setName(String name)
name - public String getName()
public boolean isAllowed(Action action)
action - public void addAction(Action act)
act - public void addActions(Action... acts)
acts - public void addActions(Collection<Action> actions)
actions - Copyright © 2015. All Rights Reserved.