Package com.evolveum.midpoint.repo.sqale
Class ExtensionProcessor
- java.lang.Object
-
- com.evolveum.midpoint.repo.sqale.ExtensionProcessor
-
public class ExtensionProcessor extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExtensionProcessor.ExtItemInfo
Contains ext item from catalog and additional info needed for processing.
-
Constructor Summary
Constructors Constructor Description ExtensionProcessor(SqaleRepoContext repositoryContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
extensionsToContainer(Map<String,Object> attributes, Containerable container)
Object
extItemValue(Item<?,?> item, ExtensionProcessor.ExtItemInfo extItemInfo)
ExtensionProcessor.ExtItemInfo
findExtensionItem(@NotNull ItemDefinition<?> definition, MExtItemHolderType holderType)
Returns ext item definition or null if the item is not indexed and should be skipped.Jsonb
processExtensions(@NotNull Containerable extContainer, MExtItemHolderType holderType)
MExtItem
resolveExtensionItem(@NotNull ItemDefinition<?> definition, MExtItemHolderType holderType)
Finds extension item for the provided definition and holder type.
-
-
-
Constructor Detail
-
ExtensionProcessor
public ExtensionProcessor(SqaleRepoContext repositoryContext)
-
-
Method Detail
-
processExtensions
public Jsonb processExtensions(@NotNull @NotNull Containerable extContainer, MExtItemHolderType holderType)
-
findExtensionItem
@Nullable public ExtensionProcessor.ExtItemInfo findExtensionItem(@NotNull @NotNull ItemDefinition<?> definition, MExtItemHolderType holderType)
Returns ext item definition or null if the item is not indexed and should be skipped.
-
extItemValue
public Object extItemValue(Item<?,?> item, ExtensionProcessor.ExtItemInfo extItemInfo)
-
resolveExtensionItem
public MExtItem resolveExtensionItem(@NotNull @NotNull ItemDefinition<?> definition, MExtItemHolderType holderType)
Finds extension item for the provided definition and holder type. Returns null if the item is not indexed.
-
extensionsToContainer
public void extensionsToContainer(Map<String,Object> attributes, Containerable container) throws SchemaException
- Throws:
SchemaException
-
-