Search in sources :

Example 1 with ObjectDetailsModels

use of com.evolveum.midpoint.gui.impl.page.admin.ObjectDetailsModels in project midpoint by Evolveum.

the class DetailsNavigationPanel method getCounterProvider.

private SimpleCounter<ObjectDetailsModels<O>, O> getCounterProvider(IModel<ContainerPanelConfigurationType> panelModel) {
    ContainerPanelConfigurationType config = panelModel.getObject();
    String panelInstanceIdentifier = config.getIdentifier();
    SimpleCounter<ObjectDetailsModels<O>, O> counter = getPageBase().getCounterProvider(panelInstanceIdentifier);
    if (counter == null || counter.getClass().equals(SimpleCounter.class)) {
        return null;
    }
    return counter;
}
Also used : ObjectDetailsModels(com.evolveum.midpoint.gui.impl.page.admin.ObjectDetailsModels) SimpleCounter(com.evolveum.midpoint.web.application.SimpleCounter) ContainerPanelConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.ContainerPanelConfigurationType)

Aggregations

ObjectDetailsModels (com.evolveum.midpoint.gui.impl.page.admin.ObjectDetailsModels)1 SimpleCounter (com.evolveum.midpoint.web.application.SimpleCounter)1 ContainerPanelConfigurationType (com.evolveum.midpoint.xml.ns._public.common.common_3.ContainerPanelConfigurationType)1