if (canLogIn != null) ePerson.setCanLogIn("true".equals(canLogIn));
if (requireCertificate != null) ePerson.setRequireCertificate("true".equals(requireCertificate));
if (selfRegistered != null) ePerson.setSelfRegistered("true".equals(selfRegistered));
ePerson.update();
} else {
throw new EntityException("Internal server error", "Duplicated ePerson", 500);
}
} else {
throw new EntityException("Internal server error", "Could not update ePerson", 500);
}
} catch (SQLException ex) {
throw new EntityException("Internal server error", "SQL error", 500);
} catch (AuthorizeException ae) {
throw new EntityException("Forbidden", "Forbidden", 403);
} catch (NumberFormatException ex) {
throw new EntityException("Bad request", "Could not parse input", 400);
}
}