Subversion Repositories eFlore/Applications.coel

Rev

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

Rev 1041 Rev 1056
Line 33... Line 33...
33
	
33
	
34
	public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
34
	public void selectionner(final String projetId, final String collectionId, final String nomCollection, final int start, final int nbElements) {
35
		// Ajout des paramètres et données à selectionner dans l'URL
35
		// Ajout des paramètres et données à selectionner dans l'URL
36
		String[] parametres = {projetId, collectionId, nomCollection};
36
		String[] parametres = {projetId, collectionId, nomCollection};
37
		HashMap<String, String> restrictions = new HashMap<String, String>();
37
		HashMap<String, String> restrictions = new HashMap<String, String>();
38
		restrictions.put("start", String.valueOf(start));
38
		restrictions.put("start", String.valueOf(start*nbElements));
39
		if (nbElements != -1)	{
39
		if (nbElements != -1)	{
40
			restrictions.put("limit", String.valueOf(nbElements));
40
			restrictions.put("limit", String.valueOf(nbElements));
Line 41... Line 41...
41
		}
41
		}