Search in sources :

Example 1 with GuiObjectDetailsSetType

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

the class GuiObjectDetailsCounter method count.

@Override
public int count(AssignmentHolderDetailsModel<SystemConfigurationType> model, PageBase pageBase) {
    SystemConfigurationType object = model.getObjectType();
    AdminGuiConfigurationType adminGui = object.getAdminGuiConfiguration();
    if (adminGui == null) {
        return 0;
    }
    GuiObjectDetailsSetType views = adminGui.getObjectDetails();
    return views != null ? views.getObjectDetailsPage().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) GuiObjectDetailsSetType(com.evolveum.midpoint.xml.ns._public.common.common_3.GuiObjectDetailsSetType)

Aggregations

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