org.apache.myfaces.component
Class UserRoleUtils
java.lang.Object
org.apache.myfaces.component.UserRoleUtils
public class UserRoleUtils
extends java.lang.Object
$Revision: 169646 $ $Date: 2005-05-11 17:34:57 +0200 (Wed, 11 May 2005) $- Manfred Geiler (latest modification by $Author: grantsmith $)
static boolean | isEnabledOnUserRole(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(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.
|
isEnabledOnUserRole
public static boolean isEnabledOnUserRole(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.
component
- a user role aware component
- true if no user roles are defined for this component or
user is in one of these roles, false otherwise
isVisibleOnUserRole
public static boolean isVisibleOnUserRole(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.
component
- a user role aware component
- true if no user roles are defined for this component or
user is in one of these roles, false otherwise