Subversion Repositories eFlore/Applications.del

Rev

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

Rev 1118 Rev 1169
Line 27... Line 27...
27
	private String idProtocoleSelectionne = null;
27
	private String idProtocoleSelectionne = null;
Line 28... Line 28...
28
 
28
 
Line 29... Line 29...
29
	private ModeTri triParNbVotes = ModeTri.PAS_DE_TRI;
29
	private ModeTri triParNbVotes = ModeTri.PAS_DE_TRI;
-
 
30
 
-
 
31
	private ModeTri triParDate = ModeTri.PAS_DE_TRI;
Line 30... Line 32...
30
 
32
	
31
	private ModeTri triParDate = ModeTri.PAS_DE_TRI;
33
	private ModeTri triParNbTag = ModeTri.PAS_DE_TRI;
32
 
34
 
Line 158... Line 160...
158
	}
160
	}
Line 159... Line 161...
159
 
161
 
160
	public void setTriParDate(ModeTri triParDate) {
162
	public void setTriParDate(ModeTri triParDate) {
161
		this.triParDate = triParDate;
163
		this.triParDate = triParDate;
-
 
164
	}
-
 
165
	
-
 
166
 
-
 
167
	public void setTriParNbTags(ModeTri triParTag) {
-
 
168
		this.triParNbTag = triParTag;
Line 162... Line 169...
162
	}
169
	}
163
 
170
 
164
	public String versChaineRequete() {
171
	public String versChaineRequete() {
165
		String chaine = "";
172
		String chaine = "";
Line 176... Line 183...
176
		//TODO: réadapter les web services pour que ceux-ci prennent en compte un tri
183
		//TODO: réadapter les web services pour que ceux-ci prennent en compte un tri
177
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
184
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&tri=date_observation" : "";
178
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&tri=votes" : "";
185
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&tri=votes" : "";
179
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDate : "";
186
		chaine += triParDate != ModeTri.PAS_DE_TRI ? "&ordre=" + triParDate : "";
180
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbVotes : "";
187
		chaine += triParNbVotes != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbVotes : "";
-
 
188
		chaine += triParNbTag != ModeTri.PAS_DE_TRI ? "&tri=tags" : "";
-
 
189
		chaine += triParNbTag != ModeTri.PAS_DE_TRI ? "&ordre=" + triParNbTag : "";
181
		chaine += estNonNull(idProtocoleSelectionne) ? "&protocole=" + idProtocoleSelectionne : "";
190
		chaine += estNonNull(idProtocoleSelectionne) ? "&protocole=" + idProtocoleSelectionne : "";
Line 182... Line 191...
182
 
191
 
183
		return chaine;
192
		return chaine;