com.redhat.rhn.manager.acl
Class AclManager

java.lang.Object
  extended by com.redhat.rhn.manager.acl.AclManager

public class AclManager
extends java.lang.Object

AclManager


Method Summary
static boolean hasAcl(java.lang.String acl, HttpServletRequest request, java.lang.String mixins)
          Returns whether or not a specified acl is possessed
static boolean hasAcl(java.lang.String acl, User user, java.lang.String mixins, java.util.Map context)
          Returns whether or not a specified acl is possessed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasAcl

public static boolean hasAcl(java.lang.String acl,
                             HttpServletRequest request,
                             java.lang.String mixins)
Returns whether or not a specified acl is possessed

Parameters:
acl - The acl required
request - The request
mixins - Any mixins with this acl
Returns:
has acl boolean

hasAcl

public static boolean hasAcl(java.lang.String acl,
                             User user,
                             java.lang.String mixins,
                             java.util.Map context)
Returns whether or not a specified acl is possessed

Parameters:
acl - The acl required
user - The user object needed for verification.
mixins - Any mixins with this acl
context - Context object thats used by the acl mixin to evaluate data, this needs to be a writable Map or can be null if there is no data.
Returns:
has acl boolean