/*
  * Valider feedback *
  */
 @RequestMapping(value = "/feedbacks/{id}", method = RequestMethod.PUT)
 public Reponse validerFeedBack(@PathVariable("id") Long idIntervention) {
   try {
     feedBackMetier.validerFeedBack(idIntervention);
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
   return new Reponse(0, PropretiesHelper.getText("feedback.valide.success"));
 }
 /*
  * assignation des projets au collaborateur *
  */
 @RequestMapping(
     value = "/interventions",
     method = RequestMethod.POST,
     consumes = "application/json; charset=UTF-8")
 public Reponse assignProjet(@RequestBody List<Intervention> interventions) {
   try {
     interventionMetier.assignProjet(interventions);
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
   return new Reponse(0, PropretiesHelper.getText("intervention.add.success"));
 }
 /*
  * Cree Feedback *
  */
 @RequestMapping(
     value = "/feedbacks",
     method = RequestMethod.POST,
     consumes = "application/json; charset=UTF-8")
 public Reponse assignProjet(@RequestBody List<Note> notes) {
   try {
     feedBackMetier.addFeedBack(notes);
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
   return new Reponse(0, PropretiesHelper.getText("feedback.add.success"));
 }
 /*
  * definir intervantion (par un Evaluateur) *
  */
 @RequestMapping(
     value = "/interventions/{idProjet}/{idCollaborateur}",
     method = RequestMethod.PUT,
     consumes = "application/json; charset=UTF-8")
 public Reponse defineIntervention(
     @PathVariable("idProjet") Long idProjet,
     @PathVariable("idCollaborateur") Long idCollaborateur,
     @RequestBody Intervention intervention) {
   try {
     intervention.setIdIntervention(
         interventionMetier.getIntervention(idProjet, idCollaborateur).getIdIntervention());
     interventionMetier.defineIntervention(intervention);
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
   return new Reponse(0, PropretiesHelper.getText("intervention.update.success"));
 }