public class UserRoleUtils
extends java.lang.Object
| Constructor and Description |
|---|
UserRoleUtils() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isEnabledOnUserRole(javax.faces.component.UIComponent component)
Gets the comma separated list of enabling user roles from the given component
and checks if current user is in one of these roles.
|
static boolean |
isVisibleOnUserRole(javax.faces.component.UIComponent component)
Gets the comma separated list of visibility user roles from the given component
and checks if current user is in one of these roles.
|
public static boolean isVisibleOnUserRole(javax.faces.component.UIComponent component)
component - a user role aware componentpublic static boolean isEnabledOnUserRole(javax.faces.component.UIComponent component)
component - a user role aware component