public class AclManager
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
hasAcl(java.lang.String acl,
javax.servlet.http.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
|
public static boolean hasAcl(java.lang.String acl, javax.servlet.http.HttpServletRequest request, java.lang.String mixins)
acl
- The acl requiredrequest
- The requestmixins
- Any mixins with this aclpublic static boolean hasAcl(java.lang.String acl, User user, java.lang.String mixins, java.util.Map context)
acl
- The acl requireduser
- The user object needed for verification.mixins
- Any mixins with this aclcontext
- 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.