Class MigrationReport

java.lang.Object
com.codename1.backend.security.migration.MigrationReport

public final class MigrationReport extends Object

What an IdentityMigration did with every record it was given, and what it could not carry at all.

Every record lands in exactly one entry: migrated as it was, migrated with an action its owner must take (a password that has to be reset, a second factor to enrol again), or skipped with the reason. Nothing is dropped without an entry, and nothing in an entry is secret -- usernames, providers, credential ids and reasons, never a hash, a key or a TOTP seed.

  • Method Details

    • isDryRun

      public boolean isDryRun()
      Whether nothing was written: the report says what a real run would do.
    • getEntries

      public List<MigrationReport.Entry> getEntries()
    • getEntries

      public List<MigrationReport.Entry> getEntries(MigrationReport.Outcome outcome)
      The entries with this outcome.
    • count

      public int count(MigrationReport.Outcome outcome)
    • isComplete

      public boolean isComplete()
      True when no record was skipped.
    • toString

      public String toString()
      Description copied from class: Object
      Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method. The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of: getClass().getName() + '@' + Integer.toHexString(hashCode())
      Overrides:
      toString in class Object