Package com.dropbox.core.v2.sharing
Class FolderPermission
java.lang.Object
com.dropbox.core.v2.sharing.FolderPermission
Whether the user is allowed to take the action on the shared folder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final FolderActionprotected final booleanprotected final PermissionDeniedReason -
Constructor Summary
ConstructorsConstructorDescriptionFolderPermission(FolderAction action, boolean allow) Whether the user is allowed to take the action on the shared folder.FolderPermission(FolderAction action, boolean allow, PermissionDeniedReason reason) Whether the user is allowed to take the action on the shared folder. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe action that the user may wish to take on the folder.booleangetAllow()True if the user is allowed to take the action.The reason why the user is denied the permission.inthashCode()toString()Returns a String representation of this object formatted for easier readability.
-
Field Details
-
action
-
allow
protected final boolean allow -
reason
-
-
Constructor Details
-
FolderPermission
public FolderPermission(@Nonnull FolderAction action, boolean allow, @Nullable PermissionDeniedReason reason) Whether the user is allowed to take the action on the shared folder.- Parameters:
action- The action that the user may wish to take on the folder. Must not benull.allow- True if the user is allowed to take the action.reason- The reason why the user is denied the permission. Not present if the action is allowed, or if no reason is available.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
FolderPermission
Whether the user is allowed to take the action on the shared folder.The default values for unset fields will be used.
- Parameters:
action- The action that the user may wish to take on the folder. Must not benull.allow- True if the user is allowed to take the action.- Throws:
IllegalArgumentException- If any argument does not meet its preconditions.
-
-
Method Details
-
getAction
The action that the user may wish to take on the folder.- Returns:
- value for this field, never
null.
-
getAllow
public boolean getAllow()True if the user is allowed to take the action.- Returns:
- value for this field.
-
getReason
The reason why the user is denied the permission. Not present if the action is allowed, or if no reason is available.- Returns:
- value for this field, or
nullif not present.
-
hashCode
public int hashCode() -
equals
-
toString
-
toStringMultiline
Returns a String representation of this object formatted for easier readability.The returned String may contain newlines.
- Returns:
- Formatted, multiline String representation of this object
-