Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@
public enum FileStatus {
// union files.FileStatus (files.stone)
ACTIVE,
/**
* Field is deprecated. Deprecated. Deleted-file search does not work and
* should not be used. Use {@link DbxUserFilesRequests#listFolder(String)}
* with {@link ListFolderArg#getIncludeDeleted} set to {@code true} to
* enumerate deleted entries; this does not provide equivalent full-text
* search.
*/
DELETED,
/**
* Catch-all used for unknown tag values returned by the Dropbox servers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,11 @@ public class SearchOptions {
* be greater than or equal to 1 and be less than or equal to 1000.
* @param orderBy Specified property of the order of search results. By
* default, results are sorted by relevance.
* @param fileStatus Restricts search to the given file status. Must not be
* {@code null}.
* @param fileStatus Restricts search to the given file status. The {@link
* FileStatus#DELETED} value is deprecated and should not be used. This
* also applies to searches continued with {@link
* DbxUserFilesRequests#searchContinueV2(String)}. Must not be {@code
* null}.
* @param filenameOnly Restricts search to only match on filenames.
* @param fileExtensions Restricts search to only the extensions specified.
* Only supported for active file search. Must not contain a {@code
Expand Down Expand Up @@ -153,7 +156,9 @@ public SearchOrderBy getOrderBy() {
}

/**
* Restricts search to the given file status.
* Restricts search to the given file status. The {@link FileStatus#DELETED}
* value is deprecated and should not be used. This also applies to searches
* continued with {@link DbxUserFilesRequests#searchContinueV2(String)}.
*
* @return value for this field, or {@code null} if not present. Defaults to
* FileStatus.ACTIVE.
Expand Down Expand Up @@ -311,9 +316,12 @@ public Builder withOrderBy(SearchOrderBy orderBy) {
* <p> If left unset or set to {@code null}, defaults to {@code
* FileStatus.ACTIVE}. </p>
*
* @param fileStatus Restricts search to the given file status. Must
* not be {@code null}. Defaults to {@code FileStatus.ACTIVE} when
* set to {@code null}.
* @param fileStatus Restricts search to the given file status. The
* {@link FileStatus#DELETED} value is deprecated and should not be
* used. This also applies to searches continued with {@link
* DbxUserFilesRequests#searchContinueV2(String)}. Must not be
* {@code null}. Defaults to {@code FileStatus.ACTIVE} when set to
* {@code null}.
*
* @return this builder
*
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/stone
Submodule stone updated 1 files
+8 −1 files.stone
Loading