Class AbstractBitbucketTeam
- java.lang.Object
-
- com.cloudbees.jenkins.plugins.bitbucket.api.AbstractBitbucketTeam
-
- All Implemented Interfaces:
BitbucketTeam
- Direct Known Subclasses:
BitbucketCloudTeam
,BitbucketServerProject
public abstract class AbstractBitbucketTeam extends Object implements BitbucketTeam
Shared Code between two team implementations
-
-
Constructor Summary
Constructors Constructor Description AbstractBitbucketTeam()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDisplayName()
String
getLink(String name)
Get Link based on nameMap<String,List<BitbucketHref>>
getLinks()
Gets the links of the project.String
getName()
void
setDisplayName(String displayName)
void
setLinks(Map<String,List<BitbucketHref>> links)
void
setName(String name)
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceBitbucketTeam
- Returns:
- team or project name
-
setName
public void setName(String name)
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceBitbucketTeam
- Returns:
- team or project display name.
-
setDisplayName
public void setDisplayName(String displayName)
-
getLinks
public Map<String,List<BitbucketHref>> getLinks()
Description copied from interface:BitbucketTeam
Gets the links of the project.- Specified by:
getLinks
in interfaceBitbucketTeam
- Returns:
- the links of the project.
-
setLinks
public void setLinks(Map<String,List<BitbucketHref>> links)
-
getLink
public String getLink(String name)
Description copied from interface:BitbucketTeam
Get Link based on name- Specified by:
getLink
in interfaceBitbucketTeam
- Parameters:
name
- - link type - one of(self, html, avatar)- Returns:
- href string if there is one, else null
-
-