public class SharedFolderMetadata extends SharedFolderMetadataBase
Modifier and Type | Class and Description |
---|---|
static class |
SharedFolderMetadata.Builder
Builder for
SharedFolderMetadata . |
Modifier and Type | Field and Description |
---|---|
protected AccessInheritance |
accessInheritance |
protected SharedContentLinkMetadata |
linkMetadata |
protected java.lang.String |
name |
protected java.util.List<FolderPermission> |
permissions |
protected FolderPolicy |
policy |
protected java.lang.String |
previewUrl |
protected java.lang.String |
sharedFolderId |
protected java.util.Date |
timeInvited |
accessType, isInsideTeamFolder, isTeamFolder, ownerDisplayNames, ownerTeam, parentFolderName, parentSharedFolderId, pathLower
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AccessInheritance |
getAccessInheritance()
Whether the folder inherits its members from its parent.
|
AccessLevel |
getAccessType()
The current user's access level for this shared folder.
|
boolean |
getIsInsideTeamFolder()
Whether this folder is inside of a team folder.
|
boolean |
getIsTeamFolder()
Whether this folder is a team folder.
|
SharedContentLinkMetadata |
getLinkMetadata()
The metadata of the shared content link to this shared folder.
|
java.lang.String |
getName()
The name of the this shared folder.
|
java.util.List<java.lang.String> |
getOwnerDisplayNames()
The display names of the users that own the folder.
|
Team |
getOwnerTeam()
The team that owns the folder.
|
java.lang.String |
getParentFolderName()
Display name for the parent folder.
|
java.lang.String |
getParentSharedFolderId()
The ID of the parent shared folder.
|
java.lang.String |
getPathLower()
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.
|
FolderPolicy |
getPolicy()
Policies governing this shared folder.
|
java.lang.String |
getPreviewUrl()
URL for displaying a web preview of the shared folder.
|
java.lang.String |
getSharedFolderId()
The ID of the shared folder.
|
java.util.Date |
getTimeInvited()
Timestamp indicating when the current user was invited to this shared
folder.
|
int |
hashCode() |
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.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
newBuilder
protected final SharedContentLinkMetadata linkMetadata
protected final java.lang.String name
protected final java.util.List<FolderPermission> permissions
protected final FolderPolicy policy
protected final java.lang.String previewUrl
protected final java.lang.String sharedFolderId
protected final java.util.Date timeInvited
protected final AccessInheritance accessInheritance
public 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)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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 null
item.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 null
item.accessInheritance
- Whether the folder inherits its members from
its parent. Must not be null
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public 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 default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AccessLevel getAccessType()
getAccessType
in class SharedFolderMetadataBase
null
.public boolean getIsInsideTeamFolder()
getIsInsideTeamFolder
in class SharedFolderMetadataBase
public boolean getIsTeamFolder()
getIsTeamFolder
in class SharedFolderMetadataBase
public java.lang.String getName()
null
.public FolderPolicy getPolicy()
null
.public java.lang.String getPreviewUrl()
null
.public java.lang.String getSharedFolderId()
null
.public java.util.Date getTimeInvited()
null
.public java.util.List<java.lang.String> getOwnerDisplayNames()
getOwnerDisplayNames
in class SharedFolderMetadataBase
null
if not present.public Team getOwnerTeam()
getOwnerTeam
in class SharedFolderMetadataBase
null
if not present.public java.lang.String getParentSharedFolderId()
getParentSharedFolderId
in class SharedFolderMetadataBase
null
if not present.public java.lang.String getPathLower()
getPathLower
in class SharedFolderMetadataBase
null
if not present.public java.lang.String getParentFolderName()
getParentFolderName
in class SharedFolderMetadataBase
null
if not present.public SharedContentLinkMetadata getLinkMetadata()
null
if not present.public java.util.List<FolderPermission> getPermissions()
null
if not present.public AccessInheritance getAccessInheritance()
null
if not present. Defaults to
AccessInheritance.INHERIT.public 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)
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class SharedFolderMetadataBase
public boolean equals(java.lang.Object obj)
equals
in class SharedFolderMetadataBase
public java.lang.String toString()
toString
in class SharedFolderMetadataBase
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class SharedFolderMetadataBase