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 StringgetAccountId()Returns the Atlassian account identifier.booleanisStaff()Returnstrueif 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- ifobjectisnullor 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- ifobjectisnullor is not for a user
-
-
Method Detail
-
isStaff
public final boolean isStaff()
Returnstrueif the user is staff.- Specified by:
isStaffin interfaceBitbucketUser- Returns:
trueif staff;falseotherwise
-
getAccountId
public final String getAccountId()
Returns the Atlassian account identifier.- Specified by:
getAccountIdin interfaceBitbucketUser- Returns:
- the Atlassian account identifier
-
-