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;
}
Aggregations