-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test CreateFolderOperation without server
Signed-off-by: tobiasKaminsky <[email protected]>
- Loading branch information
1 parent
918895a
commit 76dd4e2
Showing
11 changed files
with
328 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
src/main/java/com/owncloud/android/datamodel/FileDataStorageManagerInterface.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
package com.owncloud.android.datamodel; | ||
|
||
import android.accounts.Account; | ||
|
||
import com.owncloud.android.lib.resources.shares.OCShare; | ||
import com.owncloud.android.lib.resources.shares.ShareType; | ||
import com.owncloud.android.lib.resources.status.OCCapability; | ||
|
||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
import androidx.annotation.Nullable; | ||
|
||
public interface FileDataStorageManagerInterface { | ||
|
||
OCFile getFileByPath(String path); | ||
|
||
Account getAccount(); | ||
|
||
@Nullable | ||
OCFile getFileById(long id); | ||
|
||
void saveConflict(OCFile file, String etagInConflict); | ||
|
||
void deleteFileInMediaScan(String path); | ||
|
||
boolean saveFile(OCFile file); | ||
|
||
boolean fileExists(long id); | ||
|
||
List<OCFile> getFolderContent(OCFile f, boolean onlyOnDevice); | ||
|
||
void saveFolder(OCFile folder, Collection<OCFile> updatedFiles, Collection<OCFile> filesToRemove); | ||
|
||
boolean removeFile(OCFile file, boolean removeDBData, boolean removeLocalCopy); | ||
|
||
boolean removeFolder(OCFile folder, boolean removeDBData, boolean removeLocalContent); | ||
|
||
void moveLocalFile(OCFile file, String targetPath, String targetParentPath); | ||
|
||
boolean saveShare(OCShare share); | ||
|
||
List<OCShare> getSharesWithForAFile(String filePath, String accountName); | ||
|
||
void removeShare(OCShare share); | ||
|
||
void copyLocalFile(OCFile file, String targetPath); | ||
|
||
OCShare getFirstShareByPathAndType(String path, ShareType type, String shareWith); | ||
|
||
OCCapability saveCapabilities(OCCapability capability); | ||
|
||
void saveSharesDB(List<OCShare> shares); | ||
|
||
void removeSharesForFile(String remotePath); | ||
|
||
OCShare getShareById(long id); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.