deniedActions.add(actionName);
}
}
}
Principal principal = invert ? new ComplementaryRolePrincipal(role) : new RolePrincipal(role);
//Add all permissions
Constructor constructor = permissionClass.getConstructor(new Class[]{String.class, String.class});
DefaultPermission perm = (DefaultPermission) constructor.newInstance(new Object[]{resourceName, null});
grantActionsToPermission(perm, grantedActions, deniedActions);