Search in sources :

Example 1 with ArchetypeType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType in project midpoint by Evolveum.

the class PageArchetypes method initLayout.

private void initLayout() {
    Form mainForm = new MidpointForm(ID_MAIN_FORM);
    add(mainForm);
    MainObjectListPanel<ArchetypeType> table = new MainObjectListPanel<ArchetypeType>(ID_TABLE, ArchetypeType.class) {

        @Override
        protected TableId getTableId() {
            return UserProfileStorage.TableId.TABLE_ARCHETYPES;
        }

        @Override
        protected IColumn<SelectableBean<ArchetypeType>, String> createCheckboxColumn() {
            return null;
        }
    };
    table.setOutputMarkupId(true);
    mainForm.add(table);
}
Also used : MainObjectListPanel(com.evolveum.midpoint.gui.api.component.MainObjectListPanel) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) Form(org.apache.wicket.markup.html.form.Form) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm) SelectableBean(com.evolveum.midpoint.web.component.util.SelectableBean) MidpointForm(com.evolveum.midpoint.web.component.form.MidpointForm)

Example 2 with ArchetypeType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType in project midpoint by Evolveum.

the class SqaleRepoAddDeleteObjectTest method test821ArchetypeAndInducement.

// This covers mapping of attributes in AbstractRole + Archetype + inducement mapping.
// There is no focus on QFocusMapping that is covered above.
@Test
public void test821ArchetypeAndInducement() throws Exception {
    OperationResult result = createOperationResult();
    given("archetype object");
    String objectName = "arch" + getTestNumber();
    ArchetypeType archetype = new ArchetypeType(prismContext).name(objectName).autoassign(new AutoassignSpecificationType().enabled(true)).displayName("display-name").identifier("identifier").requestable(false).riskLevel("extremely-high").inducement(new AssignmentType(prismContext).order(2).targetRef(UUID.randomUUID().toString(), RoleType.COMPLEX_TYPE)).inducement(new AssignmentType(prismContext).order(3).targetRef(UUID.randomUUID().toString(), RoleType.COMPLEX_TYPE));
    // this is no additional attribute specific for archetype
    when("adding it to the repository");
    repositoryService.addObject(archetype.asPrismObject(), null, result);
    then("it is stored and relevant attributes are in columns");
    assertThatOperationResult(result).isSuccess();
    UUID archetypeOid = UUID.fromString(archetype.getOid());
    MArchetype row = selectObjectByOid(QArchetype.class, archetypeOid);
    // all attributes from MAbstractRole
    assertThat(row.autoAssignEnabled).isTrue();
    assertThat(row.displayNameOrig).isEqualTo("display-name");
    assertThat(row.displayNameNorm).isEqualTo("displayname");
    assertThat(row.identifier).isEqualTo("identifier");
    assertThat(row.requestable).isFalse();
    assertThat(row.riskLevel).isEqualTo("extremely-high");
    QAssignment<?> a = QAssignmentMapping.getAssignmentMapping().defaultAlias();
    assertThat(select(a, a.ownerOid.eq(archetypeOid))).hasSize(2).anyMatch(ar -> ar.orderValue.equals(2)).anyMatch(ar -> ar.orderValue.equals(3)).allMatch(ar -> ar.targetRefTargetOid != null && ar.targetRefTargetType == MObjectType.ROLE);
}
Also used : MArchetype(com.evolveum.midpoint.repo.sqale.qmodel.role.MArchetype) MReportData(com.evolveum.midpoint.repo.sqale.qmodel.report.MReportData) com.evolveum.midpoint.repo.sqale.qmodel.object(com.evolveum.midpoint.repo.sqale.qmodel.object) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) JdbcSession(com.evolveum.midpoint.repo.sqlbase.JdbcSession) SchemaException(com.evolveum.midpoint.util.exception.SchemaException) Test(org.testng.annotations.Test) com.evolveum.midpoint.repo.sqale.qmodel.ref(com.evolveum.midpoint.repo.sqale.qmodel.ref) QSystemConfiguration(com.evolveum.midpoint.repo.sqale.qmodel.system.QSystemConfiguration) BigDecimal(java.math.BigDecimal) DOMUtil(com.evolveum.midpoint.util.DOMUtil) Map(java.util.Map) QNode(com.evolveum.midpoint.repo.sqale.qmodel.node.QNode) BigInteger(java.math.BigInteger) MContainer(com.evolveum.midpoint.repo.sqale.qmodel.common.MContainer) MConnector(com.evolveum.midpoint.repo.sqale.qmodel.connector.MConnector) QUser(com.evolveum.midpoint.repo.sqale.qmodel.focus.QUser) RepoAddOptions.createOverwrite(com.evolveum.midpoint.repo.api.RepoAddOptions.createOverwrite) QContainer(com.evolveum.midpoint.repo.sqale.qmodel.common.QContainer) ObjectNotFoundException(com.evolveum.midpoint.util.exception.ObjectNotFoundException) MContainerType(com.evolveum.midpoint.repo.sqale.qmodel.common.MContainerType) MFocus(com.evolveum.midpoint.repo.sqale.qmodel.focus.MFocus) MiscUtil(com.evolveum.midpoint.util.MiscUtil) ObjectAlreadyExistsException(com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException) UUID(java.util.UUID) Instant(java.time.Instant) QLookupTableRow(com.evolveum.midpoint.repo.sqale.qmodel.lookuptable.QLookupTableRow) StandardCharsets(java.nio.charset.StandardCharsets) QMessageTemplate(com.evolveum.midpoint.repo.sqale.qmodel.notification.QMessageTemplate) com.evolveum.midpoint.repo.sqale.qmodel.cases.workitem(com.evolveum.midpoint.repo.sqale.qmodel.cases.workitem) QGenericObject(com.evolveum.midpoint.repo.sqale.qmodel.focus.QGenericObject) MTask(com.evolveum.midpoint.repo.sqale.qmodel.task.MTask) List(java.util.List) QConnector(com.evolveum.midpoint.repo.sqale.qmodel.connector.QConnector) PolyStringType(com.evolveum.prism.xml.ns._public.types_3.PolyStringType) QName(javax.xml.namespace.QName) com.evolveum.midpoint.xml.ns._public.common.common_3(com.evolveum.midpoint.xml.ns._public.common.common_3) Jsonb(com.evolveum.midpoint.repo.sqale.jsonb.Jsonb) QResource(com.evolveum.midpoint.repo.sqale.qmodel.resource.QResource) SchemaConstants(com.evolveum.midpoint.schema.constants.SchemaConstants) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) MResource(com.evolveum.midpoint.repo.sqale.qmodel.resource.MResource) QCase(com.evolveum.midpoint.repo.sqale.qmodel.cases.QCase) SqaleRepoBaseTest(com.evolveum.midpoint.repo.sqale.SqaleRepoBaseTest) QConnectorHost(com.evolveum.midpoint.repo.sqale.qmodel.connector.QConnectorHost) MShadow(com.evolveum.midpoint.repo.sqale.qmodel.shadow.MShadow) Assertions.assertThatThrownBy(org.assertj.core.api.Assertions.assertThatThrownBy) MConnectorHost(com.evolveum.midpoint.repo.sqale.qmodel.connector.MConnectorHost) QReport(com.evolveum.midpoint.repo.sqale.qmodel.report.QReport) Comparator.comparing(java.util.Comparator.comparing) RepositoryService(com.evolveum.midpoint.repo.api.RepositoryService) Containerable(com.evolveum.midpoint.prism.Containerable) MLookupTableRow(com.evolveum.midpoint.repo.sqale.qmodel.lookuptable.MLookupTableRow) PolyString(com.evolveum.midpoint.prism.polystring.PolyString) DeleteObjectResult(com.evolveum.midpoint.repo.api.DeleteObjectResult) MNode(com.evolveum.midpoint.repo.sqale.qmodel.node.MNode) com.evolveum.midpoint.repo.sqale.qmodel.assignment(com.evolveum.midpoint.repo.sqale.qmodel.assignment) PrismObject(com.evolveum.midpoint.prism.PrismObject) QShadow(com.evolveum.midpoint.repo.sqale.qmodel.shadow.QShadow) MUser(com.evolveum.midpoint.repo.sqale.qmodel.focus.MUser) SimpleExpressionUtil.velocityExpression(com.evolveum.midpoint.schema.util.SimpleExpressionUtil.velocityExpression) ChronoUnit(java.time.temporal.ChronoUnit) ItemName(com.evolveum.midpoint.prism.path.ItemName) QReportData(com.evolveum.midpoint.repo.sqale.qmodel.report.QReportData) MCase(com.evolveum.midpoint.repo.sqale.qmodel.cases.MCase) QArchetype(com.evolveum.midpoint.repo.sqale.qmodel.role.QArchetype) SqaleRepositoryService(com.evolveum.midpoint.repo.sqale.SqaleRepositoryService) QTask(com.evolveum.midpoint.repo.sqale.qmodel.task.QTask) com.evolveum.midpoint.repo.sqale.qmodel.accesscert(com.evolveum.midpoint.repo.sqale.qmodel.accesscert) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) PolyString(com.evolveum.midpoint.prism.polystring.PolyString) UUID(java.util.UUID) MArchetype(com.evolveum.midpoint.repo.sqale.qmodel.role.MArchetype) Test(org.testng.annotations.Test) SqaleRepoBaseTest(com.evolveum.midpoint.repo.sqale.SqaleRepoBaseTest)

