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()
    • 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 PolyStringType getNameFromSet(PolyStringType initialName)
      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.
      Returns:
      A PolyStringType representing the name.