Package org.vx68k.bitbucket.api.client
Class BitbucketClientAccount
- java.lang.Object
- 
- org.vx68k.bitbucket.api.client.BitbucketClientObject
- 
- org.vx68k.bitbucket.api.client.BitbucketClientAccount
 
 
- 
- All Implemented Interfaces:
- BitbucketAccount
 - Direct Known Subclasses:
- BitbucketClientUser
 
 public class BitbucketClientAccount extends BitbucketClientObject implements BitbucketAccount Client implementation ofBitbucketAccount. This class represents an account by a JSON object.- Since:
- 5.0
- Author:
- Kaz Nishimura
- See Also:
- BitbucketClientUser
 
- 
- 
Field Summary- 
Fields inherited from interface org.vx68k.bitbucket.api.BitbucketAccountTEAM, USER
 
- 
 - 
Constructor SummaryConstructors Constructor Description BitbucketClientAccount(JsonObject object)Constructs this object with no Bitbucket client.BitbucketClientAccount(JsonObject object, BitbucketClient client)Constructs this object.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description InstantgetCreated()Returns the date and time when the account was created.StringgetDisplayName()Returns the display name of the account.StringgetLocation()Returns the location of the account.StringgetName()Returns the name of the account.BitbucketRepositorygetRepository(String name)Returns a repository owned by the account.UUIDgetUUID()Returns the UUID of the account.StringgetWebsite()Returns the website URI of the account.Collection<BitbucketRepository>repositories()Returns aCollectionview of the repositories owned by the account.- 
Methods inherited from class org.vx68k.bitbucket.api.client.BitbucketClientObjectequals, getBitbucketClient, getJsonObject, getLink, getType, hashCode, setBitbucketClient, toString
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.vx68k.bitbucket.api.BitbucketAccountgetType
 
- 
 
- 
- 
- 
Constructor Detail- 
BitbucketClientAccountpublic BitbucketClientAccount(JsonObject object) Constructs this object with no Bitbucket client.- Parameters:
- object- JSON object
- Throws:
- IllegalArgumentException- if- objectis- null
 
 - 
BitbucketClientAccountpublic BitbucketClientAccount(JsonObject object, BitbucketClient client) Constructs this object.- Parameters:
- object- JSON object
- client- Bitbucket client, or- null
- Throws:
- IllegalArgumentException- if- objectis- null
 
 
- 
 - 
Method Detail- 
getNamepublic final String getName() Returns the name of the account. This property identifies the account.- Specified by:
- getNamein interface- BitbucketAccount
- Returns:
- the name of the account
 
 - 
getUUIDpublic final UUID getUUID() Returns the UUID of the account.- Specified by:
- getUUIDin interface- BitbucketAccount
- Returns:
- the UUID of the account
 
 - 
getDisplayNamepublic final String getDisplayName() Returns the display name of the account.- Specified by:
- getDisplayNamein interface- BitbucketAccount
- Returns:
- the display name of the account
 
 - 
getWebsitepublic final String getWebsite() Returns the website URI of the account.- Specified by:
- getWebsitein interface- BitbucketAccount
- Returns:
- the website URI of the account
 
 - 
getLocationpublic final String getLocation() Returns the location of the account.- Specified by:
- getLocationin interface- BitbucketAccount
- Returns:
- the location of the account
 
 - 
getCreatedpublic final Instant getCreated() Returns the date and time when the account was created.- Specified by:
- getCreatedin interface- BitbucketAccount
- Returns:
- the date and time when the account was created
 
 - 
getRepositorypublic final BitbucketRepository getRepository(String name) Returns a repository owned by the account.- Specified by:
- getRepositoryin interface- BitbucketAccount
- Parameters:
- name- the name of a repository
- Returns:
- a repository owned by the account if one was found; nullotherwise
 
 - 
repositoriespublic final Collection<BitbucketRepository> repositories() Returns aCollectionview of the repositories owned by the account.This implementation returns a PaginatedListobject.- Specified by:
- repositoriesin interface- BitbucketAccount
- Returns:
- a Collectionview of the repositories owned by the account
- See Also:
- BitbucketClientRepository.creator(BitbucketClient)
 
 
- 
 
-