41,10 → 41,10 |
* est renvoyé à l'appelant |
* // FIXME : si la taille de la liste est supérieure à la limite du JREST (150), ce deuxieme mode ne fonctionne pas efficacement (on ne voit pas les enregistrement suivants) |
*/ |
public void selectionner(final boolean paginationProgressive, final String publicationId, String projetId, String nomComplet, final int start, final int nbElements, final Integer seqId) { |
public void selectionner(final boolean paginationProgressive, final String publicationId, String nomComplet, final int start, final int nbElements, final Integer seqId) { |
|
String nom = (nomComplet == null) ? "%" : nomComplet+"%"; |
String[] param = {publicationId, projetId, nom}; |
String[] param = {publicationId, nom}; |
|
HashMap<String, String> restrictions = new HashMap<String, String>(); |
|
89,7 → 89,7 |
if (responseValue != null) { |
JSONObject responseObject = responseValue.isObject(); |
if (responseObject != null) { |
// Si la réponse est un tableau, alors c'est une liste de projets qui a été retournée |
// Si la réponse est un tableau, alors c'est une liste de publications qui a été retournée |
if (responseObject.get("publications").isArray() != null) { |
JSONArray reponse = responseObject.get("publications").isArray(); |
|
107,7 → 107,7 |
vueARafraichir.rafraichir(publications); |
} |
|
// Si la réponse est un objet, alors c'est un unique projet qui a été retourné |
// Si la réponse est un objet, alors c'est une unique publication qui a été retournée |
} else if (responseObject.get("publications").isObject() != null) { |
|
JSONObject reponse = responseObject.get("publications").isObject(); |