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.StringmodifiedByprotected java.lang.StringparentSharedFolderId-
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 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
-
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:
getReadOnlyin 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
nullif not present.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classSharingInfo
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classSharingInfo
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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:
toStringMultilinein classSharingInfo- Returns:
- Formatted, multiline String representation of this object
-
-