Class MembershipInfo

    • Field Detail

      • initials

        protected final java.lang.String initials
      • isInherited

        protected final boolean isInherited
    • Constructor Detail

      • MembershipInfo

        public MembershipInfo​(AccessLevel accessType,
                              java.util.List<MemberPermission> permissions,
                              java.lang.String initials,
                              boolean isInherited)
        The information about a member of the shared content.

        Use newBuilder(com.dropbox.core.v2.sharing.AccessLevel) to create instances of this class without specifying values for all optional fields.

        Parameters:
        accessType - The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not be null.
        permissions - The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request. Must not contain a null item.
        initials - Never set.
        isInherited - True if the member has access from a parent folder.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • MembershipInfo

        public MembershipInfo​(AccessLevel accessType)
        The information about a member of the shared content.

        The default values for unset fields will be used.

        Parameters:
        accessType - The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not be null.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getAccessType

        public AccessLevel getAccessType()
        The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder.
        Returns:
        value for this field, never null.
      • getPermissions

        public java.util.List<MemberPermission> getPermissions()
        The permissions that requesting user has on this member. The set of permissions corresponds to the MemberActions in the request.
        Returns:
        value for this field, or null if not present.
      • getInitials

        public java.lang.String getInitials()
        Never set.
        Returns:
        value for this field, or null if not present.
      • getIsInherited

        public boolean getIsInherited()
        True if the member has access from a parent folder.
        Returns:
        value for this field, or null if not present. Defaults to false.
      • newBuilder

        public static MembershipInfo.Builder newBuilder​(AccessLevel accessType)
        Returns a new builder for creating an instance of this class.
        Parameters:
        accessType - The access type for this member. It contains inherited access type from parent folder, and acquired access type from this folder. Must not be null.
        Returns:
        builder for this class.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
      • hashCode

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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

        public 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