Package com.dropbox.core.v2.sharing
Class SharedFolderMetadataBase
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.SharedFolderMetadataBase
 
- 
- Direct Known Subclasses:
- SharedFolderMetadata
 
 public class SharedFolderMetadataBase extends java.lang.ObjectProperties of the shared folder.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classSharedFolderMetadataBase.BuilderBuilder forSharedFolderMetadataBase.
 - 
Field SummaryFields Modifier and Type Field Description protected AccessLevelaccessTypeprotected booleanisInsideTeamFolderprotected booleanisTeamFolderprotected java.util.List<java.lang.String>ownerDisplayNamesprotected TeamownerTeamprotected java.lang.StringparentFolderNameprotected java.lang.StringparentSharedFolderIdprotected java.lang.StringpathLower
 - 
Constructor SummaryConstructors Constructor Description SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)Properties of the shared folder.SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.util.List<java.lang.String> ownerDisplayNames, Team ownerTeam, java.lang.String parentSharedFolderId, java.lang.String pathLower, java.lang.String parentFolderName)Properties of the shared folder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)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.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.inthashCode()static SharedFolderMetadataBase.BuildernewBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder)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.
 
- 
- 
- 
Field Detail- 
accessTypeprotected final AccessLevel accessType 
 - 
isInsideTeamFolderprotected final boolean isInsideTeamFolder 
 - 
isTeamFolderprotected final boolean isTeamFolder 
 - 
ownerDisplayNamesprotected final java.util.List<java.lang.String> ownerDisplayNames 
 - 
ownerTeamprotected final Team ownerTeam 
 - 
parentSharedFolderIdprotected final java.lang.String parentSharedFolderId 
 - 
pathLowerprotected final java.lang.String pathLower 
 - 
parentFolderNameprotected final java.lang.String parentFolderName 
 
- 
 - 
Constructor Detail- 
SharedFolderMetadataBasepublic SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder, java.util.List<java.lang.String> ownerDisplayNames, Team ownerTeam, java.lang.String parentSharedFolderId, java.lang.String pathLower, java.lang.String parentFolderName) Properties of the shared folder.Use newBuilder(com.dropbox.core.v2.sharing.AccessLevel,boolean,boolean)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.
- 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.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
SharedFolderMetadataBasepublic SharedFolderMetadataBase(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) Properties of 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.
- 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.- Returns:
- value for this field, never null.
 
 - 
getIsInsideTeamFolderpublic boolean getIsInsideTeamFolder() Whether this folder is inside of a team folder.- Returns:
- value for this field.
 
 - 
getIsTeamFolderpublic boolean getIsTeamFolder() Whether this folder is a team folder.- Returns:
- value for this field.
 
 - 
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.- 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.- 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.- 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.- Returns:
- value for this field, or nullif not present.
 
 - 
getParentFolderNamepublic java.lang.String getParentFolderName() Display name for the parent folder.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static SharedFolderMetadataBase.Builder newBuilder(AccessLevel accessType, boolean isInsideTeamFolder, boolean isTeamFolder) 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.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String toStringMultiline() Returns a String representation of this object formatted for easier readability.The returned String may contain newlines. - Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-