|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.cruxframework.crux.core.client.permission.Permissions
public class Permissions
Check if the current user is authorized to realize the job related with given roles.
| Constructor Summary | |
|---|---|
Permissions()
|
|
| Method Summary | |
|---|---|
static boolean |
hasRole(String role)
Return true if the current user has the given role associated to him |
static void |
markAsUnauthorizedForEdition(com.google.gwt.user.client.ui.HasEnabled widget)
Notify the given widget that current user has no role for edit its contents |
static void |
markAsUnauthorizedForViewing(com.google.gwt.user.client.ui.IsWidget widget)
Notify the given widget that current user has no role for view its contents |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Permissions()
| Method Detail |
|---|
public static boolean hasRole(String role)
role -
public static void markAsUnauthorizedForEdition(com.google.gwt.user.client.ui.HasEnabled widget)
widget - public static void markAsUnauthorizedForViewing(com.google.gwt.user.client.ui.IsWidget widget)
widget -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||