class AclAuthorization {


    private final IExpressionContext context;
    private final Authentication authentication;



    public AclAuthorization(
            final IExpressionContext context,
            final Authentication authentication) {
        
        super();

        this.context = context;
        this.authentication = authentication;

    }


    public Authentication getAuthentication() {
        return this.authentication;
    }



    public boolean acl(final Object domainObject, final String permissions) {<FILL_FUNCTION_BODY>}

    
}

        
        Validate.notEmpty(permissions, "permissions cannot be null or empty");

        final ApplicationContext applicationContext = AuthUtils.getContext(this.context);
        
        final List<Permission> permissionsList =
                AclAuthUtils.parsePermissionsString(applicationContext, permissions);
        
        return AclAuthUtils.authorizeUsingAccessControlList(
                this.context, domainObject, permissionsList, this.authentication);
        
    
<no_super_class>