Package com.dropbox.core.v2.files
Class FolderMetadata
java.lang.Object
com.dropbox.core.v2.files.Metadata
com.dropbox.core.v2.files.FolderMetadata
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Stringprotected final List<PropertyGroup> protected final Stringprotected final FolderSharingInfoFields inherited from class com.dropbox.core.v2.files.Metadata
name, parentSharedFolderId, pathDisplay, pathLower, previewUrl -
Constructor Summary
ConstructorsConstructorDescriptionFolderMetadata(String name, String id) NoneFolderMetadata(String name, String id, String pathLower, String pathDisplay, String parentSharedFolderId, String previewUrl, String sharedFolderId, FolderSharingInfo sharingInfo, List<PropertyGroup> propertyGroups) UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()A unique identifier for the folder.getName()The last component of the path (including extension).Deprecated.The cased path to be used for display purposes only.The lowercased full path in the user's Dropbox.The preview URL of the file.Additional information if the file has custom properties with the property template specified.Deprecated.Set if the folder is contained in a shared folder or is a shared folder mount point.inthashCode()static FolderMetadata.BuildernewBuilder(String name, String id) Returns a new builder for creating an instance of this class.toString()Returns a String representation of this object formatted for easier readability.Methods inherited from class com.dropbox.core.v2.files.Metadata
newBuilder
-
Field Details
-
id
-
sharingInfo
-
propertyGroups
-
-
Constructor Details
-
FolderMetadata
public FolderMetadata(@Nonnull String name, @Nonnull String id, @Nullable String pathLower, @Nullable String pathDisplay, @Nullable String parentSharedFolderId, @Nullable String previewUrl, @Nullable String sharedFolderId, @Nullable FolderSharingInfo sharingInfo, @Nullable List<PropertyGroup> propertyGroups) UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.id- A unique identifier for the folder. Must have length of at least 1 and not benull.pathLower- The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.pathDisplay- The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned byDbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.parentSharedFolderId- Field is deprecated. Please useFileSharingInfo.getParentSharedFolderId()orFolderSharingInfo.getParentSharedFolderId()instead. Must match pattern "[-_0-9a-zA-Z:]+".previewUrl- The preview URL of the file.sharedFolderId- Field is deprecated. Please usegetSharingInfo()instead. Must match pattern "[-_0-9a-zA-Z:]+".sharingInfo- Set if the folder is contained in a shared folder or is a shared folder mount point.propertyGroups- Additional information if the file has custom properties with the property template specified. Note that only properties associated with user-owned templates, not team-owned templates, can be attached to folders. Must not contain anullitem.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FolderMetadata
NoneThe default values for unset fields will be used.
- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.id- A unique identifier for the folder. Must have length of at least 1 and not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getName
The last component of the path (including extension). This never contains a slash. -
getId
A unique identifier for the folder.- Returns:
- value for this field, never
null.
-
getPathLower
The lowercased full path in the user's Dropbox. This always starts with a slash. This field will be null if the file or folder is not mounted.- Overrides:
getPathLowerin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getPathDisplay
The cased path to be used for display purposes only. In rare instances the casing will not correctly match the user's filesystem, but this behavior will match the path provided in the Core API v1, and at least the last path component will have the correct casing. Changes to only the casing of paths won't be returned byDbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.- Overrides:
getPathDisplayin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getPreviewUrl
The preview URL of the file.- Overrides:
getPreviewUrlin classMetadata- Returns:
- value for this field, or
nullif not present.
-
getSharingInfo
Set if the folder is contained in a shared folder or is a shared folder mount point.- Returns:
- value for this field, or
nullif not present.
-
getPropertyGroups
Additional information if the file has custom properties with the property template specified. Note that only properties associated with user-owned templates, not team-owned templates, can be attached to folders.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
Returns a new builder for creating an instance of this class.- Parameters:
name- The last component of the path (including extension). This never contains a slash. Must not benull.id- A unique identifier for the folder. Must have length of at least 1 and not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classMetadata- Returns:
- Formatted, multiline String representation of this object
-