public class FileSharingInfo extends SharingInfo
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
modifiedBy |
protected java.lang.String |
parentSharedFolderId |
readOnly
Constructor and 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.
|
Modifier and Type | Method and 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.
|
protected final java.lang.String parentSharedFolderId
protected final java.lang.String modifiedBy
public FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId, java.lang.String modifiedBy)
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FileSharingInfo(boolean readOnly, java.lang.String parentSharedFolderId)
The default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public boolean getReadOnly()
getReadOnly
in class SharingInfo
public java.lang.String getParentSharedFolderId()
null
.public java.lang.String getModifiedBy()
null
if not present.public int hashCode()
hashCode
in class SharingInfo
public boolean equals(java.lang.Object obj)
equals
in class SharingInfo
public java.lang.String toString()
toString
in class SharingInfo
public java.lang.String toStringMultiline()
The returned String may contain newlines.
toStringMultiline
in class SharingInfo