public void setUserEnrolledCourseField(String field, String value) {
    if (field.equals("id")) setId(Long.parseLong(value));
    if (field.equals("fullname") && !value.equals("")) setFullName(value);
    if (field.equals("shortname") && !value.equals("")) setShortName(value);
  }