Package org.zkoss.spring.security
Class SecurityUtilAcl
java.lang.Object
org.zkoss.spring.security.SecurityUtilAcl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisAccessible(String hasPermission, Object domainObject) Return true if the current Authentication has one of the specified permissions to the presented domain object instance.
-
Constructor Details
-
SecurityUtilAcl
public SecurityUtilAcl()
-
-
Method Details
-
isAccessible
Return true if the current Authentication has one of the specified permissions to the presented domain object instance.- Parameters:
hasPermission- A comma separated list of integers, each representing a required bit mask permission from a subclass ofBasePermission.domainObject- The actual domain object instance for which permissions are being evaluated.- Returns:
- true if current Authentication has one of the specified permission to the presented domain object instance.
-