Class BitbucketClientUser

    • Constructor Detail

      • BitbucketClientUser

        public BitbucketClientUser​(JsonObject object)
        Constructs this object with no Bitbucket client.
        Parameters:
        object - JSON object for a user
        Throws:
        IllegalArgumentException - if object is null or is not for a user
      • BitbucketClientUser

        public BitbucketClientUser​(JsonObject object,
                                   BitbucketClient client)
        Constructs this object.
        Parameters:
        object - JSON object for a user
        client - Bitbucket client, or null
        Throws:
        IllegalArgumentException - if object is null or is not for a user
    • Method Detail

      • isStaff

        public final boolean isStaff()
        Returns true if the user is staff.
        Specified by:
        isStaff in interface BitbucketUser
        Returns:
        true if staff; false otherwise
      • getAccountId

        public final String getAccountId()
        Returns the Atlassian account identifier.
        Specified by:
        getAccountId in interface BitbucketUser
        Returns:
        the Atlassian account identifier