Example 3 with ArchetypeType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType in project midpoint by Evolveum.

the class TestRepositoryCache method test300ModifyInIterativeSearch.

/**
 * MID-6250
 */
@Test
public void test300ModifyInIterativeSearch() throws SchemaException, ObjectNotFoundException, ObjectAlreadyExistsException {
    given();
    PrismContext prismContext = getPrismContext();
    OperationResult result = createOperationResult();
    clearStatistics();
    clearCaches();
    String name = "testModifyInIterativeSearch";
    String changedDescription = "changed";
    PrismObject<ArchetypeType> archetype = new ArchetypeType(prismContext).name(name).asPrismObject();
    repositoryCache.addObject(archetype, null, result);
    when();
    ObjectQuery query = prismContext.queryFor(ArchetypeType.class).item(ArchetypeType.F_NAME).eqPoly(name).matchingOrig().build();
    List<ItemDelta<?, ?>> deltas = prismContext.deltaFor(ArchetypeType.class).item(ArchetypeType.F_DESCRIPTION).replace(changedDescription).asItemDeltas();
    AtomicInteger found = new AtomicInteger(0);
    ResultHandler<ArchetypeType> handler = (object, result1) -> {
        try {
            repositoryCache.modifyObject(ArchetypeType.class, object.getOid(), deltas, result1);
        } catch (ObjectNotFoundException | SchemaException | ObjectAlreadyExistsException e) {
            throw new AssertionError(e);
        }
        found.incrementAndGet();
        return true;
    };
    repositoryCache.searchObjectsIterative(ArchetypeType.class, query, handler, null, false, result);
    dumpStatistics();
    assertThat(found.get()).as("objects found").isEqualTo(1);
    PrismObject<ArchetypeType> singleObjectAfter = repositoryCache.getObject(ArchetypeType.class, archetype.getOid(), null, result);
    List<PrismObject<ArchetypeType>> listAfter = repositoryCache.searchObjects(ArchetypeType.class, query, null, result);
    then();
    assertThat(singleObjectAfter.asObjectable().getDescription()).as("description in getObject result (after change)").isEqualTo(changedDescription);
    assertThat(listAfter.size()).as("objects found after").isEqualTo(1);
    assertThat(listAfter.get(0).asObjectable().getDescription()).as("description in searchObjects result (after change)").isEqualTo(changedDescription);
}
Also used : BeforeSuite(org.testng.annotations.BeforeSuite) com.evolveum.midpoint.schema(com.evolveum.midpoint.schema) java.util(java.util) ObjectType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) QueryKey(com.evolveum.midpoint.repo.cache.local.QueryKey) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) Autowired(org.springframework.beans.factory.annotation.Autowired) OperationPerformanceInformation(com.evolveum.midpoint.repo.api.perf.OperationPerformanceInformation) SchemaException(com.evolveum.midpoint.util.exception.SchemaException) Test(org.testng.annotations.Test) PerformanceInformation(com.evolveum.midpoint.repo.api.perf.PerformanceInformation) PrettyPrinter(com.evolveum.midpoint.util.PrettyPrinter) StringUtils(org.apache.commons.lang3.StringUtils) ItemDelta(com.evolveum.midpoint.prism.delta.ItemDelta) GlobalObjectCache(com.evolveum.midpoint.repo.cache.global.GlobalObjectCache) SystemConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType) PrismTestUtil(com.evolveum.midpoint.prism.util.PrismTestUtil) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) REPOSITORY_IMPL_NAME(com.evolveum.midpoint.repo.sqale.SqaleRepositoryService.REPOSITORY_IMPL_NAME) PrismContext(com.evolveum.midpoint.prism.PrismContext) CachePerformanceInformationUtil(com.evolveum.midpoint.schema.statistics.CachePerformanceInformationUtil) RepositoryService(com.evolveum.midpoint.repo.api.RepositoryService) GlobalQueryCache(com.evolveum.midpoint.repo.cache.global.GlobalQueryCache) PrismTestUtil.getPrismContext(com.evolveum.midpoint.prism.util.PrismTestUtil.getPrismContext) RepositoryPerformanceInformationUtil(com.evolveum.midpoint.schema.statistics.RepositoryPerformanceInformationUtil) AbstractSpringTest(com.evolveum.midpoint.test.util.AbstractSpringTest) ObjectNotFoundException(com.evolveum.midpoint.util.exception.ObjectNotFoundException) CachePerformanceCollector(com.evolveum.midpoint.util.caching.CachePerformanceCollector) ObjectAlreadyExistsException(com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) PrismObject(com.evolveum.midpoint.prism.PrismObject) AssertJUnit.fail(org.testng.AssertJUnit.fail) InfraTestMixin(com.evolveum.midpoint.test.util.InfraTestMixin) AtomicLong(java.util.concurrent.atomic.AtomicLong) GlobalVersionCache(com.evolveum.midpoint.repo.cache.global.GlobalVersionCache) MidPointConstants(com.evolveum.midpoint.schema.constants.MidPointConstants) PolyStringType(com.evolveum.prism.xml.ns._public.types_3.PolyStringType) ContextConfiguration(org.springframework.test.context.ContextConfiguration) PostConstruct(javax.annotation.PostConstruct) PrismTestUtil.displayCollection(com.evolveum.midpoint.prism.util.PrismTestUtil.displayCollection) GlobalCacheObjectValue(com.evolveum.midpoint.repo.cache.global.GlobalCacheObjectValue) UserType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) AssertJUnit.assertEquals(org.testng.AssertJUnit.assertEquals) NotNull(org.jetbrains.annotations.NotNull) SqaleRepositoryService(com.evolveum.midpoint.repo.sqale.SqaleRepositoryService) PrismContext(com.evolveum.midpoint.prism.PrismContext) PrismTestUtil.getPrismContext(com.evolveum.midpoint.prism.util.PrismTestUtil.getPrismContext) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) ItemDelta(com.evolveum.midpoint.prism.delta.ItemDelta) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) PrismObject(com.evolveum.midpoint.prism.PrismObject) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) Test(org.testng.annotations.Test) AbstractSpringTest(com.evolveum.midpoint.test.util.AbstractSpringTest)

