Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1513 Rev 1610
Line 5... Line 5...
5
import java.util.Set;
5
import java.util.Set;
Line 6... Line 6...
6
 
6
 
7
import org.tela_botanica.client.modeles.aDonnee;
7
import org.tela_botanica.client.modeles.aDonnee;
8
import org.tela_botanica.client.modeles.personne.Personne;
8
import org.tela_botanica.client.modeles.personne.Personne;
9
import org.tela_botanica.client.modeles.publication.Publication;
-
 
Line 10... Line 9...
10
import org.tela_botanica.client.util.Debug;
9
import org.tela_botanica.client.modeles.publication.Publication;
11
 
10
 
Line 12... Line 11...
12
import com.extjs.gxt.ui.client.data.ModelData;
11
import com.extjs.gxt.ui.client.data.ModelData;
Line 13... Line 12...
13
import com.google.gwt.json.client.JSONObject;
12
import com.google.gwt.json.client.JSONObject;
Line 14... Line 13...
14
 
13
 
15
public class CollectionAPublication extends aDonnee {
-
 
16
	
14
public class CollectionAPublication extends aDonnee {
17
	private static final long serialVersionUID = 1L;
15
	
Line 18... Line 16...
18
	
16
	private static final long serialVersionUID = 1L;
19
	public static final String PREFIXE = "ccapu";
17
	
Line 143... Line 141...
143
		else set(PREFIXE+"_id_collection", idCollection);
141
		else set(PREFIXE+"_id_collection", idCollection);
144
	}
142
	}
Line 145... Line 143...
145
	
143
	
146
	// ID PUBLICATION
144
	// ID PUBLICATION
-
 
145
	public String getIdPublication() {
-
 
146
		String idPublication;
147
	public String getIdPublication() {
147
		if (removePrefix) {
-
 
148
			idPublication = renvoyerValeurCorrecte("id_publication");
148
		if (removePrefix) return renvoyerValeurCorrecte("id_publication");
149
		} else {
-
 
150
			idPublication = renvoyerValeurCorrecte(PREFIXE+"_id_publication");
-
 
151
		}
149
		else return renvoyerValeurCorrecte(PREFIXE+"_id_publication");
152
		return idPublication;
150
	}
153
	}
-
 
154
	public void setIdPublication(String ip) {
151
	public void setIdPublication(String ip) {
155
		if (removePrefix) {
-
 
156
			set("id_publication", ip);
152
		if (removePrefix) set("id_publication", ip);
157
		} else {
-
 
158
			set(PREFIXE+"_id_publication", ip);
153
		else set(PREFIXE+"_id_publication", ip);
159
		}
Line 154... Line 160...
154
	}
160
	}
155
			
161