Class BitbucketCloudRepository
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.repository.BitbucketCloudRepository
- All Implemented Interfaces:
BitbucketRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the avatar associated to the team or project name.getLinks()Gets the links for this repository.getOwner()getScm()booleanIs the repository marked as archived.booleanvoidsetFullName(String fullName) voidsetLinks(Map<String, List<BitbucketHref>> links) voidvoidsetPrivate(Boolean priv) voidsetProject(BitbucketProject project) voidDeprecated.voidsetUpdatedOn(Date updatedOn) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cloudbees.jenkins.plugins.bitbucket.api.BitbucketRepository
getCloneLinks, getLink
-
Constructor Details
-
BitbucketCloudRepository
public BitbucketCloudRepository()
-
-
Method Details
-
getScm
- Specified by:
getScmin interfaceBitbucketRepository- Returns:
- the scm type (git)
-
getFullName
- Specified by:
getFullNamein interfaceBitbucketRepository- Returns:
- full repository name, which is owner/name (where owner could be a user, a team or a project)
-
getOwner
- Specified by:
getOwnerin interfaceBitbucketRepository- Returns:
- repository owner (could be a user, a team or a project)
-
setScm
Deprecated. -
setFullName
-
setOwner
-
setProject
-
getProject
- Specified by:
getProjectin interfaceBitbucketRepository- Returns:
- the project containing the repository
-
setUpdatedOn
-
getUpdatedOn
-
getOwnerName
- Specified by:
getOwnerNamein interfaceBitbucketRepository- Returns:
BitbucketRepository.getOwner()'s name
-
getRepositoryName
- Specified by:
getRepositoryNamein interfaceBitbucketRepository- Returns:
- the repository name (as extracted from
BitbucketRepository.getFullName())
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivatein interfaceBitbucketRepository- Returns:
- return true if the repository is a private one (false otherwise).
-
isArchived
public boolean isArchived()Description copied from interface:BitbucketRepositoryIs the repository marked as archived. Bitbucket 8.0 introduced the ability to "Archive" a repository which makes the repository read-only and distinguishable from "Active" repositories.- Specified by:
isArchivedin interfaceBitbucketRepository- Returns:
- true if the repository is marked as archived, false otherwise
-
setPrivate
-
getLinks
Description copied from interface:BitbucketRepositoryGets the links for this repository.- Specified by:
getLinksin interfaceBitbucketRepository- Returns:
- the links for this repository.
-
setLinks
-
getAvatar
Description copied from interface:BitbucketRepositoryReturns the avatar associated to the team or project name.- Specified by:
getAvatarin interfaceBitbucketRepository- Returns:
- the URL of the avatar
-