Class StatusAwareDataFactory
java.lang.Object
com.evolveum.midpoint.gui.impl.component.data.provider.suggestion.StatusAwareDataFactory
Centralized utility for building
StatusAwareDataFactory.SuggestionsModelDto for various Smart Integration suggestion types.
Each factory method prepares a Wicket LoadableModel combining base container values
with Smart-generated suggestions, and provides a resolver function for StatusInfo.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptioncreateAssociationModel(@NotNull org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull PrismContainerWrapperModel<ResourceType, ShadowAssociationTypeDefinitionType> baseWrapper, @NotNull String resourceOid) Creates a model combining association definitions with Smart association suggestions.static @NotNull StatusAwareDataFactory.SuggestionsModelDto<ItemsSubCorrelatorType>createCorrelationModel(@NotNull org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull org.apache.wicket.model.IModel<PrismContainerWrapper<ItemsSubCorrelatorType>> containerModel, @NotNull PrismContainerValueWrapper<ResourceObjectTypeDefinitionType> parentWrapper, @NotNull String resourceOid) Creates a model merging correlation definitions with Smart correlation suggestions.static @NotNull StatusAwareDataFactory.SuggestionsModelDto<MappingType>createMappingModel(@NotNull org.apache.wicket.Component component, @NotNull String resourceOid, @NotNull org.apache.wicket.model.IModel<Boolean> switchSuggestionModel, @NotNull org.apache.wicket.model.IModel<PrismContainerWrapper<MappingType>> containerModel, @NotNull PrismContainerValueWrapper<ResourceObjectTypeDefinitionType> parentWrapper, @NotNull MappingDirection mappingDirection, @NotNull Set<PrismContainerValueWrapper<MappingType>> acceptedSuggestionsCache) Creates a model combining mapping definitions with Smart mapping suggestions.createObjectTypeModel(@NotNull org.apache.wicket.Component component, @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull PrismContainerWrapperModel<ResourceType, ResourceObjectTypeDefinitionType> baseWrapper, @NotNull String resourceOid) Creates a model combining object type definitions with Smart object type suggestions.
-
Method Details
-
createAssociationModel
@NotNull public static @NotNull StatusAwareDataFactory.SuggestionsModelDto<ShadowAssociationTypeDefinitionType> createAssociationModel(@NotNull @NotNull org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull @NotNull PrismContainerWrapperModel<ResourceType, ShadowAssociationTypeDefinitionType> baseWrapper, @NotNull @NotNull String resourceOid) Creates a model combining association definitions with Smart association suggestions. -
createObjectTypeModel
@NotNull public static @NotNull StatusAwareDataFactory.SuggestionsModelDto<ResourceObjectTypeDefinitionType> createObjectTypeModel(@NotNull @NotNull org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull @NotNull PrismContainerWrapperModel<ResourceType, ResourceObjectTypeDefinitionType> baseWrapper, @NotNull @NotNull String resourceOid) Creates a model combining object type definitions with Smart object type suggestions. -
createCorrelationModel
@NotNull public static @NotNull StatusAwareDataFactory.SuggestionsModelDto<ItemsSubCorrelatorType> createCorrelationModel(@NotNull @NotNull org.apache.wicket.Component component, @NotNull @NotNull org.apache.wicket.model.IModel<Boolean> toggleModel, @NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerWrapper<ItemsSubCorrelatorType>> containerModel, @NotNull @NotNull PrismContainerValueWrapper<ResourceObjectTypeDefinitionType> parentWrapper, @NotNull @NotNull String resourceOid) Creates a model merging correlation definitions with Smart correlation suggestions. -
createMappingModel
@NotNull public static @NotNull StatusAwareDataFactory.SuggestionsModelDto<MappingType> createMappingModel(@NotNull @NotNull org.apache.wicket.Component component, @NotNull @NotNull String resourceOid, @NotNull @NotNull org.apache.wicket.model.IModel<Boolean> switchSuggestionModel, @NotNull @NotNull org.apache.wicket.model.IModel<PrismContainerWrapper<MappingType>> containerModel, @NotNull @NotNull PrismContainerValueWrapper<ResourceObjectTypeDefinitionType> parentWrapper, @NotNull @NotNull MappingDirection mappingDirection, @NotNull @NotNull Set<PrismContainerValueWrapper<MappingType>> acceptedSuggestionsCache) Creates a model combining mapping definitions with Smart mapping suggestions. Includes initial sorting, filtering, and handling of accepted vs. normal mappings.
-