diff options
author | Stefan Niedermann <info@niedermann.it> | 2021-03-15 23:35:31 +0300 |
---|---|---|
committer | Niedermann IT-Dienstleistungen <stefan-niedermann@users.noreply.github.com> | 2021-03-15 23:37:11 +0300 |
commit | 9302df71e6c5f49089c2970fc3026e66d88c0c8d (patch) | |
tree | 7462f9139f4ebcd94b7d9f66ad5474f6ed25debe /app | |
parent | fe65e77a63427706f6761c03bf82b0d788028b6b (diff) |
Add javadoc
Signed-off-by: Stefan Niedermann <info@niedermann.it>
Diffstat (limited to 'app')
18 files changed, 58 insertions, 13 deletions
diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_10_11.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_10_11.java index 5da5e0451..e50c8a62e 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_10_11.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_10_11.java @@ -8,6 +8,9 @@ import androidx.sqlite.db.SupportSQLiteDatabase; import it.niedermann.nextcloud.deck.model.enums.DBStatus; +/** + * Removes duplicate labels and ensures uniqueness + */ public class Migration_10_11 extends Migration { public Migration_10_11() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_11_12.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_11_12.java index e20fca274..acd646f63 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_11_12.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_11_12.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for the Single note widget + */ public class Migration_11_12 extends Migration { public Migration_11_12() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_13_14.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_13_14.java index 28737c367..dfb8994e8 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_13_14.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_13_14.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for comment responses + */ public class Migration_13_14 extends Migration { public Migration_13_14() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_14_15.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_14_15.java index b238e1d99..dc07a12dd 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_14_15.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_14_15.java @@ -9,6 +9,10 @@ import androidx.sqlite.db.SupportSQLiteDatabase; import it.niedermann.nextcloud.deck.persistence.sync.SyncWorker; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/570">Reinitializes the background synchronization</a> and + * <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/525">cleans up old shared preferences</a> + */ public class Migration_14_15 extends Migration { @NonNull @@ -21,9 +25,7 @@ public class Migration_14_15 extends Migration { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/570 SyncWorker.update(context); - // https://github.com/stefan-niedermann/nextcloud-deck/issues/525 PreferenceManager .getDefaultSharedPreferences(context) .edit() diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_15_16.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_15_16.java index e04b7a98f..3dd1a3d61 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_15_16.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_15_16.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for Stack widget + */ public class Migration_15_16 extends Migration { public Migration_15_16() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_16_17.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_16_17.java index 2aad359b4..f276fe879 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_16_17.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_16_17.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/573">Adds support for projects</a> + */ public class Migration_16_17 extends Migration { public Migration_16_17() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_17_18.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_17_18.java index 42151e3c6..f42be42af 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_17_18.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_17_18.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/435">Implement ETags for Capabilities endpoint</a> + */ public class Migration_17_18 extends Migration { public Migration_17_18() { @@ -11,7 +14,6 @@ public class Migration_17_18 extends Migration { @Override public void migrate(SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/435 database.execSQL("ALTER TABLE `Account` ADD `etag` TEXT"); } } diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_18_19.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_18_19.java index d45f99c31..072a11541 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_18_19.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_18_19.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/619">Handle unknown project types</a> + */ public class Migration_18_19 extends Migration { public Migration_18_19() { @@ -11,7 +14,6 @@ public class Migration_18_19 extends Migration { @Override public void migrate(SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/619 database.execSQL("DROP INDEX `index_OcsProjectResource_accountId_id`"); database.execSQL("ALTER TABLE `OcsProjectResource` ADD `idString` TEXT"); database.execSQL("CREATE UNIQUE INDEX `index_OcsProjectResource_accountId_id` ON `OcsProjectResource` (`accountId`, `id`, `idString`, `projectId`)"); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_19_20.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_19_20.java index b5abb8945..f6667ec02 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_19_20.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_19_20.java @@ -3,6 +3,11 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Fixes issues with LDAP users when filtering + * https://github.com/stefan-niedermann/nextcloud-deck/issues/492 + * https://github.com/stefan-niedermann/nextcloud-deck/issues/631 + */ public class Migration_19_20 extends Migration { public Migration_19_20() { @@ -11,8 +16,6 @@ public class Migration_19_20 extends Migration { @Override public void migrate(SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/492 - // https://github.com/stefan-niedermann/nextcloud-deck/issues/631 database.execSQL("CREATE TABLE `UserInGroup` (`groupId` INTEGER NOT NULL, `memberId` INTEGER NOT NULL, " + "primary KEY(`groupId`, `memberId`), " + "FOREIGN KEY(`groupId`) REFERENCES `User`(`localId`) ON UPDATE NO ACTION ON DELETE CASCADE, " + diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_20_21.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_20_21.java index 4b182b2ad..36a907b20 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_20_21.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_20_21.java @@ -9,6 +9,9 @@ import androidx.sqlite.db.SupportSQLiteDatabase; import it.niedermann.android.util.ColorUtil; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/556">Store colors as integer in database</a> + */ public class Migration_20_21 extends Migration { public Migration_20_21() { @@ -17,7 +20,6 @@ public class Migration_20_21 extends Migration { @Override public void migrate(SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/556 String suffix = "_new"; { String tableName = "Account"; diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_21_22.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_21_22.java index 73560795a..768de3c5d 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_21_22.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_21_22.java @@ -8,6 +8,9 @@ import androidx.annotation.NonNull; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/715">Migrate from java.util.Date and java.util.Calendar to java.time.*</a> + */ public class Migration_21_22 extends Migration { @NonNull @@ -20,7 +23,6 @@ public class Migration_21_22 extends Migration { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/715 final SharedPreferences.Editor lastSyncPref = context.getApplicationContext().getSharedPreferences("it.niedermann.nextcloud.deck.last_sync", Context.MODE_PRIVATE).edit(); final Cursor cursor = database.query("select id from `Account`"); while (cursor.moveToNext()) { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_22_23.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_22_23.java index 79106db19..240f14ac1 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_22_23.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_22_23.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/359">Implement ETags for synchronization Speed-Up</a> + */ public class Migration_22_23 extends Migration { public Migration_22_23() { @@ -11,7 +14,6 @@ public class Migration_22_23 extends Migration { @Override public void migrate(SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/359 database.execSQL("ALTER TABLE `Account` ADD `boardsEtag` TEXT"); database.execSQL("ALTER TABLE `Board` ADD `etag` TEXT"); database.execSQL("ALTER TABLE `Stack` ADD `etag` TEXT"); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_23_24.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_23_24.java index 363691115..cd0eb094e 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_23_24.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_23_24.java @@ -10,6 +10,9 @@ import androidx.sqlite.db.SupportSQLiteDatabase; import it.niedermann.nextcloud.deck.R; +/** + * <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/392">Dark mode following system default</a> + */ public class Migration_23_24 extends Migration { @NonNull @@ -22,7 +25,6 @@ public class Migration_23_24 extends Migration { @Override public void migrate(@NonNull SupportSQLiteDatabase database) { - // https://github.com/stefan-niedermann/nextcloud-deck/issues/392 final SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferences(context); final String themePref = context.getString(R.string.pref_key_dark_theme); diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_25_26.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_25_26.java index 18f03e14b..37c648d00 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_25_26.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_25_26.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Implement <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/597">Filter widget</a> + */ public class Migration_25_26 extends Migration { public Migration_25_26() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_26_27.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_26_27.java index 93d1d7b84..f8e27ec6b 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_26_27.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_26_27.java @@ -9,6 +9,9 @@ import androidx.sqlite.db.SupportSQLiteDatabase; import it.niedermann.nextcloud.deck.model.widget.filter.EWidgetType; +/** + * @see <a href="https://github.com/stefan-niedermann/nextcloud-deck/issues/767">Migrate Stack Widget to Filter Widget infrastructure</a> + */ public class Migration_26_27 extends Migration { public Migration_26_27() { @@ -25,7 +28,7 @@ public class Migration_26_27 extends Migration { Long accountId = cursor.getLong(2); Long filterWidgetId = cursor.getLong(3); - // widget: + // widget ContentValues values = new ContentValues(); values.put("widgetType", EWidgetType.STACK_WIDGET.getId()); values.put("id", filterWidgetId); @@ -51,8 +54,6 @@ public class Migration_26_27 extends Migration { values.put("filterBoardId", filterWidgetBoardId); values.put("stackId", localStackId); database.insert("FilterWidgetStack", SQLiteDatabase.CONFLICT_NONE, values); - - } // cleanup diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_27_28.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_27_28.java index cc5780bf0..3f588e4f4 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_27_28.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_27_28.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for new attachment types with Deck server <code>1.3.0</code> + */ public class Migration_27_28 extends Migration { public Migration_27_28() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_8_9.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_8_9.java index 9660f8b83..4840dc050 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_8_9.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_8_9.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for comments + */ public class Migration_8_9 extends Migration { public Migration_8_9() { diff --git a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_9_10.java b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_9_10.java index 5e020844a..59e9200f4 100644 --- a/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_9_10.java +++ b/app/src/main/java/it/niedermann/nextcloud/deck/persistence/sync/adapters/db/migration/Migration_9_10.java @@ -3,6 +3,9 @@ package it.niedermann.nextcloud.deck.persistence.sync.adapters.db.migration; import androidx.room.migration.Migration; import androidx.sqlite.db.SupportSQLiteDatabase; +/** + * Adds support for account colors, deck server versions and Nextcloud maintenance mode + */ public class Migration_9_10 extends Migration { public Migration_9_10() { |