Class BitbucketServerRepository
java.lang.Object
com.cloudbees.jenkins.plugins.bitbucket.server.client.repository.BitbucketServerRepository
- All Implemented Interfaces:
BitbucketRepository
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getLinks()
Gets the links for this repository.getOwner()
getScm()
boolean
Is the repository marked as archived.boolean
void
setArchived
(Boolean archived) void
setLinks
(Map<String, List<BitbucketHref>> links) void
setProject
(BitbucketProject project) void
-
Constructor Details
-
BitbucketServerRepository
public BitbucketServerRepository()
-
-
Method Details
-
getId
-
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)
-
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()
)
-
getProject
- Specified by:
getProject
in interfaceBitbucketRepository
- Returns:
- the project containing the repository
-
setProject
-
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
-
setArchived
-
setPublic
-
getLinks
Description copied from interface:BitbucketRepository
Gets the links for this repository.- Specified by:
getLinks
in interfaceBitbucketRepository
- Returns:
- the links for this repository.
-
setLinks
-