use of com.evolveum.midpoint.web.component.objectdetails.AbstractRoleMainPanel in project midpoint by Evolveum.
the class PageArchetype method createMainPanel.
@Override
protected AbstractObjectMainPanel<ArchetypeType> createMainPanel(String id) {
return new AbstractRoleMainPanel<>(id, getObjectModel(), getProjectionModel(), this) {
private static final long serialVersionUID = 1L;
@Override
public AbstractRoleMemberPanel<ArchetypeType> createMemberPanel(String panelId, PageBase pageBase) {
return new ArchetypeMembersPanel(panelId, new Model<>(getObject().asObjectable()), pageBase);
}
@Override
protected List<ITab> createTabs(PageAdminObjectDetails<ArchetypeType> parentPage) {
List<ITab> tabs = super.createTabs(parentPage);
tabs.add(new PanelTab(parentPage.createStringResource("PageArchetype.archetypePolicy"), getTabVisibility(ComponentConstants.UI_ARCHTYPE_TAB_ARCHETYPE_POLICY_URL, false, parentPage)) {
private static final long serialVersionUID = 1L;
@Override
public WebMarkupContainer createPanel(String panelId) {
return new ContainerOfSystemConfigurationPanel<ArchetypePolicyType>(panelId, PrismContainerWrapperModel.fromContainerWrapper(getObjectModel(), ArchetypeType.F_ARCHETYPE_POLICY), ArchetypePolicyType.COMPLEX_TYPE);
}
});
return tabs;
}
};
}
Aggregations