Package com.dropbox.core.v2.sharing
Class FolderPolicy
- java.lang.Object
- 
- com.dropbox.core.v2.sharing.FolderPolicy
 
- 
 public class FolderPolicy extends java.lang.ObjectA set of policies governing membership and privileges for a shared folder.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classFolderPolicy.BuilderBuilder forFolderPolicy.
 - 
Field SummaryFields Modifier and Type Field Description protected AclUpdatePolicyaclUpdatePolicyprotected MemberPolicymemberPolicyprotected MemberPolicyresolvedMemberPolicyprotected SharedLinkPolicysharedLinkPolicyprotected ViewerInfoPolicyviewerInfoPolicy
 - 
Constructor SummaryConstructors Constructor Description FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)A set of policies governing membership and privileges for a shared folder.FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy, MemberPolicy resolvedMemberPolicy, ViewerInfoPolicy viewerInfoPolicy)A set of policies governing membership and privileges for a shared folder.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)AclUpdatePolicygetAclUpdatePolicy()Who can add and remove members from this shared folder.MemberPolicygetMemberPolicy()Who can be a member of this shared folder, as set on the folder itself.MemberPolicygetResolvedMemberPolicy()Who can be a member of this shared folder, taking into account both the folder and the team-wide policy.SharedLinkPolicygetSharedLinkPolicy()Who links can be shared with.ViewerInfoPolicygetViewerInfoPolicy()Who can enable/disable viewer info for this shared folder.inthashCode()static FolderPolicy.BuildernewBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)Returns a new builder for creating an instance of this class.java.lang.StringtoString()java.lang.StringtoStringMultiline()Returns a String representation of this object formatted for easier readability.
 
- 
- 
- 
Field Detail- 
memberPolicyprotected final MemberPolicy memberPolicy 
 - 
resolvedMemberPolicyprotected final MemberPolicy resolvedMemberPolicy 
 - 
aclUpdatePolicyprotected final AclUpdatePolicy aclUpdatePolicy 
 - 
sharedLinkPolicyprotected final SharedLinkPolicy sharedLinkPolicy 
 - 
viewerInfoPolicyprotected final ViewerInfoPolicy viewerInfoPolicy 
 
- 
 - 
Constructor Detail- 
FolderPolicypublic FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy, MemberPolicy resolvedMemberPolicy, ViewerInfoPolicy viewerInfoPolicy) A set of policies governing membership and privileges for a shared folder.Use newBuilder(com.dropbox.core.v2.sharing.AclUpdatePolicy,com.dropbox.core.v2.sharing.SharedLinkPolicy)to create instances of this class without specifying values for all optional fields.- Parameters:
- aclUpdatePolicy- Who can add and remove members from this shared folder. Must not be- null.
- sharedLinkPolicy- Who links can be shared with. Must not be- null.
- memberPolicy- Who can be a member of this shared folder, as set on the folder itself. The effective policy may differ from this value if the team-wide policy is more restrictive. Present only if the folder is owned by a team.
- resolvedMemberPolicy- Who can be a member of this shared folder, taking into account both the folder and the team-wide policy. This value may differ from that of member_policy if the team-wide policy is more restrictive than the folder policy. Present only if the folder is owned by a team.
- viewerInfoPolicy- Who can enable/disable viewer info for this shared folder.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
FolderPolicypublic FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) A set of policies governing membership and privileges for a shared folder.The default values for unset fields will be used. - Parameters:
- aclUpdatePolicy- Who can add and remove members from this shared folder. Must not be- null.
- sharedLinkPolicy- Who links can be shared with. Must not be- null.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 
- 
 - 
Method Detail- 
getAclUpdatePolicypublic AclUpdatePolicy getAclUpdatePolicy() Who can add and remove members from this shared folder.- Returns:
- value for this field, never null.
 
 - 
getSharedLinkPolicypublic SharedLinkPolicy getSharedLinkPolicy() Who links can be shared with.- Returns:
- value for this field, never null.
 
 - 
getMemberPolicypublic MemberPolicy getMemberPolicy() Who can be a member of this shared folder, as set on the folder itself. The effective policy may differ from this value if the team-wide policy is more restrictive. Present only if the folder is owned by a team.- Returns:
- value for this field, or nullif not present.
 
 - 
getResolvedMemberPolicypublic MemberPolicy getResolvedMemberPolicy() Who can be a member of this shared folder, taking into account both the folder and the team-wide policy. This value may differ from that of member_policy if the team-wide policy is more restrictive than the folder policy. Present only if the folder is owned by a team.- Returns:
- value for this field, or nullif not present.
 
 - 
getViewerInfoPolicypublic ViewerInfoPolicy getViewerInfoPolicy() Who can enable/disable viewer info for this shared folder.- Returns:
- value for this field, or nullif not present.
 
 - 
newBuilderpublic static FolderPolicy.Builder newBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy) Returns a new builder for creating an instance of this class.- Parameters:
- aclUpdatePolicy- Who can add and remove members from this shared folder. Must not be- null.
- sharedLinkPolicy- Who links can be shared with. Must not be- null.
- Returns:
- builder for this class.
- Throws:
- java.lang.IllegalArgumentException- If any argument does not meet its preconditions.
 
 - 
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
 
 
- 
 
-