public enum NotesMigrationState extends Enum<NotesMigrationState>
This class describes the series of states required to migrate a site from ReviewDb-only to
NoteDb-only. This process has several steps, and covers only a small subset of the theoretically
possible combinations of NotesMigration
return values.
These states are ordered: a one-way migration from ReviewDb to NoteDb will pass through states in the order in which they are defined.
Enum Constant and Description |
---|
NOTE_DB |
READ_WRITE_NO_SEQUENCE |
READ_WRITE_WITH_SEQUENCE_NOTE_DB_PRIMARY |
READ_WRITE_WITH_SEQUENCE_REVIEW_DB_PRIMARY |
REVIEW_DB |
WRITE |
Modifier and Type | Field and Description |
---|---|
static NotesMigrationState |
FINAL |
Modifier and Type | Method and Description |
---|---|
static Optional<NotesMigrationState> |
forConfig(org.eclipse.jgit.lib.Config cfg) |
static Optional<NotesMigrationState> |
forNotesMigration(NotesMigration migration) |
void |
setConfigValues(org.eclipse.jgit.lib.Config cfg) |
String |
toText() |
static NotesMigrationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NotesMigrationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NotesMigrationState REVIEW_DB
public static final NotesMigrationState WRITE
public static final NotesMigrationState READ_WRITE_NO_SEQUENCE
public static final NotesMigrationState READ_WRITE_WITH_SEQUENCE_REVIEW_DB_PRIMARY
public static final NotesMigrationState READ_WRITE_WITH_SEQUENCE_NOTE_DB_PRIMARY
public static final NotesMigrationState NOTE_DB
public static final NotesMigrationState FINAL
public static NotesMigrationState[] values()
for (NotesMigrationState c : NotesMigrationState.values()) System.out.println(c);
public static NotesMigrationState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static Optional<NotesMigrationState> forConfig(org.eclipse.jgit.lib.Config cfg)
public static Optional<NotesMigrationState> forNotesMigration(NotesMigration migration)
public void setConfigValues(org.eclipse.jgit.lib.Config cfg)
public String toText()