Package com.dropbox.core.v2.files
Class FolderMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.files.Metadata
- 
- com.dropbox.core.v2.files.FolderMetadata
 
 
- 
 public class FolderMetadata extends Metadata 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFolderMetadata.BuilderBuilder forFolderMetadata.
 - 
Field SummaryFields Modifier and Type Field Description protected java.lang.Stringidprotected java.util.List<PropertyGroup>propertyGroupsprotected java.lang.StringsharedFolderIdprotected FolderSharingInfosharingInfo- 
Fields inherited from class com.dropbox.core.v2.files.Metadataname, parentSharedFolderId, pathDisplay, pathLower, previewUrl
 
- 
 - 
Constructor SummaryConstructors Constructor Description FolderMetadata(java.lang.String name, java.lang.String id)NoneFolderMetadata(java.lang.String name, java.lang.String id, java.lang.String pathLower, java.lang.String pathDisplay, java.lang.String parentSharedFolderId, java.lang.String previewUrl, java.lang.String sharedFolderId, FolderSharingInfo sharingInfo, java.util.List<PropertyGroup> propertyGroups)UsenewBuilder(java.lang.String,java.lang.String)to create instances of this class without specifying values for all optional fields.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetId()A unique identifier for the folder.java.lang.StringgetName()The last component of the path (including extension).java.lang.StringgetParentSharedFolderId()Please useFileSharingInfo.getParentSharedFolderId()orFolderSharingInfo.getParentSharedFolderId()instead.java.lang.StringgetPathDisplay()The cased path to be used for display purposes only.java.lang.StringgetPathLower()The lowercased full path in the user's Dropbox.java.lang.StringgetPreviewUrl()The preview URL of the file.java.util.List<PropertyGroup>getPropertyGroups()Additional information if the file has custom properties with the property template specified.java.lang.StringgetSharedFolderId()Please usegetSharingInfo()instead.FolderSharingInfogetSharingInfo()Set if the folder is contained in a shared folder or is a shared folder mount point.inthashCode()static FolderMetadata.BuildernewBuilder(java.lang.String name, java.lang.String id)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.- 
Methods inherited from class com.dropbox.core.v2.files.MetadatanewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
idprotected final java.lang.String id 
 - 
sharedFolderIdprotected final java.lang.String sharedFolderId 
 - 
sharingInfoprotected final FolderSharingInfo sharingInfo 
 - 
propertyGroupsprotected final java.util.List<PropertyGroup> propertyGroups 
 
- 
 - 
Constructor Detail- 
FolderMetadatapublic FolderMetadata(java.lang.String name, java.lang.String id, java.lang.String pathLower, java.lang.String pathDisplay, java.lang.String parentSharedFolderId, java.lang.String previewUrl, java.lang.String sharedFolderId, FolderSharingInfo sharingInfo, java.util.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 be- null.
- id- A unique identifier for the folder. Must have length of at least 1 and not be- null.
- 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 by- DbxAppFilesRequests.listFolderContinue(String). This field will be null if the file or folder is not mounted.
- parentSharedFolderId- Please use- FileSharingInfo.getParentSharedFolderId()or- FolderSharingInfo.getParentSharedFolderId()instead. Must match pattern "- [-_0-9a-zA-Z:]+".
- previewUrl- The preview URL of the file.
- sharedFolderId- Please use- getSharingInfo()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 a- nullitem.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
FolderMetadatapublic FolderMetadata(java.lang.String name, java.lang.String id)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 be- null.
- id- A unique identifier for the folder. Must have length of at least 1 and not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getNamepublic java.lang.String getName() The last component of the path (including extension). This never contains a slash.
 - 
getIdpublic java.lang.String getId() A unique identifier for the folder.- Returns:
- value for this field, never null.
 
 - 
getPathLowerpublic java.lang.String 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 class- Metadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getPathDisplaypublic java.lang.String 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 class- Metadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getParentSharedFolderIdpublic java.lang.String getParentSharedFolderId() Please useFileSharingInfo.getParentSharedFolderId()orFolderSharingInfo.getParentSharedFolderId()instead.- Overrides:
- getParentSharedFolderIdin class- Metadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getPreviewUrlpublic java.lang.String getPreviewUrl() The preview URL of the file.- Overrides:
- getPreviewUrlin class- Metadata
- Returns:
- value for this field, or nullif not present.
 
 - 
getSharedFolderIdpublic java.lang.String getSharedFolderId() Please usegetSharingInfo()instead.- Returns:
- value for this field, or nullif not present.
 
 - 
getSharingInfopublic FolderSharingInfo 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.
 
 - 
getPropertyGroupspublic java.util.List<PropertyGroup> 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.
 
 - 
newBuilderpublic static FolderMetadata.Builder newBuilder(java.lang.String name, java.lang.String id) 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 be- null.
- id- A unique identifier for the folder. Must have length of at least 1 and not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Overrides:
- toStringMultilinein class- Metadata
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-