Class TeamSharingPolicies

java.lang.Object
com.dropbox.core.v2.teampolicies.TeamSharingPolicies

public class TeamSharingPolicies extends Object
Policies governing sharing within and outside of the team.
  • Field Details

  • Constructor Details

    • TeamSharingPolicies

      public TeamSharingPolicies(@Nonnull SharedFolderMemberPolicy sharedFolderMemberPolicy, @Nonnull SharedFolderJoinPolicy sharedFolderJoinPolicy, @Nonnull SharedLinkCreatePolicy sharedLinkCreatePolicy, @Nonnull GroupCreation groupCreationPolicy, @Nonnull SharedFolderBlanketLinkRestrictionPolicy sharedFolderLinkRestrictionPolicy, @Nonnull EnforceLinkPasswordPolicy enforceLinkPasswordPolicy, @Nonnull DefaultLinkExpirationDaysPolicy defaultLinkExpirationDaysPolicy, @Nonnull SharedLinkDefaultPermissionsPolicy sharedLinkDefaultPermissionsPolicy)
      Policies governing sharing within and outside of the team.
      Parameters:
      sharedFolderMemberPolicy - Who can join folders shared by team members. Must not be null.
      sharedFolderJoinPolicy - Which shared folders team members can join. Must not be null.
      sharedLinkCreatePolicy - Who can view shared links owned by team members. Must not be null.
      groupCreationPolicy - Who can create groups. Must not be null.
      sharedFolderLinkRestrictionPolicy - Who can view links to content in shared folders. Must not be null.
      enforceLinkPasswordPolicy - If passwords are required for new links shared outside the team. Must not be null.
      defaultLinkExpirationDaysPolicy - Default expiration date for new links shared outside the team. Must not be null.
      sharedLinkDefaultPermissionsPolicy - Default access level for new links shared by team members. Must not be null.
      Throws:
      IllegalArgumentException - If any argument does not meet its preconditions.
  • Method Details

    • getSharedFolderMemberPolicy

      @Nonnull public SharedFolderMemberPolicy getSharedFolderMemberPolicy()
      Who can join folders shared by team members.
      Returns:
      value for this field, never null.
    • getSharedFolderJoinPolicy

      @Nonnull public SharedFolderJoinPolicy getSharedFolderJoinPolicy()
      Which shared folders team members can join.
      Returns:
      value for this field, never null.
    • getSharedLinkCreatePolicy

      @Nonnull public SharedLinkCreatePolicy getSharedLinkCreatePolicy()
      Who can view shared links owned by team members.
      Returns:
      value for this field, never null.
    • getGroupCreationPolicy

      @Nonnull public GroupCreation getGroupCreationPolicy()
      Who can create groups.
      Returns:
      value for this field, never null.
    • getSharedFolderLinkRestrictionPolicy

      @Nonnull public SharedFolderBlanketLinkRestrictionPolicy getSharedFolderLinkRestrictionPolicy()
      Who can view links to content in shared folders.
      Returns:
      value for this field, never null.
    • getEnforceLinkPasswordPolicy

      @Nonnull public EnforceLinkPasswordPolicy getEnforceLinkPasswordPolicy()
      If passwords are required for new links shared outside the team.
      Returns:
      value for this field, never null.
    • getDefaultLinkExpirationDaysPolicy

      @Nonnull public DefaultLinkExpirationDaysPolicy getDefaultLinkExpirationDaysPolicy()
      Default expiration date for new links shared outside the team.
      Returns:
      value for this field, never null.
    • getSharedLinkDefaultPermissionsPolicy

      @Nonnull public SharedLinkDefaultPermissionsPolicy getSharedLinkDefaultPermissionsPolicy()
      Default access level for new links shared by team members.
      Returns:
      value for this field, never null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toStringMultiline

      public 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