Package org.vx68k.bitbucket.api
Interface BitbucketAccount
-
- All Known Subinterfaces:
BitbucketUser
- All Known Implementing Classes:
BitbucketClientAccount,BitbucketClientUser
public interface BitbucketAccountAccount on Bitbucket Cloud. A Bitbucket Cloud account is either of a user or of a team. This interface can represent both types of accounts, but the attributes specific to user accounts are not accessible with this interface but withBitbucketUser.- Since:
- 5.0
- Author:
- Kaz Nishimura
- See Also:
BitbucketUser,BitbucketRepository
-
-
Method Summary
All Methods Instance Methods Abstract 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.StringgetType()Return the type of 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.
-
-
-
Field Detail
-
USER
static final String USER
Type value for user accounts.- See Also:
- Constant Field Values
-
TEAM
static final String TEAM
Type value for team accounts.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
String getType()
Return the type of the account.- Returns:
- the type of the account
-
getName
String getName()
Returns the name of the account. This property identifies the account.- Returns:
- the name of the account
-
getUUID
UUID getUUID()
Returns the UUID of the account.- Returns:
- the UUID of the account
-
getDisplayName
String getDisplayName()
Returns the display name of the account.- Returns:
- the display name of the account
-
getWebsite
String getWebsite()
Returns the website URI of the account.- Returns:
- the website URI of the account
-
getLocation
String getLocation()
Returns the location of the account.- Returns:
- the location of the account
-
getCreated
Instant getCreated()
Returns the date and time when the account was created.- Returns:
- the date and time when the account was created
-
getRepository
BitbucketRepository getRepository(String name)
Returns a repository owned by the account.- Parameters:
name- the name of a repository- Returns:
- a repository owned by the account if one was found;
nullotherwise
-
repositories
Collection<BitbucketRepository> repositories()
Returns aCollectionview of the repositories owned by the account.- Returns:
- a
Collectionview of the repositories owned by the account
-
-