use of org.molgenis.core.ui.Molgenis in project molgenis by molgenis.
the class MenuManagerServiceImpl method getDefaultMenuValue.
public String getDefaultMenuValue() {
Molgenis molgenis;
try {
molgenis = new XmlMolgenisUiLoader().load();
} catch (IOException e) {
// default menu does not exist, no op
return null;
}
Menu defaultMenu = loadDefaultMenu(molgenis);
return new GsonBuilder().create().toJson(defaultMenu);
}
Aggregations