Search in sources :

Example 1 with Mention

use of fr.univlorraine.ecandidat.entities.siscol.Mention in project esup-ecandidat by EsupPortail.

the class SiScolApogeeWSServiceImpl method getListSiScolMention.

/**
 * @see fr.univlorraine.ecandidat.services.siscol.SiScolGenericService#getListSiScolMention()
 */
@Override
public List<SiScolMention> getListSiScolMention() throws SiScolException {
    try {
        final List<SiScolMention> liste = new ArrayList<>();
        executeQueryListEntity(Mention.class).forEach(mention -> {
            liste.add(new SiScolMention(mention.getCodMen(), mention.getLibMen(), mention.getLicMen(), MethodUtils.getBooleanFromTemoin(mention.getTemEnSveMen())));
        });
        return liste;
    } catch (final Exception e) {
        throw new SiScolException("SiScol database error on getListSiScolMention", e.getCause());
    }
}
Also used : Mention(fr.univlorraine.ecandidat.entities.siscol.Mention) SiScolMention(fr.univlorraine.ecandidat.entities.ecandidat.SiScolMention) ArrayList(java.util.ArrayList) SiScolMention(fr.univlorraine.ecandidat.entities.ecandidat.SiScolMention) SiScolRestException(fr.univlorraine.ecandidat.services.siscol.SiScolRestUtils.SiScolRestException)

Aggregations

SiScolMention (fr.univlorraine.ecandidat.entities.ecandidat.SiScolMention)1 Mention (fr.univlorraine.ecandidat.entities.siscol.Mention)1 SiScolRestException (fr.univlorraine.ecandidat.services.siscol.SiScolRestUtils.SiScolRestException)1 ArrayList (java.util.ArrayList)1