Search in sources :

Example 6 with HandleHelper

use of mom.trd.opentheso.ws.handle.HandleHelper in project opentheso by miledrousset.

the class ConceptHelper method deleteAllIdHandle.

/**
 * Permet de supprimer tous les identifiants Handle de la table Concept et
 * de la plateforme (handle.net) via l'API REST pour un thésaurus donné
 * suite à une suppression d'un thésaurus
 *
 * @param ds
 * @param idThesaurus
 * @return
 */
public boolean deleteAllIdHandle(HikariDataSource ds, String idThesaurus) {
    if (nodePreference == null) {
        return false;
    }
    if (!nodePreference.isUseHandle()) {
        return false;
    }
    ArrayList<String> tabIdHandle = getAllIdHandleOfThesaurus(ds, idThesaurus);
    HandleHelper handleHelper = new HandleHelper(nodePreference);
    if (!handleHelper.deleteAllIdHandle(tabIdHandle)) {
        message = handleHelper.getMessage();
        return false;
    }
    message = handleHelper.getMessage();
    return true;
}
Also used : HandleHelper(mom.trd.opentheso.ws.handle.HandleHelper)

Aggregations

HandleHelper (mom.trd.opentheso.ws.handle.HandleHelper)6 IOException (java.io.IOException)2 Connection (java.sql.Connection)2 FacesMessage (javax.faces.application.FacesMessage)2 GroupHelper (mom.trd.opentheso.bdd.helper.GroupHelper)2