Class BitbucketCloudRepository
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.client.repository.BitbucketCloudRepository
- All Implemented Interfaces:
BitbucketRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetLinks()
Gets the links for this repository.getOwner()
getScm()
boolean
Is the repository marked as archived.boolean
void
setFullName
(String fullName) void
setLinks
(Map<String, List<BitbucketHref>> links) void
void
setPrivate
(Boolean priv) void
setProject
(BitbucketProject project) void
Deprecated.void
setUpdatedOn
(Date updatedOn)
-
Constructor Details
-
BitbucketCloudRepository
public BitbucketCloudRepository()
-
-
Method Details
-
getScm
- Specified by:
getScm
in interfaceBitbucketRepository
- Returns:
- the scm type (git)
-
getFullName
- Specified by:
getFullName
in interfaceBitbucketRepository
- Returns:
- full repository name, which is owner/name (where owner could be a user, a team or a project)
-
getOwner
- Specified by:
getOwner
in interfaceBitbucketRepository
- Returns:
- repository owner (could be a user, a team or a project)
-
setScm
Deprecated. -
setFullName
-
setOwner
-
setProject
-
getProject
- Specified by:
getProject
in interfaceBitbucketRepository
- Returns:
- the project containing the repository
-
setUpdatedOn
-
getUpdatedOn
-
getOwnerName
- Specified by:
getOwnerName
in interfaceBitbucketRepository
- Returns:
BitbucketRepository.getOwner()
's name
-
getRepositoryName
- Specified by:
getRepositoryName
in interfaceBitbucketRepository
- Returns:
- the repository name (as extracted from
BitbucketRepository.getFullName()
)
-
isPrivate
public boolean isPrivate()- Specified by:
isPrivate
in interfaceBitbucketRepository
- Returns:
- return true if the repository is a private one (false otherwise).
-
isArchived
public boolean isArchived()Description copied from interface:BitbucketRepository
Is 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:
isArchived
in interfaceBitbucketRepository
- Returns:
- true if the repository is marked as archived, false otherwise
-
setPrivate
-
getLinks
Description copied from interface:BitbucketRepository
Gets the links for this repository.- Specified by:
getLinks
in interfaceBitbucketRepository
- Returns:
- the links for this repository.
-
setLinks
-