com.atlassian.bamboo.applinks
Class StashApplinksServiceImpl

java.lang.Object
  extended by com.atlassian.bamboo.applinks.StashApplinksServiceImpl
All Implemented Interfaces:
StashApplinksService

public class StashApplinksServiceImpl
extends Object
implements StashApplinksService


Constructor Summary
StashApplinksServiceImpl(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 createStashApplinkWithBasicAuthentication(String name, URI serverUrl, String username, String password)
          Create Stash applink in Bamboo configured with Basic Authentication as outgoing authentication.
 Iterable<com.atlassian.applinks.api.ApplicationLink> getStashApplicationLinks()
          Retrieve Stash application links from all application links defined in Bamboo, returning primary link first and the rest in alphabetical order.
 com.atlassian.applinks.api.ApplicationType getStashApplicationType()
          Get ApplicationType class that implements StashApplicationType
 Iterable<com.atlassian.applinks.api.EntityLink> getStashEntityLinksForProject(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 getStashProjectEntityType()
          Get EntityType that implements StashProjectEntityType
 boolean hasStashApplicationLink()
          Does Bamboo have any application link pointing to a JIRA instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StashApplinksServiceImpl

public StashApplinksServiceImpl(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

createStashApplinkWithBasicAuthentication

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

Specified by:
createStashApplinkWithBasicAuthentication in interface StashApplinksService
Parameters:
name - name of the applink to be created
serverUrl - Stash 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 Stash application cannot be localized using serverUrl
com.atlassian.applinks.spi.auth.AuthenticationConfigurationException - when Basic Authentication cannot be configured

getStashApplicationType

public com.atlassian.applinks.api.ApplicationType getStashApplicationType()
Description copied from interface: StashApplinksService
Get ApplicationType class that implements StashApplicationType

Specified by:
getStashApplicationType in interface StashApplinksService
Returns:
ApplicationType object

getStashProjectEntityType

public com.atlassian.applinks.api.EntityType getStashProjectEntityType()
Description copied from interface: StashApplinksService
Get EntityType that implements StashProjectEntityType

Specified by:
getStashProjectEntityType in interface StashApplinksService
Returns:
EntityType object

getStashApplicationLinks

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

Specified by:
getStashApplicationLinks in interface StashApplinksService
Returns:
Iterable of ApplicationLink

hasStashApplicationLink

public boolean hasStashApplicationLink()
Description copied from interface: StashApplinksService
Does Bamboo have any application link pointing to a JIRA instance

Specified by:
hasStashApplicationLink in interface StashApplinksService
Returns:
true if a jira app link is present

getStashEntityLinksForProject

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

Specified by:
getStashEntityLinksForProject in interface StashApplinksService
Parameters:
bambooProject - Bamboo project
Returns:
Iterable of EntityLink


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.