org.apache.myfaces.component
public class UserRoleUtils extends Object
Version: $Revision: 169646 $ $Date: 2005-05-11 17:34:57 +0200 (Wed, 11 May 2005) $
Method Summary | |
---|---|
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. |
Parameters: component a user role aware component
Returns: true if no user roles are defined for this component or user is in one of these roles, false otherwise
Parameters: component a user role aware component
Returns: true if no user roles are defined for this component or user is in one of these roles, false otherwise