Package org.vx68k.bitbucket.api
Interface BitbucketRepository
-
- All Known Implementing Classes:
BitbucketClientRepository
public interface BitbucketRepository
Repository on Bitbucket Cloud. A Bitbucket Cloud repository is owned by an account.- Since:
- 5.0
- Author:
- Kaz Nishimura
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Instant
getCreated()
Returns the time when the repository was created.String
getDescription()
Returns the description of the repository.String
getFullName()
Returns the full name of the repository.BitbucketIssueTracker
getIssueTracker()
Returns the issue tracker of the repository.BitbucketBranch
getMainBranch()
Returns the main branch of the repository.String
getName()
Returns the name of the repository.BitbucketAccount
getOwner()
Returns the owner of the repository.String
getSCM()
Returns the SCM type of the repository.long
getSize()
Returns the size of the repository.Instant
getUpdated()
Returns the time when the repository was last updated.UUID
getUUID()
Returns the UUID of the repository.boolean
hasIssueTracker()
Returnstrue
if and only if the repository has a issue tracker.boolean
hasWiki()
Returnstrue
if and only if the repository has a wiki.boolean
isPrivate()
Returnstrue
if and only if the repository is private.
-
-
-
Field Detail
-
GIT
static final String GIT
SCM type value for Git repositories.- See Also:
- Constant Field Values
-
HG
static final String HG
SCM type value for Mercurial repositories.- See Also:
- Constant Field Values
-
-
Method Detail
-
getSCM
String getSCM()
Returns the SCM type of the repository. The return value shall be either#GIT
or#HG
.- Returns:
- the SCM type of the repository
-
getOwner
BitbucketAccount getOwner()
Returns the owner of the repository.- Returns:
- the owner of the repository
-
getName
String getName()
Returns the name of the repository.- Returns:
- the name of the repository
-
getFullName
String getFullName()
Returns the full name of the repository.- Returns:
- the full name of the repository
-
getUUID
UUID getUUID()
Returns the UUID of the repository.- Returns:
- the UUID of the repository
-
getDescription
String getDescription()
Returns the description of the repository.- Returns:
- the description of the repository
-
isPrivate
boolean isPrivate()
Returnstrue
if and only if the repository is private.- Returns:
true
if and only if the repository is private
-
getMainBranch
BitbucketBranch getMainBranch()
Returns the main branch of the repository.- Returns:
- the main branch of the repository
-
hasIssueTracker
boolean hasIssueTracker()
Returnstrue
if and only if the repository has a issue tracker.- Returns:
true
if and only if the repository has a issue tracker
-
hasWiki
boolean hasWiki()
Returnstrue
if and only if the repository has a wiki.- Returns:
true
if and only if the repository has a wiki
-
getSize
long getSize()
Returns the size of the repository.- Returns:
- the size of the repository
-
getCreated
Instant getCreated()
Returns the time when the repository was created.- Returns:
- the time when the repository was created
-
getUpdated
Instant getUpdated()
Returns the time when the repository was last updated.- Returns:
- the time when the repository was last updated
-
getIssueTracker
BitbucketIssueTracker getIssueTracker()
Returns the issue tracker of the repository.- Returns:
- the issue tracker of the repository
-
-