if (allMethodsRoleInfo != null && allMethodsRoleInfo.isForbidden()) return; if (roleInfo.isForbidden()) return; if (roleInfo.isForbidden())
return true; if (roleInfo.isForbidden()) return false;
if (allMethodsRoleInfo != null && allMethodsRoleInfo.isForbidden()) return; if (roleInfo.isForbidden()) return; if (roleInfo.isForbidden())
if (allMethodsRoleInfo != null && allMethodsRoleInfo.isForbidden()) return; if (roleInfo.isForbidden()) return; if (roleInfo.isForbidden())
if (allMethodsRoleInfo != null && allMethodsRoleInfo.isForbidden()) return; if (roleInfo.isForbidden()) return; if (roleInfo.isForbidden())
private void addConstraint(RoleInfo roleInfo, Constraint constraint) { if (roleInfo.isForbidden()) return; boolean forbidden = constraint.isForbidden(); roleInfo.setForbidden(forbidden); if (!forbidden) { UserDataConstraint userDataConstraint = UserDataConstraint.get(constraint.getDataConstraint()); roleInfo.setUserDataConstraint(userDataConstraint); boolean checked = constraint.getAuthenticate(); roleInfo.setChecked(checked); if (roleInfo.isChecked()) { if (constraint.isAnyRole()) { if (strict) { // * means "all defined roles" for (String role : roles) roleInfo.addRole(role); } else // * means any role roleInfo.setAnyRole(true); } else { String[] newRoles = constraint.getRoles(); for (String role : newRoles) { if (strict && !roles.contains(role)) throw new IllegalArgumentException("Attempt to use undeclared role: " + role + ", known roles: " + roles); roleInfo.addRole(role); } } } } }
return true; if (roleInfo.isForbidden()) return false;
return true; if (roleInfo.isForbidden()) return false;
return true; if (roleInfo.isForbidden()) return false;
return true; if (roleInfo.isForbidden()) return false;
return true; if (roleInfo.isForbidden()) return false;
if (!ri.isForbidden())
if (roleInfo.isForbidden()) return false;