Package org.vx68k.bitbucket.api.client
Class BitbucketClientUser
- java.lang.Object
-
- org.vx68k.bitbucket.api.client.BitbucketClientObject
-
- org.vx68k.bitbucket.api.client.BitbucketClientAccount
-
- org.vx68k.bitbucket.api.client.BitbucketClientUser
-
- All Implemented Interfaces:
BitbucketAccount
,BitbucketUser
public class BitbucketClientUser extends BitbucketClientAccount implements BitbucketUser
Client implementation ofBitbucketUser
. This class represents a user account by a JSON object.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Field Summary
-
Fields inherited from interface org.vx68k.bitbucket.api.BitbucketAccount
TEAM, USER
-
-
Constructor Summary
Constructors Constructor Description BitbucketClientUser(JsonObject object)
Constructs this object with no Bitbucket client.BitbucketClientUser(JsonObject object, BitbucketClient client)
Constructs this object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAccountId()
Returns the Atlassian account identifier.boolean
isStaff()
Returnstrue
if the user is staff.-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientAccount
getCreated, getDisplayName, getLocation, getName, getRepository, getUUID, getWebsite, repositories
-
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObject
equals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.vx68k.bitbucket.api.BitbucketAccount
getCreated, getDisplayName, getLocation, getName, getRepository, getType, getUUID, getWebsite, repositories
-
-
-
-
Constructor Detail
-
BitbucketClientUser
public BitbucketClientUser(JsonObject object)
Constructs this object with no Bitbucket client.- Parameters:
object
- JSON object for a user- Throws:
IllegalArgumentException
- ifobject
isnull
or is not for a user
-
BitbucketClientUser
public BitbucketClientUser(JsonObject object, BitbucketClient client)
Constructs this object.- Parameters:
object
- JSON object for a userclient
- Bitbucket client, ornull
- Throws:
IllegalArgumentException
- ifobject
isnull
or is not for a user
-
-
Method Detail
-
isStaff
public final boolean isStaff()
Returnstrue
if the user is staff.- Specified by:
isStaff
in interfaceBitbucketUser
- Returns:
true
if staff;false
otherwise
-
getAccountId
public final String getAccountId()
Returns the Atlassian account identifier.- Specified by:
getAccountId
in interfaceBitbucketUser
- Returns:
- the Atlassian account identifier
-
-