com.atlassian.bamboo.applinks
Class JiraApplinksServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.applinks.JiraApplinksServiceImpl
All Implemented Interfaces:
JiraApplinksService

public class JiraApplinksServiceImpl
extends java.lang.Object
implements JiraApplinksService


Constructor Summary
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 Summary
 com.atlassian.applinks.api.ApplicationLink createJiraApplinkWithBasicAuthentication(java.lang.String name, java.net.URI serverUrl, java.lang.String username, java.lang.String password)
          Create JIRA applink in Bamboo configured with Basic Authentication as outgoing authentication.
 java.lang.Iterable<com.atlassian.applinks.api.ApplicationLink> getJiraApplicationLinks()
          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.ApplicationType getJiraApplicationType()
          Get ApplicationType class that implements JiraApplicationType
 java.lang.Iterable<com.atlassian.applinks.api.EntityLink> getJiraEntityLinksForProject(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.EntityType getJiraProjectEntityType()
          Get EntityType that implements JiraProjectEntityType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

createJiraApplinkWithBasicAuthentication

@NotNull
public com.atlassian.applinks.api.ApplicationLink createJiraApplinkWithBasicAuthentication(@NotNull
                                                                                                   java.lang.String name,
                                                                                                   @NotNull
                                                                                                   java.net.URI serverUrl,
                                                                                                   @NotNull
                                                                                                   java.lang.String username,
                                                                                                   @NotNull
                                                                                                   java.lang.String password)
                                                                                    throws com.atlassian.applinks.spi.manifest.ManifestNotFoundException,
                                                                                           com.atlassian.applinks.spi.auth.AuthenticationConfigurationException
Description copied from interface: JiraApplinksService
Create JIRA applink in Bamboo configured with Basic Authentication as outgoing authentication. This functionality is used in upgrade task and import.

Specified by:
createJiraApplinkWithBasicAuthentication in interface JiraApplinksService
Parameters:
name - name of the applink to be created
serverUrl - JIRA server url
username - username to be used in Basic Authentication
password - password to be used in Basic Authentication
Returns:
ApplicationLink identifying created connection
Throws:
com.atlassian.applinks.spi.manifest.ManifestNotFoundException - when remote JIRA application cannot be localized using serverUrl
com.atlassian.applinks.spi.auth.AuthenticationConfigurationException - when Basic Authentication cannot be configured

getJiraApplicationType

public com.atlassian.applinks.api.ApplicationType getJiraApplicationType()
Description copied from interface: JiraApplinksService
Get ApplicationType class that implements JiraApplicationType

Specified by:
getJiraApplicationType in interface JiraApplinksService
Returns:
ApplicationType object

getJiraProjectEntityType

public com.atlassian.applinks.api.EntityType getJiraProjectEntityType()
Description copied from interface: JiraApplinksService
Get EntityType that implements JiraProjectEntityType

Specified by:
getJiraProjectEntityType in interface JiraApplinksService
Returns:
EntityType object

getJiraApplicationLinks

@NotNull
public java.lang.Iterable<com.atlassian.applinks.api.ApplicationLink> getJiraApplicationLinks()
Description copied from interface: JiraApplinksService
Retrieve JIRA application links from all application links defined in Bamboo, returning primary link first and the rest in alphabetical order.

Specified by:
getJiraApplicationLinks in interface JiraApplinksService
Returns:
Iterable of ApplicationLink

getJiraEntityLinksForProject

public java.lang.Iterable<com.atlassian.applinks.api.EntityLink> getJiraEntityLinksForProject(@NotNull
                                                                                              Project bambooProject)
Description copied from interface: JiraApplinksService
Retrieve all JIRA entity links associated with a bamboo project, returning primary link first and the rest in alphabetical order.

Specified by:
getJiraEntityLinksForProject in interface JiraApplinksService
Parameters:
bambooProject - Bamboo project
Returns:
Iterable of EntityLink


Copyright © 2012 Atlassian. All Rights Reserved.