Package com.atlassian.bamboo.applinks
Interface StashApplinksService
- All Known Implementing Classes:
StashApplinksServiceImpl
public interface StashApplinksService
-
Method Summary
Modifier and TypeMethodDescription@NotNull com.atlassian.applinks.api.ApplicationLinkcreateStashApplinkWithBasicAuthentication(@NotNull String name, @NotNull URI serverUrl, @NotNull String username, @NotNull String password) Create Stash applink in Bamboo configured with Basic Authentication as outgoing authentication.@NotNull Iterable<com.atlassian.applinks.api.ApplicationLink> 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.ApplicationTypeGetApplicationTypeclass that implementsStashApplicationTypeIterable<com.atlassian.applinks.api.EntityLink> getStashEntityLinksForProject(@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 implementsStashProjectEntityTypebooleanDoes Bamboo have any application link pointing to a JIRA instance
-
Method Details
-
createStashApplinkWithBasicAuthentication
@NotNull @NotNull com.atlassian.applinks.api.ApplicationLink createStashApplinkWithBasicAuthentication(@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 Create Stash applink in Bamboo configured with Basic Authentication as outgoing authentication. This functionality is used in upgrade task and import.- Parameters:
name- name of the applink to be createdserverUrl- Stash 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 Stash application cannot be localized using serverUrlcom.atlassian.applinks.spi.auth.AuthenticationConfigurationException- when Basic Authentication cannot be configured
-
getStashApplicationType
com.atlassian.applinks.api.ApplicationType getStashApplicationType()GetApplicationTypeclass that implementsStashApplicationType- Returns:
ApplicationTypeobject
-
getStashProjectEntityType
com.atlassian.applinks.api.EntityType getStashProjectEntityType()GetEntityTypethat implementsStashProjectEntityType- Returns:
EntityTypeobject
-
getStashApplicationLinks
Retrieve Stash application links from all application links defined in Bamboo, returning primary link first and the rest in alphabetical order.- Returns:
IterableofApplicationLink
-
hasStashApplicationLink
boolean hasStashApplicationLink()Does Bamboo have any application link pointing to a JIRA instance- Returns:
- true if a jira app link is present
-
getStashEntityLinksForProject
Iterable<com.atlassian.applinks.api.EntityLink> getStashEntityLinksForProject(@NotNull @NotNull Project bambooProject) Retrieve all JIRA entity links associated with a bamboo project, returning primary link first and the rest in alphabetical order.- Parameters:
bambooProject- Bamboo project- Returns:
IterableofEntityLink
-