Search in sources :

Example 1 with MidpointNestedTree

use of com.evolveum.midpoint.web.page.admin.orgs.MidpointNestedTree in project midpoint by Evolveum.

the class AbstractTreeTablePanel method getRootFromProvider.

protected TreeSelectableBean<OrgType> getRootFromProvider() {
    MidpointNestedTree tree = getTree();
    ITreeProvider<TreeSelectableBean<OrgType>> provider = tree.getProvider();
    Iterator<? extends TreeSelectableBean<OrgType>> iterator = provider.getRoots();
    return iterator.hasNext() ? iterator.next() : null;
}
Also used : OrgType(com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType) TreeSelectableBean(com.evolveum.midpoint.web.component.util.TreeSelectableBean) MidpointNestedTree(com.evolveum.midpoint.web.page.admin.orgs.MidpointNestedTree)

Aggregations

TreeSelectableBean (com.evolveum.midpoint.web.component.util.TreeSelectableBean)1 MidpointNestedTree (com.evolveum.midpoint.web.page.admin.orgs.MidpointNestedTree)1 OrgType (com.evolveum.midpoint.xml.ns._public.common.common_3.OrgType)1