Package com.dropbox.core.v2.sharing
Class FolderPermission
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.FolderPermission
 
- 
 public class FolderPermission extends java.lang.ObjectWhether the user is allowed to take the action on the shared folder.
- 
- 
Field SummaryFields Modifier and Type Field Description protected FolderActionactionprotected booleanallowprotected PermissionDeniedReasonreason
 - 
Constructor SummaryConstructors Constructor Description FolderPermission(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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)FolderActiongetAction()The action that the user may wish to take on the folder.booleangetAllow()True if the user is allowed to take the action.PermissionDeniedReasongetReason()The reason why the user is denied the permission.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
actionprotected final FolderAction action 
 - 
allowprotected final boolean allow 
 - 
reasonprotected final PermissionDeniedReason reason 
 
- 
 - 
Constructor Detail- 
FolderPermissionpublic FolderPermission(FolderAction action, boolean allow, 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 be- null.
- 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:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
FolderPermissionpublic FolderPermission(FolderAction action, boolean allow) 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 be- null.
- allow- True if the user is allowed to take the action.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getActionpublic FolderAction getAction() The action that the user may wish to take on the folder.- Returns:
- value for this field, never null.
 
 - 
getAllowpublic boolean getAllow() True if the user is allowed to take the action.- Returns:
- value for this field.
 
 - 
getReasonpublic PermissionDeniedReason 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.
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object obj) - Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
toStringMultilinepublic java.lang.String 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
 
 
- 
 
-