org.apache.myfaces.component
Class UserRoleUtils
java.lang.Object
   org.apache.myfaces.component.UserRoleUtils
org.apache.myfaces.component.UserRoleUtils
- public final class UserRoleUtils 
- extends Object
- Version:
- $Revision: 673833 $ $Date: 2008-07-03 16:58:05 -0500 (Thu, 03 Jul 2008) $
- Author:
- Manfred Geiler (latest modification by $Author: skitching $)
| Method Summary | 
| 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.
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
isVisibleOnUserRole
public 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.
 
- 
- 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
 
isEnabledOnUserRole
public 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.
 
- 
- 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
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.