Search in sources :

Example 1 with GuiObjectListViewsType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.GuiObjectListViewsType in project midpoint by Evolveum.

the class ObjectCollectionViewsCounter method count.

@Override
public int count(AssignmentHolderDetailsModel<SystemConfigurationType> model, PageBase pageBase) {
    SystemConfigurationType object = model.getObjectType();
    AdminGuiConfigurationType adminGui = object.getAdminGuiConfiguration();
    if (adminGui == null) {
        return 0;
    }
    GuiObjectListViewsType views = adminGui.getObjectCollectionViews();
    return views != null ? views.getObjectCollectionView().size() : 0;
}
Also used : AdminGuiConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType) SystemConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType) GuiObjectListViewsType(com.evolveum.midpoint.xml.ns._public.common.common_3.GuiObjectListViewsType)

Aggregations

AdminGuiConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.AdminGuiConfigurationType)1 GuiObjectListViewsType (com.evolveum.midpoint.xml.ns._public.common.common_3.GuiObjectListViewsType)1 SystemConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType)1