Class BitbucketServerRepository
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.server.client.repository.BitbucketServerRepository
-
- All Implemented Interfaces:
BitbucketRepository
public class BitbucketServerRepository extends Object implements BitbucketRepository
-
-
Constructor Summary
Constructors Constructor Description BitbucketServerRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getFullName()
Long
getId()
Map<String,List<BitbucketHref>>
getLinks()
Gets the links for this repository.BitbucketRepositoryOwner
getOwner()
String
getOwnerName()
BitbucketProject
getProject()
String
getRepositoryName()
String
getScm()
boolean
isPrivate()
void
setLinks(Map<String,List<BitbucketHref>> links)
void
setProject(BitbucketProject project)
void
setPublic(Boolean public_)
-
-
-
Method Detail
-
getId
public Long getId()
-
getScm
public String getScm()
- Specified by:
getScm
in interfaceBitbucketRepository
- Returns:
- the scm type (git)
-
getFullName
public String 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
public BitbucketRepositoryOwner getOwner()
- Specified by:
getOwner
in interfaceBitbucketRepository
- Returns:
- repository owner (could be a user, a team or a project)
-
getOwnerName
public String getOwnerName()
- Specified by:
getOwnerName
in interfaceBitbucketRepository
- Returns:
BitbucketRepository.getOwner()
's name
-
getRepositoryName
public String getRepositoryName()
- Specified by:
getRepositoryName
in interfaceBitbucketRepository
- Returns:
- the repository name (as extracted from
BitbucketRepository.getFullName()
)
-
getProject
public BitbucketProject getProject()
- Specified by:
getProject
in interfaceBitbucketRepository
- Returns:
- the project containing the repository
-
setProject
public void setProject(BitbucketProject project)
-
isPrivate
public boolean isPrivate()
- Specified by:
isPrivate
in interfaceBitbucketRepository
- Returns:
- return true if the repository is a private one (false otherwise).
-
setPublic
public void setPublic(Boolean public_)
-
getLinks
public Map<String,List<BitbucketHref>> getLinks()
Description copied from interface:BitbucketRepository
Gets the links for this repository.- Specified by:
getLinks
in interfaceBitbucketRepository
- Returns:
- the links for this repository.
-
setLinks
public void setLinks(Map<String,List<BitbucketHref>> links)
-
-