Package com.dropbox.core.v2.files
Class FileSharingInfo
java.lang.Object
com.dropbox.core.v2.files.SharingInfo
com.dropbox.core.v2.files.FileSharingInfo
Sharing info for a file which is contained by a shared folder.
-
Field Summary
FieldsFields inherited from class com.dropbox.core.v2.files.SharingInfo
readOnly -
Constructor Summary
ConstructorsConstructorDescriptionFileSharingInfo(boolean readOnly, String parentSharedFolderId) Sharing info for a file which is contained by a shared folder.FileSharingInfo(boolean readOnly, String parentSharedFolderId, String modifiedBy) Sharing info for a file which is contained by a shared folder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe last user who modified the file.ID of shared folder that holds this file.booleanTrue if the file or folder is inside a read-only shared folder.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
modifiedBy
-
Constructor Details
-
FileSharingInfo
public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId, @Nullable 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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FileSharingInfo
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:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
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.
-
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
- Overrides:
equalsin classSharingInfo
-
toString
- Overrides:
toStringin classSharingInfo
-
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
-