/** * Create an instance of {@link FullTextSearchConfigurationType } * */ public FullTextSearchConfigurationType createFullTextSearchConfigurationType() { return new FullTextSearchConfigurationType(); }
/** * Create an instance of {@link FullTextSearchConfigurationType } * */ public FullTextSearchConfigurationType createFullTextSearchConfigurationType() { return new FullTextSearchConfigurationType(); }
/** * Create an instance of {@link FullTextSearchConfigurationType } * */ public FullTextSearchConfigurationType createFullTextSearchConfigurationType() { return new FullTextSearchConfigurationType(); }
public FullTextSearchConfigurationType beginFullTextSearch() { FullTextSearchConfigurationType value = new FullTextSearchConfigurationType(); fullTextSearch(value); return value; }
public FullTextSearchConfigurationType clone() { FullTextSearchConfigurationType object = new FullTextSearchConfigurationType(); PrismContainerValue value = asPrismContainerValue().clone(); object.setupContainerValue(value); return object; }
@BeforeClass public void beforeClass() throws Exception { super.beforeClass(); PrismTestUtil.resetPrismContext(MidPointPrismContextFactory.FACTORY); OperationResult result = new OperationResult("add objects"); PrismObject<UserType> beforeConfig = prismContext.createObjectable(UserType.class) .name("before-config") .description(DESCRIPTION_TO_FIND) .asPrismObject(); beforeConfigOid = repositoryService.addObject(beforeConfig, null, result); FullTextSearchConfigurationType fullTextConfig = new FullTextSearchConfigurationType(); FullTextSearchIndexedItemsConfigurationType entry = new FullTextSearchIndexedItemsConfigurationType(); entry.getItem().add(new ItemPathType(ObjectType.F_NAME)); entry.getItem().add(new ItemPathType(ObjectType.F_DESCRIPTION)); fullTextConfig.getIndexed().add(entry); repositoryService.applyFullTextSearchConfiguration(fullTextConfig); LOGGER.info("Applying full text search configuration: {}", fullTextConfig); List<PrismObject<? extends Objectable>> objects = prismContext.parserFor(new File(FOLDER_BASIC, "objects.xml")).parseObjects(); objects.addAll(prismContext.parserFor(new File(FOLDER_BASIC, "objects-2.xml")).parseObjects()); for (PrismObject object : objects) { repositoryService.addObject(object, null, result); } result.recomputeStatus(); assertTrue(result.isSuccess()); }