data.put("employeeCode", employment.getEmployeeCode());
data.put("role", employment.getRole());
data.put("organization.name", (employment.getOrganization() != null) ? employment.getOrganization().getName() : "");
data.put("department.name", (employment.getDepartment() != null) ? employment.getDepartment().getName() : "");
data.put("grade.name", (employment.getGrade() != null) ? employment.getGrade().getName() : "");
jsonObject.accumulate("data", data);
}
}
jsonObject.accumulate("total", getDirectoryManager().getTotalEmployments(name, orgId, deptId, gradeId));
jsonObject.accumulate("start", start);