Package com.dropbox.core.v2.sharing
Class SharedFolderMetadata
java.lang.Object
com.dropbox.core.v2.sharing.SharedFolderMetadataBase
com.dropbox.core.v2.sharing.SharedFolderMetadata
The metadata which includes basic information about the shared folder.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final AccessInheritanceprotected final Stringprotected final SharedContentLinkMetadataprotected final Stringprotected final List<FolderPermission> protected final FolderPolicyprotected final Stringprotected final Stringprotected final DateFields inherited from class com.dropbox.core.v2.sharing.SharedFolderMetadataBase
accessType, isInsideTeamFolder, isTeamFolder, ownerDisplayNames, ownerTeam, parentFolderName, parentSharedFolderId, pathDisplay, pathLower -
Constructor Summary
ConstructorsConstructorDescriptionSharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited) The metadata which includes basic information about the shared folder.SharedFolderMetadata(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited, List<String> ownerDisplayNames, Team ownerTeam, String parentSharedFolderId, String pathDisplay, String pathLower, String parentFolderName, SharedContentLinkMetadata linkMetadata, List<FolderPermission> permissions, AccessInheritance accessInheritance, String folderId) The metadata which includes basic information about the shared folder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether the folder inherits its members from its parent.The current user's access level for this shared folder.The ID of the content.booleanWhether this folder is inside of a team folder.booleanWhether this folder is a team folder.The metadata of the shared content link to this shared folder.getName()The name of the this shared folder.The display names of the users that own the folder.The team that owns the folder.Display name for the parent folder.The ID of the parent shared folder.The full path of this shared folder.The lower-cased full path of this shared folder.Actions the current user may perform on the folder and its contents.Policies governing this shared folder.URL for displaying a web preview of the shared folder.The ID of the shared folder.Timestamp indicating when the current user was invited to this shared folder.inthashCode()static SharedFolderMetadata.BuildernewBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, Date timeInvited) 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.sharing.SharedFolderMetadataBase
newBuilder
-
Field Details
-
linkMetadata
-
name
-
permissions
-
policy
-
previewUrl
-
timeInvited
-
accessInheritance
-
folderId
-
-
Constructor Details
-
SharedFolderMetadata
public SharedFolderMetadata(@Nonnull AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, @Nonnull String name, @Nonnull FolderPolicy policy, @Nonnull String previewUrl, @Nonnull String sharedFolderId, @Nonnull 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 benull.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 benull.policy- Policies governing this shared folder. Must not benull.previewUrl- URL for displaying a web preview of the shared folder. Must not benull.sharedFolderId- The ID of the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.timeInvited- Timestamp indicating when the current user was invited to this shared folder. Must not benull.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
Method Details
-
getAccessType
The current user's access level for this shared folder.- Overrides:
getAccessTypein classSharedFolderMetadataBase- Returns:
- value for this field, never
null.
-
getIsInsideTeamFolder
public boolean getIsInsideTeamFolder()Whether this folder is inside of a team folder.- Overrides:
getIsInsideTeamFolderin classSharedFolderMetadataBase- Returns:
- value for this field.
-
getIsTeamFolder
public boolean getIsTeamFolder()Whether this folder is a team folder.- Overrides:
getIsTeamFolderin classSharedFolderMetadataBase- Returns:
- value for this field.
-
getName
The name of the this shared folder.- Returns:
- value for this field, never
null.
-
getPolicy
Policies governing this shared folder.- Returns:
- value for this field, never
null.
-
getPreviewUrl
URL for displaying a web preview of the shared folder.- Returns:
- value for this field, never
null.
-
getTimeInvited
Timestamp indicating when the current user was invited to this shared folder.- Returns:
- value for this field, never
null.
-
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 classSharedFolderMetadataBase- Returns:
- value for this field, or
nullif not present.
-
getOwnerTeam
The team that owns the folder. This field is not present if the folder is not owned by a team.- Overrides:
getOwnerTeamin classSharedFolderMetadataBase- Returns:
- value for this field, or
nullif not present.
-
getPathDisplay
The full path of this shared folder. Absent for unmounted folders.- Overrides:
getPathDisplayin classSharedFolderMetadataBase- Returns:
- value for this field, or
nullif not present.
-
getPathLower
The lower-cased full path of this shared folder. Absent for unmounted folders.- Overrides:
getPathLowerin classSharedFolderMetadataBase- Returns:
- value for this field, or
nullif not present.
-
getParentFolderName
Display name for the parent folder.- Overrides:
getParentFolderNamein classSharedFolderMetadataBase- Returns:
- value for this field, or
nullif not present.
-
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.
-
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.
-
getAccessInheritance
Whether the folder inherits its members from its parent.- Returns:
- value for this field, or
nullif not present. Defaults to AccessInheritance.INHERIT.
-
getFolderId
The ID of the content.- Returns:
- value for this field, or
nullif not present.
-
newBuilder
public static SharedFolderMetadata.Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, String name, FolderPolicy policy, String previewUrl, String sharedFolderId, 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 benull.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 benull.policy- Policies governing this shared folder. Must not benull.previewUrl- URL for displaying a web preview of the shared folder. Must not benull.sharedFolderId- The ID of the shared folder. Must match pattern "[-_0-9a-zA-Z:]+" and not benull.timeInvited- Timestamp indicating when the current user was invited to this shared folder. Must not benull.- Returns:
- builder for this class.
- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
hashCode
public int hashCode()- Overrides:
hashCodein classSharedFolderMetadataBase
-
equals
- Overrides:
equalsin classSharedFolderMetadataBase
-
toString
- Overrides:
toStringin classSharedFolderMetadataBase
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultilinein classSharedFolderMetadataBase- Returns:
- Formatted, multiline String representation of this object
-