コード例 #1
0
 /**
  * Processes a JSON request. The request should contain the following parameters:
  *
  * <dl>
  *   <dt><code>courseStudentId</code>
  *   <dd>The ID of the course student to archive.
  * </dl>
  *
  * @param binaryRequestContext The context of the binary request.
  */
 public void process(JSONRequestContext requestContext) {
   CourseStudentDAO courseStudentDAO = DAOFactory.getInstance().getCourseStudentDAO();
   Long courseStudentId = requestContext.getLong("courseStudentId");
   CourseStudent courseStudent = courseStudentDAO.findById(courseStudentId);
   courseStudentDAO.archive(courseStudent);
 }