Subversion Repositories eFlore/Applications.coel

Rev

Rev 758 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 758 Rev 775
Line 9... Line 9...
9
 
9
 
Line 10... Line 10...
10
	private static final long serialVersionUID = 7769105365939978129L;
10
	private static final long serialVersionUID = 7769105365939978129L;
11
	
11
	
-
 
12
	public static final String PREFIXE = "cpuap";
12
	public static final String PREFIXE = "cpuap";
13
	public static final String ROLE_AUTEUR = "2360";
13
	public static final String ROLE_AUTEUR = "2360";
14
	private Personne personneLiee = null;
-
 
15
	
-
 
16
	public PublicationAPersonne(JSONObject pubAPersListe) {
14
 
17
		personneLiee = new Personne(pubAPersListe);
15
	public PublicationAPersonne(JSONObject pubAPersListe) {
18
		
Line 16... Line 19...
16
		// l'objet JSON est une table de hachage
19
		// l'objet JSON est une table de hachage
17
		Set<String> im = pubAPersListe.keySet();
20
		Set<String> im = pubAPersListe.keySet();
Line 36... Line 39...
36
	@Override
39
	@Override
37
	protected String getPrefixe() {
40
	protected String getPrefixe() {
38
		return PREFIXE;
41
		return PREFIXE;
39
	}
42
	}
Line 40... Line 43...
40
 
43
 
41
	public String getIdAuteur() {
44
	public Personne getPersonne() {
42
		return renvoyerValeurCorrecte("id_personne");
-
 
43
	}
-
 
44
	
-
 
45
	public String getNomCompletAuteur() {
-
 
46
		return renvoyerValeurCorrecte("cp_fmt_nom_complet");
45
		return personneLiee;
47
	}
-
 
48
	
-
 
49
	public String getNomAuteur() {
-
 
50
		return renvoyerValeurCorrecte("cp_nom");
-
 
51
	}
-
 
52
	
46
	}
53
	public String getPrenomAuteur() {
47
	public void setPersonne(Personne personne) {
54
		return renvoyerValeurCorrecte("cp_prenom");
48
		personneLiee = personne;
Line 55... Line -...
55
	}
-
 
56
	
-
 
57
	public String getPublication() {
-
 
58
		return renvoyerValeurCorrecte("id_publication");
49
	}
59
	}
50