Search in sources :

Example 1 with ContinentCriteria

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);
    }
}
Also used : SubcontinentCriteria(de.symeda.sormas.api.infrastructure.subcontinent.SubcontinentCriteria) ContinentCriteria(de.symeda.sormas.api.infrastructure.continent.ContinentCriteria)

Aggregations

ContinentCriteria (de.symeda.sormas.api.infrastructure.continent.ContinentCriteria)1 SubcontinentCriteria (de.symeda.sormas.api.infrastructure.subcontinent.SubcontinentCriteria)1