Class BitbucketRepository
- java.lang.Object
-
- com.atlassian.bitbucket.jenkins.internal.model.BitbucketRepository
-
public class BitbucketRepository extends Object
-
-
Constructor Summary
Constructors Constructor Description BitbucketRepository(int repositoryId, String name, BitbucketProject project, String slug, RepositoryState state, List<BitbucketNamedLink> cloneUrls, String selfLink)
BitbucketRepository(int id, String name, Map<String,List<BitbucketNamedLink>> links, BitbucketProject project, String slug, RepositoryState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
Optional<BitbucketNamedLink>
getCloneUrl(CloneProtocol cloneProtocol)
List<BitbucketNamedLink>
getCloneUrls()
int
getId()
String
getName()
BitbucketProject
getProject()
String
getSelfLink()
The self link on webhook events was only introduced in Bitbucket Server 5.14, so this may be blankString
getSlug()
RepositoryState
getState()
int
hashCode()
-
-
-
Constructor Detail
-
BitbucketRepository
public BitbucketRepository(int repositoryId, String name, BitbucketProject project, String slug, RepositoryState state, List<BitbucketNamedLink> cloneUrls, String selfLink)
-
BitbucketRepository
public BitbucketRepository(int id, String name, @CheckForNull Map<String,List<BitbucketNamedLink>> links, BitbucketProject project, String slug, RepositoryState state)
-
-
Method Detail
-
getCloneUrls
public List<BitbucketNamedLink> getCloneUrls()
-
getCloneUrl
public Optional<BitbucketNamedLink> getCloneUrl(CloneProtocol cloneProtocol)
-
getId
public int getId()
-
getName
public String getName()
-
getProject
public BitbucketProject getProject()
-
getSelfLink
public String getSelfLink()
The self link on webhook events was only introduced in Bitbucket Server 5.14, so this may be blank- Returns:
- the self link for the repository if the Bitbucket instance is 5.14 or higher, otherwise
""
-
getSlug
public String getSlug()
-
getState
public RepositoryState getState()
-
-