Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1513 Rev 1762
Line 17... Line 17...
17
import com.google.gwt.json.client.JSONObject;
17
import com.google.gwt.json.client.JSONObject;
18
import com.google.gwt.json.client.JSONValue;
18
import com.google.gwt.json.client.JSONValue;
Line 19... Line 19...
19
 
19
 
20
public class CommentaireAsyncDao {
20
public class CommentaireAsyncDao {
-
 
21
	private static final String SERVICE_NOM = "CoelCommentaire";
Line 21... Line 22...
21
	private static final String SERVICE_NOM = "CoelCommentaire";
22
	public static String tri = null;
22
	
23
	
Line 23... Line 24...
23
	private String utilisateurId = null;
24
	private String utilisateurId = null;
Line 48... Line 49...
48
		HashMap<String, String> restrictions = new HashMap<String, String>();
49
		HashMap<String, String> restrictions = new HashMap<String, String>();
Line 49... Line 50...
49
		
50
		
50
		if (nbElements != -1)	{
51
		if (nbElements != -1)	{
51
			restrictions.put("limit", String.valueOf(nbElements));
52
			restrictions.put("limit", String.valueOf(nbElements));
-
 
53
		}
-
 
54
 
-
 
55
		if(tri != null) {
-
 
56
			restrictions.put("orderby", tri);
52
		}
57
		} else {
-
 
58
			restrictions.put("orderby", "ccm_titre ASC");
Line 53... Line 59...
53
		restrictions.put("orderby", "ccm_titre ASC");
59
		}
54
 
60
 
Line 55... Line 61...
55
		/** GESTION DE LA REQUETE dans le cas d'une liste paginée progressive **/
61
		/** GESTION DE LA REQUETE dans le cas d'une liste paginée progressive **/