Skip to content

Commit

Permalink
Merge branch 'commune_naiss' into saas
Browse files Browse the repository at this point in the history
  • Loading branch information
khergalant committed Feb 27, 2024
2 parents c021654 + 2297ecc commit 13620de
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -713,13 +713,18 @@ public List<FormationPegase> getListFormationPegase(final String search, final I
final HttpEntity<FormationPegase> httpEntity = new HttpEntity<>(headers);

final MultiValueMap<String, String> params = new LinkedMultiValueMap<>();
/* Ajout param taille */
params.add(ConstanteUtils.PEGASE_TAILLE_PARAM, String.valueOf(nbMaxRechForm));
/* Si pas de recherche, on sort */
if (StringUtils.isNotBlank(search)) {
params.add(ConstanteUtils.PEGASE_URI_ODF_OBJET_MAQUETTE_RECH, search);
} else {
return new ArrayList<>();
}
/* Ajout param taille */
params.add(ConstanteUtils.PEGASE_TAILLE_PARAM, String.valueOf(nbMaxRechForm));
/* Ajout paramètres necessaires */
params.add(ConstanteUtils.PEGASE_URI_ODF_OBJET_MAQUETTE_PIA, ConstanteUtils.PEGASE_TRUE_PARAM_VALUE);
params.add(ConstanteUtils.PEGASE_URI_ODF_OBJET_MAQUETTE_PIA_ACTIF, ConstanteUtils.PEGASE_TRUE_PARAM_VALUE);
params.add(ConstanteUtils.PEGASE_URI_ODF_OBJET_MAQUETTE_VALIDE, ConstanteUtils.PEGASE_TRUE_PARAM_VALUE);

final URI uri = SiScolRestUtils.getURIForService(configController.getConfigPegaseUrl().getOdf(),
SiScolRestUtils.getSubServiceWhithoutSlash(ConstanteUtils.PEGASE_URI_ODF_ETABLISSEMENTS, configController.getConfigPegaseAuthEtab().getEtab(), ConstanteUtils.PEGASE_URI_ODF_OBJET_MAQUETTE),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,7 @@ public class ConstanteUtils {
public static final String PEGASE_LIMIT_PARAM = "nbOccurences";
public static final Long PEGASE_LIMIT_DEFAULT = 1000L;
public static final String PEGASE_TAILLE_PARAM = "taille";
public static final String PEGASE_TRUE_PARAM_VALUE = "true";

public static final String PEGASE_URL_AUTH = "auth.url";
public static final String PEGASE_URL_REF = "ref.url";
Expand Down Expand Up @@ -633,6 +634,9 @@ public class ConstanteUtils {
public static final String PEGASE_URI_ODF_ESPACE_TYPE_PERIODE = "PERIODE";
public static final String PEGASE_URI_ODF_OBJET_MAQUETTE = "objets-maquette";
public static final String PEGASE_URI_ODF_OBJET_MAQUETTE_RECH = "r";
public static final String PEGASE_URI_ODF_OBJET_MAQUETTE_PIA = "piaSeulement";
public static final String PEGASE_URI_ODF_OBJET_MAQUETTE_PIA_ACTIF = "piaActif";
public static final String PEGASE_URI_ODF_OBJET_MAQUETTE_VALIDE = "valideSeulement";

/* Parametre Bac valide Apogée */
public static final String APO_CHECK_BAC_VALIDE = "OK";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ public void handleAction(final Object sender, final Object target) {

/* Table de Resultat de recherche */
grid.initColumn(FIELDS_ORDER, "form.pegase.", FormationPegase.FIELD_NAME_CODE);
grid.setColumnWidth(FormationPegase.FIELD_NAME_CODE, 120);
grid.setColumnWidth(FormationPegase.FIELD_NAME_ESPACEL, 240);
grid.setColumnWidth(FormationPegase.FIELD_NAME_CODE, 150);
grid.setColumnWidth(FormationPegase.FIELD_NAME_ESPACEL, 250);
grid.setExpendColumn(FormationPegase.FIELD_NAME_LIB);

layout.addComponent(grid);
Expand Down

0 comments on commit 13620de

Please sign in to comment.