Example 4 with ArchetypeType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType in project midpoint by Evolveum.

the class TestRepositoryCache method test320SearchObjectsIterativeSlow.

/**
 * MID-6250
 */
@Test
public void test320SearchObjectsIterativeSlow() throws ObjectAlreadyExistsException, SchemaException, ObjectNotFoundException {
    OperationResult result = createOperationResult();
    deleteExistingObjects(ArchetypeType.class, result);
    clearStatistics();
    clearCaches();
    generateObjects(ArchetypeType.class, 5, result);
    when();
    SearchResultList<PrismObject<ArchetypeType>> retrieved = new SearchResultList<>();
    AtomicBoolean delayed = new AtomicBoolean(false);
    ResultHandler<ArchetypeType> handler = (object, parentResult) -> {
        retrieved.add(object.clone());
        object.asObjectable().setDescription("garbage: " + Math.random());
        if (!delayed.getAndSet(true)) {
            try {
                // larger than default staleness limit of 1000 ms
                Thread.sleep(1500);
            } catch (InterruptedException e) {
                throw new AssertionError(e);
            }
        }
        return true;
    };
    repositoryCache.searchObjectsIterative(ArchetypeType.class, null, handler, null, true, result);
    then();
    dumpStatistics();
    assertObjectIsCached(retrieved.get(0).getOid());
    assertVersionIsCached(retrieved.get(0).getOid());
    for (int i = 1; i < retrieved.size(); i++) {
        assertObjectIsNotCached(retrieved.get(i).getOid());
        assertVersionIsNotCached(retrieved.get(i).getOid());
    }
    assertQueryIsNotCached(ArchetypeType.class, null);
    Map<String, CachePerformanceCollector.CacheData> map = CachePerformanceCollector.INSTANCE.getGlobalPerformanceMap();
    CachePerformanceCollector.CacheData data = map.get("all.ArchetypeType");
    // 4 objects + 1 search result
    assertThat(data.skippedStaleData.get()).as("stale data counter").isEqualTo(5);
}
Also used : BeforeSuite(org.testng.annotations.BeforeSuite) com.evolveum.midpoint.schema(com.evolveum.midpoint.schema) java.util(java.util) ObjectType(com.evolveum.midpoint.xml.ns._public.common.common_3.ObjectType) Assertions.assertThat(org.assertj.core.api.Assertions.assertThat) QueryKey(com.evolveum.midpoint.repo.cache.local.QueryKey) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) Autowired(org.springframework.beans.factory.annotation.Autowired) OperationPerformanceInformation(com.evolveum.midpoint.repo.api.perf.OperationPerformanceInformation) SchemaException(com.evolveum.midpoint.util.exception.SchemaException) Test(org.testng.annotations.Test) PerformanceInformation(com.evolveum.midpoint.repo.api.perf.PerformanceInformation) PrettyPrinter(com.evolveum.midpoint.util.PrettyPrinter) StringUtils(org.apache.commons.lang3.StringUtils) ItemDelta(com.evolveum.midpoint.prism.delta.ItemDelta) GlobalObjectCache(com.evolveum.midpoint.repo.cache.global.GlobalObjectCache) SystemConfigurationType(com.evolveum.midpoint.xml.ns._public.common.common_3.SystemConfigurationType) PrismTestUtil(com.evolveum.midpoint.prism.util.PrismTestUtil) AtomicInteger(java.util.concurrent.atomic.AtomicInteger) REPOSITORY_IMPL_NAME(com.evolveum.midpoint.repo.sqale.SqaleRepositoryService.REPOSITORY_IMPL_NAME) PrismContext(com.evolveum.midpoint.prism.PrismContext) CachePerformanceInformationUtil(com.evolveum.midpoint.schema.statistics.CachePerformanceInformationUtil) RepositoryService(com.evolveum.midpoint.repo.api.RepositoryService) GlobalQueryCache(com.evolveum.midpoint.repo.cache.global.GlobalQueryCache) PrismTestUtil.getPrismContext(com.evolveum.midpoint.prism.util.PrismTestUtil.getPrismContext) RepositoryPerformanceInformationUtil(com.evolveum.midpoint.schema.statistics.RepositoryPerformanceInformationUtil) AbstractSpringTest(com.evolveum.midpoint.test.util.AbstractSpringTest) ObjectNotFoundException(com.evolveum.midpoint.util.exception.ObjectNotFoundException) CachePerformanceCollector(com.evolveum.midpoint.util.caching.CachePerformanceCollector) ObjectAlreadyExistsException(com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) PrismObject(com.evolveum.midpoint.prism.PrismObject) AssertJUnit.fail(org.testng.AssertJUnit.fail) InfraTestMixin(com.evolveum.midpoint.test.util.InfraTestMixin) AtomicLong(java.util.concurrent.atomic.AtomicLong) GlobalVersionCache(com.evolveum.midpoint.repo.cache.global.GlobalVersionCache) MidPointConstants(com.evolveum.midpoint.schema.constants.MidPointConstants) PolyStringType(com.evolveum.prism.xml.ns._public.types_3.PolyStringType) ContextConfiguration(org.springframework.test.context.ContextConfiguration) PostConstruct(javax.annotation.PostConstruct) PrismTestUtil.displayCollection(com.evolveum.midpoint.prism.util.PrismTestUtil.displayCollection) GlobalCacheObjectValue(com.evolveum.midpoint.repo.cache.global.GlobalCacheObjectValue) UserType(com.evolveum.midpoint.xml.ns._public.common.common_3.UserType) ObjectQuery(com.evolveum.midpoint.prism.query.ObjectQuery) AssertJUnit.assertEquals(org.testng.AssertJUnit.assertEquals) NotNull(org.jetbrains.annotations.NotNull) SqaleRepositoryService(com.evolveum.midpoint.repo.sqale.SqaleRepositoryService) OperationResult(com.evolveum.midpoint.schema.result.OperationResult) PrismObject(com.evolveum.midpoint.prism.PrismObject) AtomicBoolean(java.util.concurrent.atomic.AtomicBoolean) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) CachePerformanceCollector(com.evolveum.midpoint.util.caching.CachePerformanceCollector) Test(org.testng.annotations.Test) AbstractSpringTest(com.evolveum.midpoint.test.util.AbstractSpringTest)

