Package org.vx68k.bitbucket.api
Interface BitbucketAccount
-
- All Known Subinterfaces:
BitbucketUser
- All Known Implementing Classes:
BitbucketClientAccount
,BitbucketClientUser
public interface BitbucketAccount
Account 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 Instant
getCreated()
Returns the date and time when the account was created.String
getDisplayName()
Returns the display name of the account.String
getLocation()
Returns the location of the account.String
getName()
Returns the name of the account.BitbucketRepository
getRepository(String name)
Returns a repository owned by the account.String
getType()
Return the type of the account.UUID
getUUID()
Returns the UUID of the account.String
getWebsite()
Returns the website URI of the account.Collection<BitbucketRepository>
repositories()
Returns aCollection
view 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;
null
otherwise
-
repositories
Collection<BitbucketRepository> repositories()
Returns aCollection
view of the repositories owned by the account.- Returns:
- a
Collection
view of the repositories owned by the account
-
-