Search in sources :

Example 1 with AssignmentHolderTypeMainPanel

use of com.evolveum.midpoint.web.component.objectdetails.AssignmentHolderTypeMainPanel in project midpoint by Evolveum.

the class MultivalueContainerListPanel method getFocusObject.

public <AH extends AssignmentHolderType> PrismObject<AH> getFocusObject() {
    AssignmentHolderTypeMainPanel mainPanel = findParent(AssignmentHolderTypeMainPanel.class);
    if (mainPanel != null) {
        return mainPanel.getObjectWrapper().getObject();
    }
    PageBase pageBase = getPageBase();
    if (pageBase != null && pageBase instanceof PageAssignmentHolderDetails) {
        PageAssignmentHolderDetails pageAssignmentHolderDetails = (PageAssignmentHolderDetails) pageBase;
        return (PrismObject<AH>) pageAssignmentHolderDetails.getPrismObject();
    }
    return null;
}
Also used : AssignmentHolderTypeMainPanel(com.evolveum.midpoint.web.component.objectdetails.AssignmentHolderTypeMainPanel) PrismObject(com.evolveum.midpoint.prism.PrismObject) PageAssignmentHolderDetails(com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.PageAssignmentHolderDetails) PageBase(com.evolveum.midpoint.gui.api.page.PageBase)

Aggregations

PageBase (com.evolveum.midpoint.gui.api.page.PageBase)1 PageAssignmentHolderDetails (com.evolveum.midpoint.gui.impl.page.admin.assignmentholder.PageAssignmentHolderDetails)1 PrismObject (com.evolveum.midpoint.prism.PrismObject)1 AssignmentHolderTypeMainPanel (com.evolveum.midpoint.web.component.objectdetails.AssignmentHolderTypeMainPanel)1