public class FolderPolicy
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
FolderPolicy.Builder
Builder for
FolderPolicy . |
Modifier and Type | Field and Description |
---|---|
protected AclUpdatePolicy |
aclUpdatePolicy |
protected MemberPolicy |
memberPolicy |
protected MemberPolicy |
resolvedMemberPolicy |
protected SharedLinkPolicy |
sharedLinkPolicy |
protected ViewerInfoPolicy |
viewerInfoPolicy |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
AclUpdatePolicy |
getAclUpdatePolicy()
Who can add and remove members from this shared folder.
|
MemberPolicy |
getMemberPolicy()
Who can be a member of this shared folder, as set on the folder itself.
|
MemberPolicy |
getResolvedMemberPolicy()
Who can be a member of this shared folder, taking into account both the
folder and the team-wide policy.
|
SharedLinkPolicy |
getSharedLinkPolicy()
Who links can be shared with.
|
ViewerInfoPolicy |
getViewerInfoPolicy()
Who can enable/disable viewer info for this shared folder.
|
int |
hashCode() |
static FolderPolicy.Builder |
newBuilder(AclUpdatePolicy aclUpdatePolicy,
SharedLinkPolicy sharedLinkPolicy)
Returns a new builder for creating an instance of this class.
|
java.lang.String |
toString() |
java.lang.String |
toStringMultiline()
Returns a String representation of this object formatted for easier
readability.
|
protected final MemberPolicy memberPolicy
protected final MemberPolicy resolvedMemberPolicy
protected final AclUpdatePolicy aclUpdatePolicy
protected final SharedLinkPolicy sharedLinkPolicy
protected final ViewerInfoPolicy viewerInfoPolicy
public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy, MemberPolicy memberPolicy, MemberPolicy resolvedMemberPolicy, ViewerInfoPolicy viewerInfoPolicy)
Use newBuilder
to create instances of this class without
specifying values for all optional fields.
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.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public FolderPolicy(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
The default values for unset fields will be used.
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public AclUpdatePolicy getAclUpdatePolicy()
null
.public SharedLinkPolicy getSharedLinkPolicy()
null
.public MemberPolicy getMemberPolicy()
null
if not present.public MemberPolicy getResolvedMemberPolicy()
null
if not present.public ViewerInfoPolicy getViewerInfoPolicy()
null
if not present.public static FolderPolicy.Builder newBuilder(AclUpdatePolicy aclUpdatePolicy, SharedLinkPolicy sharedLinkPolicy)
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
.java.lang.IllegalArgumentException
- If any argument does not meet its
preconditions.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringMultiline()
The returned String may contain newlines.