/*
  * liste des themes *
  */
 @RequestMapping(value = "/themes", method = RequestMethod.GET)
 public Reponse getAllTheme() {
   try {
     return new Reponse(0, interventionMetier.getAllTheme());
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
 }
 /*
  * 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"));
 }
 /*
  * Liste des interventions fini
  */
 @RequestMapping(value = "/intervention_fini/{id}", method = RequestMethod.GET)
 public Reponse getTop6FinishedInterventionOfEvaluateur(@PathVariable("id") Long id) {
   try {
     return new Reponse(0, interventionMetier.getTop6FinishedInterventionOfEvaluateur(id));
   } catch (LambdaException e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
 }
 /*
  * Obtenir une intervention *
  */
 @RequestMapping(value = "/interventions/{idProjet}/{idCollaborateur}", method = RequestMethod.GET)
 public Reponse getIntervention(
     @PathVariable("idProjet") Long idProjet,
     @PathVariable("idCollaborateur") Long idCollaborateur) {
   try {
     return new Reponse(0, interventionMetier.getIntervention(idProjet, idCollaborateur));
   } catch (Exception e) {
     return new Reponse(1, ExceptionHelpers.getErreursForException(e));
   }
 }
 /*
  * 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"));
 }