java.lang.Object
com.evolveum.midpoint.ninja.action.mining.generator.context.ImportAction

public class ImportAction extends Object
Class responsible for importing initial objects into the Midpoint system.

Part of RBAC Testing Data, which provides testing data for role mining and other RBAC-related processes.

  • Constructor Details

  • Method Details

    • executeImport

      public void executeImport()
    • importUserAndResolveAuxRoles

      public static void importUserAndResolveAuxRoles(@NotNull @NotNull UserType user, @NotNull @NotNull com.evolveum.midpoint.repo.api.RepositoryService repositoryService, @NotNull @NotNull GeneratorOptions generatorOptions, @NotNull @NotNull OperationResult result, @NotNull @NotNull Log log)
    • generateAndImportUsers

      public void generateAndImportUsers(int userCount)
    • remakeUsersBusinessRoles

      public static void remakeUsersBusinessRoles(@NotNull @NotNull NinjaContext context, @NotNull @NotNull OperationResult result, @NotNull @NotNull GeneratorOptions generatorOptions, @Nullable @Nullable ObjectQuery query, @Nullable @Nullable Collection<SelectorOptions<GetOperationOptions>> options)
      Remakes business roles for their inducements on users.

      This method replaces business roles with their inducements.

      Parameters:
      context - The Ninja context.
      result - The operation result used for tracking the operation.
      query - The query for searching users.
      options - The options for retrieving users.
      Throws:
      RuntimeException - If an error occurs during the process.
    • getNameFromSet

      public static PolyStringType getNameFromSet(PolyStringType initialName, Set<String> names)
      Gets a name from the set of extracted names from csv and removes it from the set due to objects name collision.
      Parameters:
      initialName - The initial name to use if the set is empty.
      names - The set of extracted names from csv.
      Returns:
      A PolyStringType representing the name.
    • addExtensionValue

      public static <V> void addExtensionValue(Containerable extContainer, String itemName, V... values)