public class Permissions extends Object
| Constructor and Description |
|---|
Permissions() |
| Modifier and Type | Method and Description |
|---|---|
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
|
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 - Copyright © 2015. All rights reserved.