use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Rest method conceptToSkos.
/**
* Fonction qui permet de récupérer un concept skos par identifiant
*
* @param idConcept
* @param idThesaurus
* @return skos
*/
private StringBuffer conceptToSkos(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.setNodePreference(nodePreference);
exportFromBDD.setServerArk(nodePreference.getServeurArk());
exportFromBDD.setServerAdress(nodePreference.getCheminSite());
StringBuffer skos = exportFromBDD.exportConcept(ds, idTheso, idConcept);
if (skos == null) {
return new StringBuffer("");
}
return skos;
}
use of mom.trd.opentheso.core.exports.old.ExportFromBDD in project opentheso by miledrousset.
the class Soap method multiConceptToSkos.
/**
* Web service operation
* @param value
* @param idThesaurus
* @param lang
* @return
*/
@WebMethod(operationName = "multiConceptToSkos")
public String multiConceptToSkos(@WebParam(name = "value") String value, @WebParam(name = "idThesaurus") String idThesaurus, @WebParam(name = "lang") String lang) {
if (ds == null)
return null;
if (prefs == null)
return null;
ExportFromBDD exportFromBDD = new ExportFromBDD();
exportFromBDD.setServerArk(prefs.getProperty("serverArk"));
exportFromBDD.setServerAdress(prefs.getProperty("cheminSite"));
String skos = exportFromBDD.exportMultiConcept(ds, idThesaurus, value, lang).toString();
return skos;
}
Aggregations