use of com.evolveum.midpoint.web.page.admin.users.component.MergeObjectsPanel in project midpoint by Evolveum.
the class PageMergeObjects method createMainPanel.
@Override
protected AbstractObjectMainPanel<UserType> createMainPanel(String id) {
// empty assignments model
CountableLoadableModel<AssignmentType> assignments = new CountableLoadableModel<>() {
private static final long serialVersionUID = 1L;
@Override
protected List<AssignmentType> load() {
return new ArrayList<>();
}
};
// empty policy rules model
CountableLoadableModel<AssignmentType> policyRules = new CountableLoadableModel<>() {
private static final long serialVersionUID = 1L;
@Override
protected List<AssignmentType> load() {
return new ArrayList<>();
}
};
// empty projections model
LoadableModel<List<ShadowWrapper>> shadows = new LoadableModel<>() {
private static final long serialVersionUID = 1L;
@Override
protected List<ShadowWrapper> load() {
return new ArrayList<>();
}
};
return new FocusMainPanel<UserType>(id, getObjectModel(), shadows, this) {
private static final long serialVersionUID = 1L;
@Override
protected List<ITab> createTabs(final PageAdminObjectDetails<UserType> parentPage) {
List<ITab> tabs = new ArrayList<>();
tabs.add(new PanelTab(parentPage.createStringResource("PageMergeObjects.tabTitle"), new VisibleEnableBehaviour()) {
private static final long serialVersionUID = 1L;
@Override
public WebMarkupContainer createPanel(String panelId) {
mergeObjectsPanel = new MergeObjectsPanel<>(panelId, mergeObjectModel, mergeWithObjectModel, type, PageMergeObjects.this);
return mergeObjectsPanel;
}
});
return tabs;
}
@Override
protected boolean isPreviewButtonVisible() {
return false;
}
@Override
protected boolean getOptionsPanelVisibility() {
return false;
}
};
}
Aggregations