boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked);
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); } } } } }
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked); if (ri.isChecked())
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked);
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked);
boolean checked = mapping.getConstraint().getAuthenticate(); ri.setChecked(checked);
if (m.getConstraint().getAuthenticate())