Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public final class MigrationReport

  1. Object
  2. MigrationReport

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.

Nested types

enum MigrationReport.OutcomeWhat happened to one record.
class MigrationReport.EntryOne line of the report.

Methods

public boolean isDryRun()Whether nothing was written: the report says what a real run would do.
public List<MigrationReport.Entry> getEntries()
public List<MigrationReport.Entry> getEntries(MigrationReport.Outcome outcome)The entries with this outcome.
public int count(MigrationReport.Outcome outcome)
public boolean isComplete()True when no record was skipped.
public String toString()Returns a string representation of the object.

Inherited methods

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()
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())