Example 5 with ArchetypeType

use of com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType 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;
        }
    };
}
Also used : PanelTab(com.evolveum.midpoint.gui.api.component.tabs.PanelTab) PageBase(com.evolveum.midpoint.gui.api.page.PageBase) PageAdminObjectDetails(com.evolveum.midpoint.web.page.admin.PageAdminObjectDetails) ITab(org.apache.wicket.extensions.markup.html.tabs.ITab) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer) ArchetypeType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType) AbstractRoleMainPanel(com.evolveum.midpoint.web.component.objectdetails.AbstractRoleMainPanel) ArchetypePolicyType(com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypePolicyType)

Aggregations

ArchetypeType (com.evolveum.midpoint.xml.ns._public.common.common_3.ArchetypeType)5 PrismObject (com.evolveum.midpoint.prism.PrismObject)4 RepositoryService (com.evolveum.midpoint.repo.api.RepositoryService)4 SqaleRepositoryService (com.evolveum.midpoint.repo.sqale.SqaleRepositoryService)4 OperationResult (com.evolveum.midpoint.schema.result.OperationResult)4 ObjectAlreadyExistsException (com.evolveum.midpoint.util.exception.ObjectAlreadyExistsException)4 ObjectNotFoundException (com.evolveum.midpoint.util.exception.ObjectNotFoundException)4 SchemaException (com.evolveum.midpoint.util.exception.SchemaException)4 PolyStringType (com.evolveum.prism.xml.ns._public.types_3.PolyStringType)4 PrismContext (com.evolveum.midpoint.prism.PrismContext)3 ItemDelta (com.evolveum.midpoint.prism.delta.ItemDelta)3 ObjectQuery (com.evolveum.midpoint.prism.query.ObjectQuery)3 PrismTestUtil (com.evolveum.midpoint.prism.util.PrismTestUtil)3 PrismTestUtil.displayCollection (com.evolveum.midpoint.prism.util.PrismTestUtil.displayCollection)3 PrismTestUtil.getPrismContext (com.evolveum.midpoint.prism.util.PrismTestUtil.getPrismContext)3 OperationPerformanceInformation (com.evolveum.midpoint.repo.api.perf.OperationPerformanceInformation)3 PerformanceInformation (com.evolveum.midpoint.repo.api.perf.PerformanceInformation)3 GlobalCacheObjectValue (com.evolveum.midpoint.repo.cache.global.GlobalCacheObjectValue)3 GlobalObjectCache (com.evolveum.midpoint.repo.cache.global.GlobalObjectCache)3 GlobalQueryCache (com.evolveum.midpoint.repo.cache.global.GlobalQueryCache)3