Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1568 Rev 1762
Line 18... Line 18...
18
import com.google.gwt.json.client.JSONObject;
18
import com.google.gwt.json.client.JSONObject;
19
import com.google.gwt.json.client.JSONValue;
19
import com.google.gwt.json.client.JSONValue;
Line 20... Line 20...
20
 
20
 
21
public class PublicationAsyncDao {
21
public class PublicationAsyncDao {
-
 
22
	private static final String SERVICE_NOM = "CoelPublication";
Line 22... Line 23...
22
	private static final String SERVICE_NOM = "CoelPublication";
23
	public static String tri = null;
23
	
24
	
Line 24... Line 25...
24
	private String utilisateurId = null;
25
	private String utilisateurId = null;
Line 44... Line 45...
44
		
45
		
45
		String nom = (nomComplet == null) ? "%" : nomComplet+"%";
46
		String nom = (nomComplet == null) ? "%" : nomComplet+"%";
Line 46... Line 47...
46
		String[] param = {publicationId, projetId, nom};
47
		String[] param = {publicationId, projetId, nom};
47
		
-
 
Line 48... Line 48...
48
		HashMap<String, String> restrictions = new HashMap<String, String>();
48
		
49
		restrictions.put("orderby", "cpu_fmt_nom_complet");
49
		HashMap<String, String> restrictions = new HashMap<String, String>();
50
		
50
		
-
 
51
		if (nbElements != -1) {
-
 
52
			restrictions.put("limit", String.valueOf(nbElements));
-
 
53
		}
-
 
54
 
-
 
55
		if(tri != null) {
-
 
56
			restrictions.put("orderby", tri);
Line 51... Line 57...
51
		if (nbElements != -1) {
57
		} else {
52
			restrictions.put("limit", String.valueOf(nbElements));
58
			restrictions.put("orderby", "cpu_fmt_nom_complet");
53
		}
59
		}