Package com.dropbox.core.v2.sharing
Class VisibilityPolicy
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.VisibilityPolicy
 
- 
 public class VisibilityPolicy extends java.lang.Object
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanallowedprotected VisibilityPolicyDisallowedReasondisallowedReasonprotected RequestedVisibilitypolicyprotected AlphaResolvedVisibilityresolvedPolicy
 - 
Constructor SummaryConstructors Constructor Description VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed)NoneVisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed, VisibilityPolicyDisallowedReason disallowedReason)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)booleangetAllowed()Whether the user is permitted to set the visibility to this policy.VisibilityPolicyDisallowedReasongetDisallowedReason()IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.RequestedVisibilitygetPolicy()This is the value to submit when saving the visibility setting.AlphaResolvedVisibilitygetResolvedPolicy()This is what the effective policy would be, if you selected this option.inthashCode()java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
policyprotected final RequestedVisibility policy 
 - 
resolvedPolicyprotected final AlphaResolvedVisibility resolvedPolicy 
 - 
allowedprotected final boolean allowed 
 - 
disallowedReasonprotected final VisibilityPolicyDisallowedReason disallowedReason 
 
- 
 - 
Constructor Detail- 
VisibilityPolicypublic VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed, VisibilityPolicyDisallowedReason disallowedReason) - Parameters:
- policy- This is the value to submit when saving the visibility setting. Must not be- null.
- resolvedPolicy- This is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided. Must not be- null.
- allowed- Whether the user is permitted to set the visibility to this policy.
- disallowedReason- If- getAllowed()is- false, this will provide the reason that the user is not permitted to set the visibility to this policy.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
VisibilityPolicypublic VisibilityPolicy(RequestedVisibility policy, AlphaResolvedVisibility resolvedPolicy, boolean allowed) NoneThe default values for unset fields will be used. - Parameters:
- policy- This is the value to submit when saving the visibility setting. Must not be- null.
- resolvedPolicy- This is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided. Must not be- null.
- allowed- Whether the user is permitted to set the visibility to this policy.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getPolicypublic RequestedVisibility getPolicy() This is the value to submit when saving the visibility setting.- Returns:
- value for this field, never null.
 
 - 
getResolvedPolicypublic AlphaResolvedVisibility getResolvedPolicy() This is what the effective policy would be, if you selected this option. The resolved policy is obtained after considering external effects such as shared folder settings and team policy. This value is guaranteed to be provided.- Returns:
- value for this field, never null.
 
 - 
getAllowedpublic boolean getAllowed() Whether the user is permitted to set the visibility to this policy.- Returns:
- value for this field.
 
 - 
getDisallowedReasonpublic VisibilityPolicyDisallowedReason getDisallowedReason() IfgetAllowed()isfalse, this will provide the reason that the user is not permitted to set the visibility to this policy.- 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
 
 
- 
 
-