Esempio n. 1
0
 @Override
 public void initFiliereList(Boolean isSuperUser) {
   if (isSuperUser) {
     requestFactory
         .cachedListValueService()
         .findAllFiliere()
         .fire(
             new Receiver<List<FiliereProxy>>() {
               @Override
               public void onSuccess(List<FiliereProxy> result) {
                 filiereList = result;
               }
             });
   } else {
     requestFactory
         .cachedListValueService()
         .findFilieres()
         .fire(
             new Receiver<List<FiliereProxy>>() {
               @Override
               public void onSuccess(List<FiliereProxy> result) {
                 filiereList = result;
               }
             });
   }
 }
Esempio n. 2
0
 @Override
 public void initNiveauEtudeMap(Boolean isSuperUser) {
   if (isSuperUser) {
     requestFactory
         .cachedListValueService()
         .findAllNiveauEtude()
         .fire(
             new Receiver<List<NiveauEtudeProxy>>() {
               @Override
               public void onSuccess(List<NiveauEtudeProxy> result) {
                 niveauEtudeList.addAll(result);
                 niveauEtudeMap = new HashMap<Long, List<NiveauEtudeProxy>>();
                 for (NiveauEtudeProxy niveauEtude : result) {
                   if (!niveauEtudeMap.containsKey(niveauEtude.getFiliere().getId())) {
                     niveauEtudeMap.put(
                         niveauEtude.getFiliere().getId(), new ArrayList<NiveauEtudeProxy>());
                   }
                   niveauEtudeMap.get(niveauEtude.getFiliere().getId()).add(niveauEtude);
                 }
               }
             });
   } else {
     requestFactory
         .cachedListValueService()
         .findNiveauEtudes()
         .fire(
             new Receiver<List<NiveauEtudeProxy>>() {
               @Override
               public void onSuccess(List<NiveauEtudeProxy> result) {
                 niveauEtudeList.addAll(result);
                 niveauEtudeMap = new HashMap<Long, List<NiveauEtudeProxy>>();
                 for (NiveauEtudeProxy niveauEtude : result) {
                   if (!niveauEtudeMap.containsKey(niveauEtude.getFiliere().getId())) {
                     niveauEtudeMap.put(
                         niveauEtude.getFiliere().getId(), new ArrayList<NiveauEtudeProxy>());
                   }
                   niveauEtudeMap.get(niveauEtude.getFiliere().getId()).add(niveauEtude);
                 }
               }
             });
   }
 }
Esempio n. 3
0
 @Override
 public void initEtablissementScolaireList() {
   requestFactory
       .cachedListValueService()
       .findAllEtablissementScolaire()
       .fire(
           new Receiver<List<EtablissementScolaireProxy>>() {
             @Override
             public void onSuccess(List<EtablissementScolaireProxy> result) {
               etablissementScolaireList = result;
             }
           });
 }
Esempio n. 4
0
 @Override
 public void initValueListMap() {
   requestFactory
       .cachedListValueService()
       .findAllValueList()
       .fire(
           new Receiver<List<ValueListProxy>>() {
             @Override
             public void onSuccess(List<ValueListProxy> result) {
               valueListMap = new HashMap<ValueTypeCode, List<ValueListProxy>>();
               for (ValueListProxy valueList : result) {
                 ValueTypeCode valueListCode = valueList.getValueType().getCode();
                 if (!valueListMap.containsKey(valueListCode)) {
                   valueListMap.put(valueListCode, new ArrayList<ValueListProxy>());
                 }
                 valueListMap.get(valueListCode).add(valueList);
               }
             }
           });
 }