Package com.atlassian.bamboo.applinks
Class JiraApplinksServiceImpl
java.lang.Object
com.atlassian.bamboo.applinks.JiraApplinksServiceImpl
- All Implemented Interfaces:
JiraApplinksService
-
Constructor Summary
ConstructorsConstructorDescriptionJiraApplinksServiceImpl(com.atlassian.applinks.spi.link.MutatingApplicationLinkService applinkApplicationLink, com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager applinkAuthenticationConfigurationManager, com.atlassian.applinks.api.EntityLinkService applinkEntityLink, com.atlassian.applinks.spi.util.TypeAccessor applinkTypeAccessor) -
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.applinks.api.ApplicationLinkcreateJiraApplinkWithBasicAuthentication(@NotNull String name, @NotNull URI serverUrl, @NotNull String username, @NotNull String password) Create JIRA applink in Bamboo configured with Basic Authentication as outgoing authentication.@NotNull Iterable<com.atlassian.applinks.api.ApplicationLink> Retrieve JIRA application links from all application links defined in Bamboo, returning primary link first and the rest in alphabetical order.com.atlassian.applinks.api.ApplicationTypeGetApplicationTypeclass that implementsJiraApplicationTypeIterable<com.atlassian.applinks.api.EntityLink> getJiraEntityLinksForProject(@NotNull Project bambooProject) Retrieve all JIRA entity links associated with a bamboo project, returning primary link first and the rest in alphabetical order.com.atlassian.applinks.api.EntityTypeGetEntityTypethat implementsJiraProjectEntityTypebooleanDoes Bamboo have any application link pointing to a JIRA instance
-
Constructor Details
-
JiraApplinksServiceImpl
public JiraApplinksServiceImpl(com.atlassian.applinks.spi.link.MutatingApplicationLinkService applinkApplicationLink, com.atlassian.applinks.spi.auth.AuthenticationConfigurationManager applinkAuthenticationConfigurationManager, com.atlassian.applinks.api.EntityLinkService applinkEntityLink, com.atlassian.applinks.spi.util.TypeAccessor applinkTypeAccessor)
-
-
Method Details
-
createJiraApplinkWithBasicAuthentication
@NotNull public @NotNull com.atlassian.applinks.api.ApplicationLink createJiraApplinkWithBasicAuthentication(@NotNull @NotNull String name, @NotNull @NotNull URI serverUrl, @NotNull @NotNull String username, @NotNull @NotNull String password) throws com.atlassian.applinks.spi.manifest.ManifestNotFoundException, com.atlassian.applinks.spi.auth.AuthenticationConfigurationException Description copied from interface:JiraApplinksServiceCreate JIRA applink in Bamboo configured with Basic Authentication as outgoing authentication. This functionality is used in upgrade task and import.- Specified by:
createJiraApplinkWithBasicAuthenticationin interfaceJiraApplinksService- Parameters:
name- name of the applink to be createdserverUrl- JIRA server urlusername- username to be used in Basic Authenticationpassword- password to be used in Basic Authentication- Returns:
ApplicationLinkidentifying created connection- Throws:
com.atlassian.applinks.spi.manifest.ManifestNotFoundException- when remote JIRA application cannot be localized using serverUrlcom.atlassian.applinks.spi.auth.AuthenticationConfigurationException- when Basic Authentication cannot be configured
-
getJiraApplicationType
public com.atlassian.applinks.api.ApplicationType getJiraApplicationType()Description copied from interface:JiraApplinksServiceGetApplicationTypeclass that implementsJiraApplicationType- Specified by:
getJiraApplicationTypein interfaceJiraApplinksService- Returns:
ApplicationTypeobject
-
getJiraProjectEntityType
public com.atlassian.applinks.api.EntityType getJiraProjectEntityType()Description copied from interface:JiraApplinksServiceGetEntityTypethat implementsJiraProjectEntityType- Specified by:
getJiraProjectEntityTypein interfaceJiraApplinksService- Returns:
EntityTypeobject
-
getJiraApplicationLinks
@NotNull public @NotNull Iterable<com.atlassian.applinks.api.ApplicationLink> getJiraApplicationLinks()Description copied from interface:JiraApplinksServiceRetrieve JIRA application links from all application links defined in Bamboo, returning primary link first and the rest in alphabetical order.- Specified by:
getJiraApplicationLinksin interfaceJiraApplinksService- Returns:
IterableofApplicationLink
-
hasJiraApplicationLink
public boolean hasJiraApplicationLink()Description copied from interface:JiraApplinksServiceDoes Bamboo have any application link pointing to a JIRA instance- Specified by:
hasJiraApplicationLinkin interfaceJiraApplinksService- Returns:
- true if a jira app link is present
-
getJiraEntityLinksForProject
public Iterable<com.atlassian.applinks.api.EntityLink> getJiraEntityLinksForProject(@NotNull @NotNull Project bambooProject) Description copied from interface:JiraApplinksServiceRetrieve all JIRA entity links associated with a bamboo project, returning primary link first and the rest in alphabetical order.- Specified by:
getJiraEntityLinksForProjectin interfaceJiraApplinksService- Parameters:
bambooProject- Bamboo project- Returns:
IterableofEntityLink
-