@Service public final class StationServiceImpl extends Object implements StationService
| Constructor and Description |
|---|
StationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
countStations()
Compte le nombre de stations
|
void |
createStation(Station station)
Créée une station
|
void |
deleteStation(Station station)
Supprime une station
|
List<String> |
listStationLocalites()
Liste les localités des stations
|
List<Station> |
listStations(Utilisateur utilisateur)
Liste les stations selon les droits d'un utilisateur (triés par nom)
|
SortedSet<Station> |
listStationsForUser(Utilisateur utilisateur)
Liste l'ensemble des stations selon les droits d'un utilisateur (triés par nom)
|
Station |
loadStation(Integer idStation)
Charge une station
|
Station |
loadStation(String nom)
Charge une station
|
boolean |
updateOrdeleteStationEnabled(Station station,
Utilisateur utilisateur)
Détermine si un utilisateur peut modifier ou supprimer une station
|
void |
updateStation(Station station)
Met à jour une station
|
public long countStations()
countStations in interface StationServicepublic void createStation(Station station) throws DataConstraintException
createStation in interface StationServicestation - StationDataConstraintException - Si la station existe déjàpublic void deleteStation(Station station) throws DataConstraintException
deleteStation in interface StationServicestation - StationDataConstraintException - Si des données liées empêchent la suppressionpublic List<String> listStationLocalites()
listStationLocalites in interface StationServicepublic List<Station> listStations(Utilisateur utilisateur)
listStations in interface StationServiceutilisateur - L'utilisateurpublic SortedSet<Station> listStationsForUser(Utilisateur utilisateur)
listStationsForUser in interface StationServiceutilisateur - L'utilisateurpublic Station loadStation(Integer idStation) throws DataNotFoundException
loadStation in interface StationServiceidStation - IDDataNotFoundException - Si la station n'existe paspublic Station loadStation(String nom) throws DataNotFoundException
loadStation in interface StationServicenom - NomDataNotFoundException - Si la station n'existe paspublic boolean updateOrdeleteStationEnabled(Station station, Utilisateur utilisateur)
updateOrdeleteStationEnabled in interface StationServicestation - Stationutilisateur - Utilisateurpublic void updateStation(Station station) throws DataConstraintException
updateStation in interface StationServicestation - StationDataConstraintException - Si la station existe déjàCopyright © 2009–2014 IRD. All rights reserved.