1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35 package fr.paris.lutece.plugins.referentielbo.v2.rs;
36
37 import java.util.List;
38 import java.util.Optional;
39
40 import fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchRequest;
41 import fr.paris.lutece.plugins.identitystore.v3.web.rs.dto.search.IdentitySearchResponse;
42 import fr.paris.lutece.plugins.referentielbo.v2.model.IndividuDto;
43 import fr.paris.lutece.plugins.referentielbo.v2.model.exception.ReferentielException;
44 import fr.paris.lutece.plugins.referentielbo.v2.model.profil.ProfilIndividuDto;
45
46 public interface IReferentielIndividuService
47 {
48 Optional<IndividuDto> recupererIndividuAvecGuid( String guid, String codeAppli, String token ) throws ReferentielException;
49 Optional<IndividuDto> recupererIndividuAvecCuid( String cuid, String codeAppli, String token ) throws ReferentielException;
50 List<ProfilIndividuDto> recupererIndividusParEtablissement( Long idEtablissement, String codeAppli, String token ) throws ReferentielException;
51 IdentitySearchResponse rechercheIndividu( IdentitySearchRequest searchRequest, String codeAppli, String token ) throws ReferentielException;
52 Optional<IndividuDto> creerIndividu( ProfilIndividuDto profilIndividuDto, String nomAuteur, String typeAuteur, String codeAppli, String token ) throws ReferentielException;
53 Optional<IndividuDto> modifierIndividu( ProfilIndividuDto profilIndividuDto, String nomAuteur, String typeAuteur, String codeAppli, String token ) throws ReferentielException;
54
55 }