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 SummaryFields Modifier and Type Field Description protected java.lang.StringmodifiedByprotected java.lang.StringparentSharedFolderId- 
Fields inherited from class com.dropbox.core.v2.files.SharingInforeadOnly
 
- 
 - 
Constructor SummaryConstructors 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetModifiedBy()The last user who modified the file.java.lang.StringgetParentSharedFolderId()ID of shared folder that holds this file.booleangetReadOnly()True if the file or folder is inside a read-only shared folder.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Constructor Detail- 
FileSharingInfopublic 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 be- null.
- 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.
 
 - 
FileSharingInfopublic 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 be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getReadOnlypublic boolean getReadOnly() True if the file or folder is inside a read-only shared folder.- Overrides:
- getReadOnlyin class- SharingInfo
- Returns:
- value for this field.
 
 - 
getParentSharedFolderIdpublic java.lang.String getParentSharedFolderId() ID of shared folder that holds this file.- Returns:
- value for this field, never null.
 
 - 
getModifiedBypublic 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 nullif not present.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- SharingInfo
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- SharingInfo
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- SharingInfo
 
 - 
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- SharingInfo
- Returns:
- Formatted, multiline String representation of this object
 
 
- 
 
-