Package com.dropbox.core.v2.sharing
Class SharedFolderMetadata
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedFolderMetadataBase
- 
- com.dropbox.core.v2.sharing.SharedFolderMetadata
 
 
- 
 public class SharedFolderMetadata extends SharedFolderMetadataBase The metadata which includes basic information about the shared folder.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSharedFolderMetadata.BuilderBuilder forSharedFolderMetadata.
 - 
Field SummaryFields Modifier and Type Field Description protected AccessInheritanceaccessInheritanceprotected SharedContentLinkMetadatalinkMetadataprotected java.lang.Stringnameprotected java.util.List<FolderPermission>permissionsprotected FolderPolicypolicyprotected java.lang.StringpreviewUrlprotected java.lang.StringsharedFolderIdprotected java.util.DatetimeInvited- 
Fields inherited from class com.dropbox.core.v2.sharing.SharedFolderMetadataBaseaccessType, isInsideTeamFolder, isTeamFolder, ownerDisplayNames, ownerTeam, parentFolderName, parentSharedFolderId, pathLower
 
- 
 - 
Constructor SummaryConstructors Constructor Description SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited)The metadata which includes basic information about the shared folder.SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited, java.util.List<java.lang.String> ownerDisplayNames, Team ownerTeam, java.lang.String parentSharedFolderId, java.lang.String pathLower, java.lang.String parentFolderName, SharedContentLinkMetadata linkMetadata, java.util.List<FolderPermission> permissions, AccessInheritance accessInheritance)The metadata which includes basic information about the shared folder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AccessInheritancegetAccessInheritance()Whether the folder inherits its members from its parent.AccessLevelgetAccessType()The current user's access level for this shared folder.booleangetIsInsideTeamFolder()Whether this folder is inside of a team folder.booleangetIsTeamFolder()Whether this folder is a team folder.SharedContentLinkMetadatagetLinkMetadata()The metadata of the shared content link to this shared folder.java.lang.StringgetName()The name of the this shared folder.java.util.List<java.lang.String>getOwnerDisplayNames()The display names of the users that own the folder.TeamgetOwnerTeam()The team that owns the folder.java.lang.StringgetParentFolderName()Display name for the parent folder.java.lang.StringgetParentSharedFolderId()The ID of the parent shared folder.java.lang.StringgetPathLower()The lower-cased full path of this shared folder.java.util.List<FolderPermission>getPermissions()Actions the current user may perform on the folder and its contents.FolderPolicygetPolicy()Policies governing this shared folder.java.lang.StringgetPreviewUrl()URL for displaying a web preview of the shared folder.java.lang.StringgetSharedFolderId()The ID of the shared folder.java.util.DategetTimeInvited()Timestamp indicating when the current user was invited to this shared folder.inthashCode()static SharedFolderMetadata.BuildernewBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited)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.sharing.SharedFolderMetadataBasenewBuilder
 
- 
 
- 
- 
- 
Field Detail- 
linkMetadataprotected final SharedContentLinkMetadata linkMetadata 
 - 
nameprotected final java.lang.String name 
 - 
permissionsprotected final java.util.List<FolderPermission> permissions 
 - 
policyprotected final FolderPolicy policy 
 - 
previewUrlprotected final java.lang.String previewUrl 
 - 
sharedFolderIdprotected final java.lang.String sharedFolderId 
 - 
timeInvitedprotected final java.util.Date timeInvited 
 - 
accessInheritanceprotected final AccessInheritance accessInheritance 
 
- 
 - 
Constructor Detail- 
SharedFolderMetadatapublic SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited, java.util.List<java.lang.String> ownerDisplayNames, Team ownerTeam, java.lang.String parentSharedFolderId, java.lang.String pathLower, java.lang.String parentFolderName, SharedContentLinkMetadata linkMetadata, java.util.List<FolderPermission> permissions, AccessInheritance accessInheritance) The metadata which includes basic information about the shared folder.Use newBuilder(com.dropbox.core.v2.sharing.AccessLevel,boolean,boolean,java.lang.String,com.dropbox.core.v2.sharing.FolderPolicy,java.lang.String,java.lang.String,java.util.Date)to create instances of this class without specifying values for all optional fields.- Parameters:
- accessType- The current user's access level for this shared folder. Must not be- null.
- isInsideTeamFolder- Whether this folder is inside of a team folder.
- isTeamFolder- Whether this folder is a team folder.
- name- The name of the this shared folder. Must not be- null.
- policy- Policies governing this shared folder. Must not be- null.
- previewUrl- URL for displaying a web preview of the shared folder. Must not be- null.
- sharedFolderId- The ID of the shared folder. Must match pattern "- [-_0-9a-zA-Z:]+" and not be- null.
- timeInvited- Timestamp indicating when the current user was invited to this shared folder. Must not be- null.
- ownerDisplayNames- The display names of the users that own the folder. If the folder is part of a team folder, the display names of the team admins are also included. Absent if the owner display names cannot be fetched. Must not contain a- nullitem.
- ownerTeam- The team that owns the folder. This field is not present if the folder is not owned by a team.
- parentSharedFolderId- The ID of the parent shared folder. This field is present only if the folder is contained within another shared folder. Must match pattern "- [-_0-9a-zA-Z:]+".
- pathLower- The lower-cased full path of this shared folder. Absent for unmounted folders.
- parentFolderName- Display name for the parent folder.
- linkMetadata- The metadata of the shared content link to this shared folder. Absent if there is no link on the folder. This is for an unreleased feature so it may not be returned yet.
- permissions- Actions the current user may perform on the folder and its contents. The set of permissions corresponds to the FolderActions in the request. Must not contain a- nullitem.
- accessInheritance- Whether the folder inherits its members from its parent. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
SharedFolderMetadatapublic SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited) The metadata which includes basic information about the shared folder.The default values for unset fields will be used. - Parameters:
- accessType- The current user's access level for this shared folder. Must not be- null.
- isInsideTeamFolder- Whether this folder is inside of a team folder.
- isTeamFolder- Whether this folder is a team folder.
- name- The name of the this shared folder. Must not be- null.
- policy- Policies governing this shared folder. Must not be- null.
- previewUrl- URL for displaying a web preview of the shared folder. Must not be- null.
- sharedFolderId- The ID of the shared folder. Must match pattern "- [-_0-9a-zA-Z:]+" and not be- null.
- timeInvited- Timestamp indicating when the current user was invited to this shared folder. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAccessTypepublic AccessLevel getAccessType() The current user's access level for this shared folder.- Overrides:
- getAccessTypein class- SharedFolderMetadataBase
- Returns:
- value for this field, never null.
 
 - 
