use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method groupToSkos.
/**
* Fonction qui permet de récupérer un concept skos par identifiant
*
* @param idGroup
* @param idThesaurus
* @return skos
*/
private StringBuffer groupToSkos(String idGroup, String idTheso) {
if (ds == null) {
return null;
}
nodePreference = new PreferencesHelper().getThesaurusPreference(ds, idTheso);
if (nodePreference == null) {
return null;
}
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
StringBuffer skos = exportFromBDD.exportThisGroup(ds, idTheso, idGroup);
return skos;
}
use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method brancheOfConceptsToSkos.
/**
* Fonction qui permet de récupérer une branche complète en partant d'un
* concept vers le bas
*
* @param idGroup
* @param idThesaurus
* @return skos
*/
private StringBuffer brancheOfConceptsToSkos(String idConcept, String idTheso) {
if (ds == null) {
return null;
}
nodePreference = new PreferencesHelper().getThesaurusPreference(ds, idTheso);
if (nodePreference == null) {
return null;
}
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
exportFromBDD.setNodePreference(nodePreference);
StringBuffer skos = exportFromBDD.exportBranchOfConcept(ds, idTheso, idConcept);
return skos;
}
use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method groupsOfThesaurusToSkos.
/**
* Fonction qui permet de récupérer les groupes d'un thésauurs
*
* @param idThesaurus
* @return skos
*/
private StringBuffer groupsOfThesaurusToSkos(String idTheso) {
if (ds == null) {
return null;
}
nodePreference = new PreferencesHelper().getThesaurusPreference(ds, idTheso);
if (nodePreference == null) {
return null;
}
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
StringBuffer skos = exportFromBDD.exportGroupsOfThesaurus(ds, idTheso);
return skos;
}
use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method ConceptByValueToSkos.
/**
* cette fonction permet de retourner tous les concetps qui contiennenet la
* valeur recherchée en filtrant par domaine ou groupe
*
* @param value
* @param lang
* @param idGroup
* @param idThesaurus
* @return
*/
private StringBuffer ConceptByValueToSkos(String value, String lang, String idGroup, String idTheso) {
if (ds == null) {
return null;
}
nodePreference = new PreferencesHelper().getThesaurusPreference(ds, idTheso);
if (nodePreference == null) {
return null;
}
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
exportFromBDD.setNodePreference(nodePreference);
StringBuffer skos = exportFromBDD.exportMultiConcept(ds, value, lang, idGroup, idTheso);
return skos;
}
use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method conceptToSkosFromArk.
/**
* Fonction qui permet de récupérer un concept skos par identifiant ark
*
* @param idConcept
* @param idThesaurus
* @return skos
*/
private StringBuffer conceptToSkosFromArk(String arkId, String idTheso) {
if (ds == null) {
return null;
}
nodePreference = new PreferencesHelper().getThesaurusPreference(ds, idTheso);
if (nodePreference == null) {
return null;
}
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setNodePreference(nodePreference);
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
StringBuffer skos = exportFromBDD.exportConcept(ds, arkId);
if (skos == null) {
return new StringBuffer("");
}
return skos;
}
Aggregations