Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 997 Rev 1173
Line 1... Line 1...
1
package org.tela_botanica.client.modeles.collection;
1
package org.tela_botanica.client.modeles.collection;
Line -... Line 2...
-
 
2
 
-
 
3
import java.util.LinkedList;
-
 
4
import java.util.List;
2
 
5
 
Line 3... Line 6...
3
import org.tela_botanica.client.modeles.aDonnee;
6
import org.tela_botanica.client.modeles.aDonnee;
Line 4... Line 7...
4
 
7
 
Line 11... Line 14...
11
	public static final String PREFIXE = "cc";
14
	public static final String PREFIXE = "cc";
12
	private CollectionBotanique botanique = null;
15
	private CollectionBotanique botanique = null;
13
	private CollectionAPersonneListe personnesLiees = null;
16
	private CollectionAPersonneListe personnesLiees = null;
14
	private CollectionAPublicationListe publicationsLiees = null;
17
	private CollectionAPublicationListe publicationsLiees = null;
15
	private CollectionACommentaireListe commentairesLiees = null;
18
	private CollectionACommentaireListe commentairesLiees = null;
-
 
19
	public static String[] champsObligatoires = {"cc_id_collection"};
16
	
20
		
17
	public Collection() {
21
	public Collection() {
18
	}
22
	}
Line 19... Line 23...
19
	
23
	
20
	public Collection(JSONObject collection) {
24
	public Collection(JSONObject collection) {
Line 24... Line 28...
24
	@Override
28
	@Override
25
	protected String getPrefixe() {
29
	protected String getPrefixe() {
26
		return PREFIXE;
30
		return PREFIXE;
27
	}
31
	}
Line -... Line 32...
-
 
32
	
-
 
33
	protected String[] getChampsObligatoires()	{
-
 
34
		return champsObligatoires;
-
 
35
	}
28
	
36
	
29
	// BOTANIQUE
37
	// BOTANIQUE
30
	public CollectionBotanique getBotanique() {
38
	public CollectionBotanique getBotanique() {
31
		if (botanique == null) {
39
		if (botanique == null) {
32
			botanique = new CollectionBotanique();
40
			botanique = new CollectionBotanique();
Line 94... Line 102...
94
		this.set("ce_mere", collectionMereId);
102
		this.set("ce_mere", collectionMereId);
95
	}
103
	}
Line 96... Line 104...
96
	
104
	
97
	// COLLECTION MERE NOM
105
	// COLLECTION MERE NOM
98
	public String getCollectionMereNom() {
106
	public String getCollectionMereNom() {
99
		return renvoyerValeurCorrecte("collection_mere_nom");
107
		return renvoyerValeurCorrecte("_collection_mere_nom_");
100
	}
108
	}
101
	public void setCollectionMereNom(String collectionMereNom) {
109
	public void setCollectionMereNom(String collectionMereNom) {
102
		this.set("collection_mere_nom", collectionMereNom);
110
		this.set("_collection_mere_nom_", collectionMereNom);
Line 103... Line 111...
103
	}
111
	}
104
	
112
	
105
	// CE STRUCTURE
113
	// CE STRUCTURE
Line 407... Line 415...
407
	}
415
	}
Line 408... Line 416...
408
	
416
	
409
	// +--------------------------------------------------------------------------------------------------------------+
417
	// +--------------------------------------------------------------------------------------------------------------+
410
	// STRUCTURE NOM
418
	// STRUCTURE NOM
411
	public String getStructureNom() {
419
	public String getStructureNom() {
412
		return renvoyerValeurCorrecte("structure_nom");
420
		return renvoyerValeurCorrecte("_structure_nom_");
Line 413... Line 421...
413
	}
421
	}
414
	
422
	
415
	// STRUCTURE VILLE
423
	// STRUCTURE VILLE
416
	public String getStructureVille() {
424
	public String getStructureVille() {
417
		return renvoyerValeurCorrecte("structure_ville");
425
		return renvoyerValeurCorrecte("_structure_ville_");
418
	}
426
	}