use of mom.trd.opentheso.core.exports.altlabel.WriteAltLabel in project opentheso by miledrousset.
the class ExportThesaurus method exportAltLabel.
public StringBuilder exportAltLabel(HikariDataSource ds, String idTheso, String idLang) {
GroupHelper groupHelper = new GroupHelper();
WriteAltLabel writeAltLabel = new WriteAltLabel();
String GroupLabel;
// getAllBottomGroup(ds, idTheso);
ArrayList<String> GroupLists = groupHelper.getListIdOfGroup(ds, idTheso);
if (GroupLists == null)
return null;
if (GroupLists.isEmpty())
return new StringBuilder("");
for (String GroupList : GroupLists) {
GroupLabel = groupHelper.getLexicalValueOfGroup(ds, GroupList, idTheso, idLang);
writeAltLabel.setGroup(GroupList, GroupLabel);
writeAltLabel.setHeader();
writeAltLabel.AddAltLabelByGroup(ds, idTheso, GroupList, idLang);
}
return writeAltLabel.getAllAltLabels();
}
Aggregations