Skip to content

Commit

Permalink
OFSREF-37 Remettre l'opération getCommunesHistoriquesByCanton
Browse files Browse the repository at this point in the history
  • Loading branch information
ivandalbosco committed Apr 6, 2020
1 parent 2fd40de commit cf4f5e6
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,15 @@ public List<CommuneWS> getCommunesByCanton(@WebParam(name = "canton") String cod
}
}

@Override
@WebMethod(operationName = "getCommunesHistoriquesByCanton", action = "getCommunesHistoriquesByCanton")
@WebResult(name = "commune")
@Cachable(name = "communes", size = Cachable.LARGE)
public List<CommuneWS> getCommunesHistoriquesByCanton(@WebParam(name = "canton") String codeCanton)
throws ReferentielOfsException {
return getCommunesByCanton(codeCanton);
}

@Override
@WebMethod(operationName = "getCommune", action = "getCommune")
@WebResult(name = "commune")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,20 @@ DistrictWS getDistrict(@WebParam(name = "district") int districtId)
@WebMethod(operationName = "getCommunesByCanton", action = "getCommunesByCanton")
@WebResult(name = "commune")
List<CommuneWS> getCommunesByCanton(
@WebParam(name = "canton") final String codeCanton)
@WebParam(name = "canton") String codeCanton)
throws ReferentielOfsException;

/**
* Recherche des communes d'un canton.
*
* @param codeCanton identifiant du canton
* @return liste des communes
* @throws ReferentielOfsException exception de traitement
*/
@WebMethod(operationName = "getCommunesHistoriquesByCanton", action = "getCommunesHistoriquesByCanton")
@WebResult(name = "commune")
List<CommuneWS> getCommunesHistoriquesByCanton(
@WebParam(name = "canton") String codeCanton)
throws ReferentielOfsException;

/**
Expand Down

0 comments on commit cf4f5e6

Please sign in to comment.