Package com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.smart
Class SmartIntegrationStatusInfoUtils
java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.smart.SmartIntegrationStatusInfoUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static org.apache.wicket.model.IModel<String>buildProgressMessageModel(@NotNull PageBase pageBase, String operationKey, @NotNull ActivityProgressInformation child) static @NotNull List<StatusRowRecord>buildStatusRows(PageBase pageBase, StatusInfo<?> suggestion, boolean rejectEmptyProgress) Builds display rows depending on the suggestion status.static @NotNull Set<AdditionalCorrelationItemMappingType>collectAdditionalMappingsIfSuggestion(@NotNull PageBase pageBase, @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull List<PrismContainerValueWrapper<ItemsSubCorrelatorType>> itemsW) static @NotNull List<ResourceAttributeDefinitionType>collectRequiredResourceAttributeDefs(@NotNull PageBase pageBase, @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull PrismContainerValueWrapper<CorrelationSuggestionType> parentSuggestionW) static intcomputeSuggestedObjectsCount(StatusInfo<?> statusInfo) static @NotNull StringextractEfficiencyFromSuggestedCorrelationItemWrapper(@NotNull PrismContainerValueWrapper<ItemsSubCorrelatorType> valueWrapper) static @Nullable FloatextractEfficiencyFromSuggestedMappingItemWrapper(@NotNull PrismContainerValueWrapper<MappingType> valueWrapper) static voidhandleSuggestionSuspendResumeOperation(@NotNull PageBase pageBase, @NotNull StatusInfo<?> statusInfo, @NotNull Task task, @NotNull OperationResult result) static booleanisNotCompletedSuggestion(@Nullable StatusInfo<?> statusInfo) Checks if the suggestion is not completed (in progress or fatal error).static booleanisSuggestionExists(@Nullable StatusInfo<?> statusInfo) static @Nullable List<StatusInfo<AssociationsSuggestionType>>loadAssociationSuggestions(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull Task task, @NotNull OperationResult result) Loads the current status of association suggestions for a resource, initializing it via smart integration services.static @Nullable StatusInfo<AssociationsSuggestionType>loadAssociationTypeSuggestion(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull Task task, @NotNull OperationResult result) static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ShadowAssociationTypeDefinitionType,AssociationsSuggestionType> loadAssociationTypeSuggestionWrappers(PageBase pageBase, String resourceOid, Task task, OperationResult result) Creates value wrappers for each suggested association type.static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ItemsSubCorrelatorType,CorrelationSuggestionsType> loadCorrelationSuggestionWrappers(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull ResourceObjectTypeDefinitionType rotDef, boolean includeNonCompletedSuggestions, @NotNull Task task, @NotNull OperationResult result) static @Nullable StatusInfo<CorrelationSuggestionsType>loadCorrelationTypeSuggestion(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull ResourceObjectTypeIdentification resourceObjectTypeIdentification, @NotNull Task task, @NotNull OperationResult result) static @Nullable List<StatusInfo<CorrelationSuggestionsType>>loadCorrelationTypeSuggestions(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull Task task, @NotNull OperationResult result) static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<MappingType,MappingsSuggestionType> loadMappingSuggestionWrappers(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull ResourceObjectTypeDefinitionType rotDef, @NotNull MappingDirection mappingDirection, boolean includeNonCompletedSuggestions, @NotNull Task task, @NotNull OperationResult result) static @Nullable StatusInfo<ObjectTypesSuggestionType>loadObjectClassObjectTypeSuggestions(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull QName objectClassName, @NotNull Task task, @NotNull OperationResult result) Retrieves the latest available object types suggestion for a given object class.static @Nullable StatusInfo<MappingsSuggestionType>loadObjectTypeMappingTypeSuggestion(@NotNull PageBase pageBase, @NotNull String resourceOid, @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull MappingDirection mappingDirection, @NotNull Task task, @NotNull OperationResult result) Loads the mapping type suggestion status for the given resource.static @Nullable List<StatusInfo<MappingsSuggestionType>>loadObjectTypeMappingTypeSuggestions(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull MappingDirection mappingDirection, @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull Task task, @NotNull OperationResult result) Loads the mapping type suggestion statuses for the given resource.static @Nullable List<StatusInfo<ObjectTypesSuggestionType>>loadObjectTypeSuggestions(@NotNull PageBase pageBase, @NotNull String resourceOid, @NotNull Task task, @NotNull OperationResult result) Loads the current status of a resource, initializing it via smart integration services.static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ResourceObjectTypeDefinitionType,ObjectTypesSuggestionType> loadObjectTypeSuggestionWrappers(PageBase pageBase, String resourceOid, Task task, OperationResult result) Creates value wrappers for each suggested object type.static voidshowSuggestionInfoPanelPopup(@NotNull PageBase pageBase, @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @Nullable StatusInfo<?> statusInfo)
-
Constructor Details
-
SmartIntegrationStatusInfoUtils
public SmartIntegrationStatusInfoUtils()
-
-
Method Details
-
loadObjectTypeSuggestions
@Nullable public static @Nullable List<StatusInfo<ObjectTypesSuggestionType>> loadObjectTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Loads the current status of a resource, initializing it via smart integration services. Returns a real status or an error status in case of failure. -
loadAssociationSuggestions
@Nullable public static @Nullable List<StatusInfo<AssociationsSuggestionType>> loadAssociationSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Loads the current status of association suggestions for a resource, initializing it via smart integration services. Returns a real status or an error status in case of failure. -
loadObjectClassObjectTypeSuggestions
@Nullable public static @Nullable StatusInfo<ObjectTypesSuggestionType> loadObjectClassObjectTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull QName objectClassName, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Retrieves the latest available object types suggestion for a given object class. Returnsnullif there are no suggestions. -
loadCorrelationTypeSuggestions
@Nullable public static @Nullable List<StatusInfo<CorrelationSuggestionsType>> loadCorrelationTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
loadCorrelationSuggestionWrappers
@NotNull public static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ItemsSubCorrelatorType,CorrelationSuggestionsType> loadCorrelationSuggestionWrappers(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull ResourceObjectTypeDefinitionType rotDef, boolean includeNonCompletedSuggestions, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
loadObjectTypeMappingTypeSuggestions
@Nullable public static @Nullable List<StatusInfo<MappingsSuggestionType>> loadObjectTypeMappingTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull MappingDirection mappingDirection, @Nullable @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Loads the mapping type suggestion statuses for the given resource.This method queries the
SmartIntegrationServicefor mapping suggestion operation statuses related to the specifiedresourceOid. If anobjectTypeIdentificationis provided, the results are filtered to include only those suggestions that do not match the specified kind and intent. -
loadObjectTypeMappingTypeSuggestion
@Nullable public static @Nullable StatusInfo<MappingsSuggestionType> loadObjectTypeMappingTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @Nullable @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull @NotNull MappingDirection mappingDirection, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) Loads the mapping type suggestion status for the given resource.This method queries the
SmartIntegrationServicefor mapping suggestion operation statuses related to the specifiedresourceOid. Although the service may return multiple statuses, only the first one is relevant and returned here. -
loadAssociationTypeSuggestion
@Nullable public static @Nullable StatusInfo<AssociationsSuggestionType> loadAssociationTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
loadCorrelationTypeSuggestion
@Nullable public static @Nullable StatusInfo<CorrelationSuggestionsType> loadCorrelationTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull ResourceObjectTypeIdentification resourceObjectTypeIdentification, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
loadMappingSuggestionWrappers
@NotNull public static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<MappingType,MappingsSuggestionType> loadMappingSuggestionWrappers(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull ResourceObjectTypeDefinitionType rotDef, @NotNull @NotNull MappingDirection mappingDirection, boolean includeNonCompletedSuggestions, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result) -
isNotCompletedSuggestion
Checks if the suggestion is not completed (in progress or fatal error). -
isSuggestionExists
-
collectRequiredResourceAttributeDefs
@NotNull public static @NotNull List<ResourceAttributeDefinitionType> collectRequiredResourceAttributeDefs(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull @NotNull PrismContainerValueWrapper<CorrelationSuggestionType> parentSuggestionW) -
collectAdditionalMappingsIfSuggestion
@NotNull public static @NotNull Set<AdditionalCorrelationItemMappingType> collectAdditionalMappingsIfSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @NotNull @NotNull List<PrismContainerValueWrapper<ItemsSubCorrelatorType>> itemsW) -
loadObjectTypeSuggestionWrappers
@NotNull public static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ResourceObjectTypeDefinitionType,ObjectTypesSuggestionType> loadObjectTypeSuggestionWrappers(PageBase pageBase, String resourceOid, Task task, OperationResult result) Creates value wrappers for each suggested object type. -
loadAssociationTypeSuggestionWrappers
@NotNull public static @NotNull SmartIntegrationStatusInfoUtils.SuggestionProviderResult<ShadowAssociationTypeDefinitionType,AssociationsSuggestionType> loadAssociationTypeSuggestionWrappers(PageBase pageBase, String resourceOid, Task task, OperationResult result) Creates value wrappers for each suggested association type. -
buildStatusRows
@NotNull public static @NotNull List<StatusRowRecord> buildStatusRows(PageBase pageBase, StatusInfo<?> suggestion, boolean rejectEmptyProgress) Builds display rows depending on the suggestion status. -
buildProgressMessageModel
protected static org.apache.wicket.model.IModel<String> buildProgressMessageModel(@NotNull @NotNull PageBase pageBase, String operationKey, @NotNull @NotNull ActivityProgressInformation child) -
extractEfficiencyFromSuggestedCorrelationItemWrapper
@NotNull public static @NotNull String extractEfficiencyFromSuggestedCorrelationItemWrapper(@NotNull @NotNull PrismContainerValueWrapper<ItemsSubCorrelatorType> valueWrapper) -
extractEfficiencyFromSuggestedMappingItemWrapper
@Nullable public static @Nullable Float extractEfficiencyFromSuggestedMappingItemWrapper(@NotNull @NotNull PrismContainerValueWrapper<MappingType> valueWrapper) -
computeSuggestedObjectsCount
-
showSuggestionInfoPanelPopup
public static void showSuggestionInfoPanelPopup(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @Nullable @Nullable StatusInfo<?> statusInfo) -
handleSuggestionSuspendResumeOperation
public static void handleSuggestionSuspendResumeOperation(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull StatusInfo<?> statusInfo, @NotNull @NotNull Task task, @NotNull @NotNull OperationResult result)
-