@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(nc.ird.cantharella.data.model.Station station)
Créée une station
|
void |
deleteStation(nc.ird.cantharella.data.model.Station station)
Supprime une station
|
List<String> |
listStationLocalites()
Liste les localités des stations
|
List<nc.ird.cantharella.data.model.Station> |
listStations(nc.ird.cantharella.data.model.Utilisateur utilisateur)
Liste les stations selon les droits d'un utilisateur (triés par nom)
|
SortedSet<nc.ird.cantharella.data.model.Station> |
listStationsForUser(nc.ird.cantharella.data.model.Utilisateur utilisateur)
Liste l'ensemble des stations selon les droits d'un utilisateur (triés par nom)
|
nc.ird.cantharella.data.model.Station |
loadStation(Integer idStation)
Charge une station
|
nc.ird.cantharella.data.model.Station |
loadStation(String nom)
Charge une station
|
boolean |
updateOrdeleteStationEnabled(nc.ird.cantharella.data.model.Station station,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
Détermine si un utilisateur peut modifier ou supprimer une station
|
void |
updateStation(nc.ird.cantharella.data.model.Station station)
Met à jour une station
|
public long countStations()
countStations in interface StationServicepublic void createStation(nc.ird.cantharella.data.model.Station station)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
createStation in interface StationServicestation - Stationnc.ird.cantharella.data.exceptions.DataConstraintException - Si la station existe déjàpublic void deleteStation(nc.ird.cantharella.data.model.Station station)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
deleteStation in interface StationServicestation - Stationnc.ird.cantharella.data.exceptions.DataConstraintException - Si des données liées empêchent la suppressionpublic List<String> listStationLocalites()
listStationLocalites in interface StationServicepublic List<nc.ird.cantharella.data.model.Station> listStations(nc.ird.cantharella.data.model.Utilisateur utilisateur)
listStations in interface StationServiceutilisateur - L'utilisateurpublic SortedSet<nc.ird.cantharella.data.model.Station> listStationsForUser(nc.ird.cantharella.data.model.Utilisateur utilisateur)
listStationsForUser in interface StationServiceutilisateur - L'utilisateurpublic nc.ird.cantharella.data.model.Station loadStation(Integer idStation) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadStation in interface StationServiceidStation - IDnc.ird.cantharella.data.exceptions.DataNotFoundException - Si la station n'existe paspublic nc.ird.cantharella.data.model.Station loadStation(String nom) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadStation in interface StationServicenom - Nomnc.ird.cantharella.data.exceptions.DataNotFoundException - Si la station n'existe paspublic boolean updateOrdeleteStationEnabled(nc.ird.cantharella.data.model.Station station,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
updateOrdeleteStationEnabled in interface StationServicestation - Stationutilisateur - Utilisateurpublic void updateStation(nc.ird.cantharella.data.model.Station station)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
updateStation in interface StationServicestation - Stationnc.ird.cantharella.data.exceptions.DataConstraintException - Si la station existe déjàCopyright © 2012. All Rights Reserved.