Package com.dropbox.core.v2.files
Class FileSharingInfo
- java.lang.Object
-
- com.dropbox.core.v2.files.SharingInfo
-
- com.dropbox.core.v2.files.FileSharingInfo
-
public class FileSharingInfo extends SharingInfo
Sharing info for a file which is contained by a shared folder.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
modifiedBy
protected java.lang.String
parentSharedFolderId
-
Fields inherited from class com.dropbox.core.v2.files.SharingInfo
readOnly
-
-
Constructor Summary
Constructors Constructor Description FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId)
Sharing info for a file which is contained by a shared folder.FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId, java.lang.String modifiedBy)
Sharing info for a file which is contained by a shared folder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getModifiedBy()
The last user who modified the file.java.lang.String
getParentSharedFolderId()
ID of shared folder that holds this file.boolean
getReadOnly()
True if the file or folder is inside a read-only shared folder.int
hashCode()
java.lang.String
toString()
java.lang.String
toStringMultiline()
Returns a String representation of this object formatted for easier readability.
-
-
-
Constructor Detail
-
FileSharingInfo
public FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId, java.lang.String modifiedBy)
Sharing info for a file which is contained by a shared folder.- Parameters:
readOnly
- True if the file or folder is inside a read-only shared folder.parentSharedFolderId
- ID of shared folder that holds this file. Must match pattern "[-_0-9a-zA-Z:]+
" and not benull
.modifiedBy
- The last user who modified the file. This field will be null if the user's account has been deleted. Must have length of at least 40 and have length of at most 40.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
FileSharingInfo
public FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId)
Sharing info for a file which is contained by a shared folder.The default values for unset fields will be used.
- Parameters:
readOnly
- True if the file or folder is inside a read-only shared folder.parentSharedFolderId
- ID of shared folder that holds this file. Must match pattern "[-_0-9a-zA-Z:]+
" and not benull
.- Throws:
java.lang.IllegalArgumentException
- If any argument does not meet its preconditions.
-
-
Method Detail
-
getReadOnly
public boolean getReadOnly()
True if the file or folder is inside a read-only shared folder.- Overrides:
getReadOnly
in classSharingInfo
- Returns:
- value for this field.
-
getParentSharedFolderId
public java.lang.String getParentSharedFolderId()
ID of shared folder that holds this file.- Returns:
- value for this field, never
null
.
-
getModifiedBy
public java.lang.String getModifiedBy()
The last user who modified the file. This field will be null if the user's account has been deleted.- Returns:
- value for this field, or
null
if not present.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classSharingInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classSharingInfo
-
toString
public java.lang.String toString()
- Overrides:
toString
in classSharingInfo
-
toStringMultiline
public java.lang.String toStringMultiline()
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Overrides:
toStringMultiline
in classSharingInfo
- Returns:
- Formatted, multiline String representation of this object
-
-