java.lang.Object
com.evolveum.midpoint.gui.impl.page.admin.resource.component.wizard.schemaHandling.objectType.smart.SmartIntegrationStatusInfoUtils

public class SmartIntegrationStatusInfoUtils extends Object
  • Constructor Details

    • SmartIntegrationStatusInfoUtils

      public SmartIntegrationStatusInfoUtils()
  • Method Details

    • loadObjectTypeSuggestions

      @Nullable public static @Nullable List<com.evolveum.midpoint.smart.api.info.StatusInfo<ObjectTypesSuggestionType>> loadObjectTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull com.evolveum.midpoint.task.api.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<com.evolveum.midpoint.smart.api.info.StatusInfo<AssociationsSuggestionType>> loadAssociationSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull com.evolveum.midpoint.task.api.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 com.evolveum.midpoint.smart.api.info.StatusInfo<ObjectTypesSuggestionType> loadObjectClassObjectTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull QName objectClassName, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
      Retrieves the latest available object types suggestion for a given object class. Returns null if there are no suggestions.
    • loadCorrelationTypeSuggestions

      @Nullable public static @Nullable List<com.evolveum.midpoint.smart.api.info.StatusInfo<CorrelationSuggestionsType>> loadCorrelationTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull com.evolveum.midpoint.task.api.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 com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
    • loadObjectTypeMappingTypeSuggestions

      @Nullable public static @Nullable List<com.evolveum.midpoint.smart.api.info.StatusInfo<MappingsSuggestionType>> loadObjectTypeMappingTypeSuggestions(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull MappingDirection mappingDirection, @Nullable @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
      Loads the mapping type suggestion statuses for the given resource.

      This method queries the SmartIntegrationService for mapping suggestion operation statuses related to the specified resourceOid. If an objectTypeIdentification is provided, the results are filtered to include only those suggestions that do not match the specified kind and intent.

    • loadObjectTypeMappingTypeSuggestion

      @Nullable public static @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<MappingsSuggestionType> loadObjectTypeMappingTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @Nullable @Nullable ResourceObjectTypeIdentification objectTypeIdentification, @NotNull @NotNull MappingDirection mappingDirection, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
      Loads the mapping type suggestion status for the given resource.

      This method queries the SmartIntegrationService for mapping suggestion operation statuses related to the specified resourceOid. Although the service may return multiple statuses, only the first one is relevant and returned here.

    • loadAssociationTypeSuggestion

      @Nullable public static @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<AssociationsSuggestionType> loadAssociationTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
    • loadCorrelationTypeSuggestion

      @Nullable public static @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<CorrelationSuggestionsType> loadCorrelationTypeSuggestion(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull String resourceOid, @NotNull @NotNull ResourceObjectTypeIdentification resourceObjectTypeIdentification, @NotNull @NotNull com.evolveum.midpoint.task.api.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 com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)
    • isNotCompletedSuggestion

      public static boolean isNotCompletedSuggestion(@Nullable @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<?> statusInfo)
      Checks if the suggestion is not completed (in progress or fatal error).
    • isSuggestionExists

      public static boolean isSuggestionExists(@Nullable @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<?> statusInfo)
    • 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, com.evolveum.midpoint.task.api.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, com.evolveum.midpoint.task.api.Task task, OperationResult result)
      Creates value wrappers for each suggested association type.
    • buildStatusRows

      @NotNull public static @NotNull List<StatusRowRecord> buildStatusRows(PageBase pageBase, com.evolveum.midpoint.smart.api.info.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

      public static int computeSuggestedObjectsCount(com.evolveum.midpoint.smart.api.info.StatusInfo<?> statusInfo)
    • showSuggestionInfoPanelPopup

      public static void showSuggestionInfoPanelPopup(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull org.apache.wicket.ajax.AjaxRequestTarget target, @Nullable @Nullable com.evolveum.midpoint.smart.api.info.StatusInfo<?> statusInfo)
    • handleSuggestionSuspendResumeOperation

      public static void handleSuggestionSuspendResumeOperation(@NotNull @NotNull PageBase pageBase, @NotNull @NotNull com.evolveum.midpoint.smart.api.info.StatusInfo<?> statusInfo, @NotNull @NotNull com.evolveum.midpoint.task.api.Task task, @NotNull @NotNull OperationResult result)