use of org.nextprot.api.core.domain.ui.page.PageViewFactory in project nextprot-api by calipho-sib.
the class EntryPageServiceImpl method hasContentForPageDisplay.
@Cacheable(value = "page-display", key = "#entryName")
@Override
public Map<String, Boolean> hasContentForPageDisplay(@ValidEntry String entryName) {
Entry entry = entryBuilderService.build(EntryConfig.newConfig(entryName).withEverything());
Map<String, Boolean> map = new HashMap<>();
for (PageViewFactory page : PageViewFactory.values()) {
PageView pv = page.getPageView();
map.put(pv.getLabel(), pv.doDisplayPage(entry));
}
return map;
}
Aggregations