@Service public final class LotServiceImpl extends Object implements LotService
| Constructor and Description |
|---|
LotServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
long |
countLots()
Compte le nombre de lots
|
void |
createLot(nc.ird.cantharella.data.model.Lot lot)
Créée un lot
|
void |
createPartie(nc.ird.cantharella.data.model.Partie partie)
Créé une partie
|
void |
deleteLot(nc.ird.cantharella.data.model.Lot lot)
Supprime un lot
|
void |
deletePartie(nc.ird.cantharella.data.model.Partie partie)
Supprime une partie
|
boolean |
isLotAccessibleByUser(nc.ird.cantharella.data.model.Lot lot,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
Détermine si un utilisateur peut accéder à un lot
|
List<nc.ird.cantharella.data.model.Lot> |
listLots(nc.ird.cantharella.data.model.Utilisateur utilisateur)
Liste les lots pour lesquelles l'utilisateur a les droits (triés par réf)
|
SortedSet<nc.ird.cantharella.data.model.Lot> |
listLotsForUser(nc.ird.cantharella.data.model.Utilisateur utilisateur)
Liste les lots pour lesquelles l'utilisateur a les droits (triés par réf)
|
List<nc.ird.cantharella.data.model.Partie> |
listParties()
Liste les parties possibles pour un lot
|
nc.ird.cantharella.data.model.Lot |
loadLot(Integer idLot)
Charge un lot
|
nc.ird.cantharella.data.model.Lot |
loadLot(String ref)
Charge un lot
|
nc.ird.cantharella.data.model.Partie |
loadPartie(Integer idPartie)
Charger une partie
|
nc.ird.cantharella.data.model.Partie |
loadPartie(String nom)
Charger une partie
|
void |
updateLot(nc.ird.cantharella.data.model.Lot lot)
Met à jour un lot
|
boolean |
updateOrdeleteLotEnabled(nc.ird.cantharella.data.model.Lot lot,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
Détermine si un utilisateur peut modifier ou supprimer un lot
|
void |
updatePartie(nc.ird.cantharella.data.model.Partie partie)
Modifie une partie
|
public long countLots()
countLots in interface LotServicepublic void createLot(nc.ird.cantharella.data.model.Lot lot)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
createLot in interface LotServicelot - Lotnc.ird.cantharella.data.exceptions.DataConstraintException - Si le lot (nom) existe déjàpublic void createPartie(nc.ird.cantharella.data.model.Partie partie)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
createPartie in interface LotServicepartie - Partienc.ird.cantharella.data.exceptions.DataConstraintException - En cas de doublons (champs uniques)public void deleteLot(nc.ird.cantharella.data.model.Lot lot)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
deleteLot in interface LotServicelot - Lotnc.ird.cantharella.data.exceptions.DataConstraintException - Si le lot a des données liéespublic void deletePartie(nc.ird.cantharella.data.model.Partie partie)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
deletePartie in interface LotServicepartie - Partienc.ird.cantharella.data.exceptions.DataConstraintException - En cas de données liéespublic List<nc.ird.cantharella.data.model.Lot> listLots(nc.ird.cantharella.data.model.Utilisateur utilisateur)
listLots in interface LotServiceutilisateur - Utilisateurpublic SortedSet<nc.ird.cantharella.data.model.Lot> listLotsForUser(nc.ird.cantharella.data.model.Utilisateur utilisateur)
listLotsForUser in interface LotServiceutilisateur - Utilisateur non adminpublic boolean updateOrdeleteLotEnabled(nc.ird.cantharella.data.model.Lot lot,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
updateOrdeleteLotEnabled in interface LotServicelot - Lotutilisateur - Utilisateurpublic boolean isLotAccessibleByUser(nc.ird.cantharella.data.model.Lot lot,
nc.ird.cantharella.data.model.Utilisateur utilisateur)
isLotAccessibleByUser in interface LotServicelot - Lotutilisateur - Utilisateurpublic List<nc.ird.cantharella.data.model.Partie> listParties()
listParties in interface LotServicepublic nc.ird.cantharella.data.model.Lot loadLot(Integer idLot) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadLot in interface LotServiceidLot - IDnc.ird.cantharella.data.exceptions.DataNotFoundException - Si le lot n'existe paspublic nc.ird.cantharella.data.model.Lot loadLot(String ref) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadLot in interface LotServiceref - Référencenc.ird.cantharella.data.exceptions.DataNotFoundException - Si le lot n'existe paspublic nc.ird.cantharella.data.model.Partie loadPartie(Integer idPartie) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadPartie in interface LotServiceidPartie - IDnc.ird.cantharella.data.exceptions.DataNotFoundException - Si non trouvéepublic nc.ird.cantharella.data.model.Partie loadPartie(String nom) throws nc.ird.cantharella.data.exceptions.DataNotFoundException
loadPartie in interface LotServicenom - Nomnc.ird.cantharella.data.exceptions.DataNotFoundException - Si non trouvéepublic void updateLot(nc.ird.cantharella.data.model.Lot lot)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
updateLot in interface LotServicelot - Lotnc.ird.cantharella.data.exceptions.DataConstraintException - Si le lot (nom) existe déjàpublic void updatePartie(nc.ird.cantharella.data.model.Partie partie)
throws nc.ird.cantharella.data.exceptions.DataConstraintException
updatePartie in interface LotServicepartie - Partienc.ird.cantharella.data.exceptions.DataConstraintException - En cas de doublons (champs uniques)Copyright © 2012. All Rights Reserved.