getIsInsideTeamFolderpublic boolean getIsInsideTeamFolder() Whether this folder is inside of a team folder.- Overrides:
- getIsInsideTeamFolderin class- SharedFolderMetadataBase
- Returns:
- value for this field.
 
 - 
getIsTeamFolderpublic boolean getIsTeamFolder() Whether this folder is a team folder.- Overrides:
- getIsTeamFolderin class- SharedFolderMetadataBase
- Returns:
- value for this field.
 
 - 
getNamepublic java.lang.String getName() The name of the this shared folder.- Returns:
- value for this field, never null.
 
 - 
getPolicypublic FolderPolicy getPolicy() Policies governing this shared folder.- Returns:
- value for this field, never null.
 
 - 
getPreviewUrlpublic java.lang.String getPreviewUrl() URL for displaying a web preview of the shared folder.- Returns:
- value for this field, never null.
 
 - 
getSharedFolderIdpublic java.lang.String getSharedFolderId() The ID of the shared folder.- Returns:
- value for this field, never null.
 
 - 
getTimeInvitedpublic java.util.Date getTimeInvited() Timestamp indicating when the current user was invited to this shared folder.- Returns:
- value for this field, never null.
 
 - 
getOwnerDisplayNamespublic java.util.List<java.lang.String> getOwnerDisplayNames() The display names of the users that own the folder. If the folder is part of a team folder, the display names of the team admins are also included. Absent if the owner display names cannot be fetched.- Overrides:
- getOwnerDisplayNamesin class- SharedFolderMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getOwnerTeampublic Team getOwnerTeam() The team that owns the folder. This field is not present if the folder is not owned by a team.- Overrides:
- getOwnerTeamin class- SharedFolderMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getParentSharedFolderIdpublic java.lang.String getParentSharedFolderId() The ID of the parent shared folder. This field is present only if the folder is contained within another shared folder.- Overrides:
- getParentSharedFolderIdin class- SharedFolderMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getPathLowerpublic java.lang.String getPathLower() The lower-cased full path of this shared folder. Absent for unmounted folders.- Overrides:
- getPathLowerin class- SharedFolderMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getParentFolderNamepublic java.lang.String getParentFolderName() Display name for the parent folder.- Overrides:
- getParentFolderNamein class- SharedFolderMetadataBase
- Returns:
- value for this field, or nullif not present.
 
 - 
getLinkMetadatapublic SharedContentLinkMetadata getLinkMetadata() The metadata of the shared content link to this shared folder. Absent if there is no link on the folder. This is for an unreleased feature so it may not be returned yet.- Returns:
- value for this field, or nullif not present.
 
 - 
getPermissionspublic java.util.List<FolderPermission> getPermissions() Actions the current user may perform on the folder and its contents. The set of permissions corresponds to the FolderActions in the request.- Returns:
- value for this field, or nullif not present.
 
 - 
getAccessInheritancepublic AccessInheritance getAccessInheritance() Whether the folder inherits its members from its parent.- Returns:
- value for this field, or nullif not present. Defaults to AccessInheritance.INHERIT.
 
 - 
newBuilderpublic static SharedFolderMetadata.Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.lang.String name, FolderPolicy policy, java.lang.String previewUrl, java.lang.String sharedFolderId, java.util.Date timeInvited) Returns a new builder for creating an instance of this class.- Parameters:
- accessType- The current user's access level for this shared folder. Must not be- null.
- isInsideTeamFolder- Whether this folder is inside of a team folder.
- isTeamFolder- Whether this folder is a team folder.
- name- The name of the this shared folder. Must not be- null.
- policy- Policies governing this shared folder. Must not be- null.
- previewUrl- URL for displaying a web preview of the shared folder. Must not be- null.
- sharedFolderId- The ID of the shared folder. Must match pattern "- [-_0-9a-zA-Z:]+" and not be- null.
- timeInvited- Timestamp indicating when the current user was invited to this shared folder. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- SharedFolderMetadataBase
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- SharedFolderMetadataBase
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- SharedFolderMetadataBase
 
 - 
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- SharedFolderMetadataBase
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-