From d3924f13fabff8310aed4670b7d2a94c244ccfb2 Mon Sep 17 00:00:00 2001 From: tobiasKaminsky Date: Thu, 15 Jun 2023 14:41:18 +0200 Subject: [PATCH] wip Signed-off-by: tobiasKaminsky --- .idea/codeStyles/Project.xml | 2 - gradle/wrapper/gradle-wrapper.properties | 6 +- .../accounts/ExternalLinksOperationIT.kt | 5 +- .../DashboardGetWidgetItemsRemoteOperation.kt | 4 +- .../DashboardListWidgetsRemoteOperation.kt | 4 +- ...irectEditingCreateFileRemoteOperation.java | 4 +- .../DirectEditingOpenFileRemoteOperation.java | 4 +- .../files/ToggleFileLockRemoteOperation.kt | 4 +- .../GetGroupfoldersRemoteOperation.kt | 4 +- .../profile/GetHoverCardRemoteOperation.kt | 4 +- .../UnifiedSearchProvidersRemoteOperation.kt | 4 +- .../search/UnifiedSearchRemoteOperation.kt | 4 +- ...WorkspaceDirectEditingRemoteOperation.java | 4 +- .../com/nextcloud/common/NextcloudClient.kt | 4 +- .../accounts/ExternalLinksOperation.java | 48 ++-- .../operations/LegacyRemoteOperation.kt | 192 ++++++++++++++ .../operations/NextcloudRemoteOperation.kt | 88 ++++++ .../common/operations/RemoteOperation.java | 251 ++---------------- .../OCSNextcloudRemoteOperation.java | 63 +++++ .../lib/resources/OCSRemoteOperation.java | 4 +- .../GetActivitiesRemoteOperation.java | 87 +----- .../comments/CommentFileRemoteOperation.java | 4 +- .../MarkCommentsAsReadRemoteOperation.java | 4 +- .../e2ee/GetMetadataRemoteOperation.java | 4 +- .../e2ee/LockFileRemoteOperation.java | 4 +- .../e2ee/StoreMetadataRemoteOperation.java | 4 +- .../e2ee/ToggleEncryptionRemoteOperation.java | 3 +- .../e2ee/UnlockFileRemoteOperation.java | 4 +- .../e2ee/UpdateMetadataRemoteOperation.java | 4 +- .../files/CheckEtagRemoteOperation.java | 4 +- .../resources/files/CommentFileOperation.java | 63 +++++ .../files/CopyFileRemoteOperation.java | 4 +- .../CreateFileFromTemplateOperation.java | 95 +++++++ .../files/CreateFolderRemoteOperation.java | 6 +- .../files/DownloadFileRemoteOperation.java | 4 +- .../files/ExistenceCheckRemoteOperation.java | 4 +- .../files/FetchTemplateRemoteOperation.java | 104 ++++++++ .../files/MoveFileRemoteOperation.java | 4 +- .../files/ReadFileRemoteOperation.java | 4 +- .../ReadFileVersionsRemoteOperation.java | 4 +- .../files/ReadFolderRemoteOperation.java | 3 +- .../files/RemoveFileRemoteOperation.java | 4 +- .../files/RenameFileRemoteOperation.java | 4 +- .../RestoreFileVersionRemoteOperation.java | 4 +- ...chDocumentsCreateAssetRemoteOperation.java | 91 +++++++ .../files/RichDocumentsTemplateType.kt | 26 ++ .../RichDocumentsUrlRemoteOperation.java | 91 +++++++ .../files/SearchRemoteOperation.java | 4 +- .../files/StreamMediaFileRemoteOperation.java | 91 +++++++ .../android/lib/resources/files/Template.kt | 46 ++++ .../files/ToggleFavoriteRemoteOperation.java | 4 +- .../files/UploadFileRemoteOperation.java | 4 +- ...DeleteAllNotificationsRemoteOperation.java | 4 +- .../DeleteNotificationRemoteOperation.java | 4 +- .../GetNotificationRemoteOperation.java | 4 +- .../GetNotificationsRemoteOperation.java | 4 +- ...ccountDeviceForNotificationsOperation.java | 4 +- ...ccountDeviceForNotificationsOperation.java | 4 +- .../shares/CreateShareRemoteOperation.java | 4 +- .../shares/GetShareRemoteOperation.java | 4 +- .../shares/GetShareesRemoteOperation.java | 4 +- .../GetSharesForFileRemoteOperation.java | 4 +- .../shares/GetSharesRemoteOperation.java | 4 +- .../shares/RemoveShareRemoteOperation.java | 4 +- .../shares/UpdateShareRemoteOperation.java | 4 +- .../GetCapabilitiesRemoteOperation.java | 91 +------ .../status/GetStatusRemoteOperation.java | 4 +- .../tags/CreateTagRemoteOperation.kt | 4 +- .../resources/tags/GetTagsRemoteOperation.kt | 4 +- .../resources/tags/PutTagRemoteOperation.kt | 4 +- .../EmptyTrashbinRemoteOperation.java | 4 +- .../ReadTrashbinFolderRemoteOperation.java | 4 +- .../RemoveTrashbinFileRemoteOperation.java | 4 +- .../RestoreTrashbinFileRemoteOperation.java | 4 +- .../users/CheckRemoteWipeRemoteOperation.java | 4 +- .../ClearStatusMessageRemoteOperation.java | 4 +- .../users/ConvertAppTokenRemoteOperation.java | 4 +- .../DeleteAppPasswordRemoteOperation.java | 4 +- .../users/DeletePrivateKeyOperation.kt | 4 +- .../users/DeletePublicKeyOperation.java | 4 +- .../GetPredefinedStatusesRemoteOperation.java | 4 +- .../users/GetPublicKeyOperation.java | 4 +- .../users/GetStatusRemoteOperation.java | 4 +- .../users/GetUserAvatarRemoteOperation.java | 4 +- .../users/GetUserInfoRemoteOperation.java | 4 +- .../RemoteWipeSuccessRemoteOperation.java | 4 +- .../lib/resources/users/SendCSROperation.java | 4 +- ...nedCustomStatusMessageRemoteOperation.java | 6 +- .../users/SetStatusRemoteOperation.java | 4 +- ...nedCustomStatusMessageRemoteOperation.java | 4 +- .../users/SetUserInfoRemoteOperation.java | 4 +- .../users/StorePrivateKeyOperation.java | 4 +- scripts/analysis/findbugs-results.txt | 2 +- 93 files changed, 1158 insertions(+), 582 deletions(-) create mode 100644 library/src/main/java/com/owncloud/android/lib/common/operations/LegacyRemoteOperation.kt create mode 100644 library/src/main/java/com/owncloud/android/lib/common/operations/NextcloudRemoteOperation.kt create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/OCSNextcloudRemoteOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/CommentFileOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/CreateFileFromTemplateOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/FetchTemplateRemoteOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/RichDocumentsCreateAssetRemoteOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/RichDocumentsTemplateType.kt create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/RichDocumentsUrlRemoteOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/StreamMediaFileRemoteOperation.java create mode 100644 library/src/main/java/com/owncloud/android/lib/resources/files/Template.kt diff --git a/.idea/codeStyles/Project.xml b/.idea/codeStyles/Project.xml index c7699d0ba..840b98f89 100644 --- a/.idea/codeStyles/Project.xml +++ b/.idea/codeStyles/Project.xml @@ -6,8 +6,6 @@ -