use of de.symeda.sormas.api.infrastructure.continent.ContinentCriteria in project SORMAS-Project by hzi-braunschweig.
the class LocationEditForm method setContinentFieldsVisibility.
public void setContinentFieldsVisibility() {
if (FacadeProvider.getContinentFacade().count(new ContinentCriteria().relevanceStatus(EntityRelevanceStatus.ACTIVE)) == 0) {
continent.setVisible(false);
continent.clear();
} else {
continent.setVisible(true);
}
if (FacadeProvider.getSubcontinentFacade().count(new SubcontinentCriteria().relevanceStatus(EntityRelevanceStatus.ACTIVE)) == 0) {
subcontinent.setVisible(false);
subcontinent.clear();
} else {
subcontinent.setVisible(true);
}
}
Aggregations