public void disapproveRequest(UserRequest userRequest, Person evaluator) { RequestEvaluation requestEvaluation = new RequestEvaluation(); requestEvaluation.setPerson(evaluator); requestEvaluation.setRequest(userRequest); requestEvaluation.setEvaluationDate(new Date()); userRequest.setStatus(Constants.DISAPPROVED); this.insertRequestEvaluation(requestEvaluation); this.updateUserRequest(userRequest); }
public void approveRequest(UserRequest request, Person evaluator) { RequestEvaluation requestEvaluation = new RequestEvaluation(); requestEvaluation.setPerson(evaluator); requestEvaluation.setRequest(request); requestEvaluation.setEvaluationDate(new Date()); request.setStatus(Constants.APPROVED); this.insertRequestEvaluation(requestEvaluation); this.updateUserRequest(request); if (!request.isTeachingRequest()) { this.approveAssistantRequest(request, evaluator); } }