Package org.vx68k.bitbucket.api
Interface Bitbucket
-
- All Known Implementing Classes:
BitbucketClient
public interface Bitbucket
Abstraction of the Bitbucket API.- Since:
- 5.0
- Author:
- Kaz Nishimura
- See Also:
BitbucketAccount
,BitbucketRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BitbucketRepository
getRepository(String ownerName, String name)
Returns a repository resource for a repository.BitbucketAccount
getTeam(String name)
Returns an account resource for a team.BitbucketAccount
getUser(String name)
Returns an account resource for a user.Collection<BitbucketRepository>
repositories(String ownerName)
Returns aCollection
view of the repositories of an account.
-
-
-
Method Detail
-
getUser
BitbucketAccount getUser(String name)
Returns an account resource for a user.- Parameters:
name
- the name of a user- Returns:
- an account resource for a user
-
getTeam
BitbucketAccount getTeam(String name)
Returns an account resource for a team.- Parameters:
name
- the name of a team- Returns:
- an account resource for a team
-
getRepository
BitbucketRepository getRepository(String ownerName, String name)
Returns a repository resource for a repository.- Parameters:
ownerName
- the owner name of a repositoryname
- the name of a repository- Returns:
- a repository resource for a repository
-
repositories
Collection<BitbucketRepository> repositories(String ownerName)
Returns aCollection
view of the repositories of an account.- Parameters:
ownerName
- the name of an account- Returns:
- a
Collection
view of the repositories of an account
-
-