Class DefaultDocumentationLinkProvider

java.lang.Object
com.atlassian.bamboo.utils.i18n.DefaultDocumentationLinkProvider
All Implemented Interfaces:
DocumentationLinkProvider

public class DefaultDocumentationLinkProvider extends Object implements DocumentationLinkProvider
  • Constructor Details

    • DefaultDocumentationLinkProvider

      @Inject public DefaultDocumentationLinkProvider(I18nBeanFactory i18nBeanFactory)
  • Method Details

    • postConstruct

      @PostConstruct public void postConstruct()
    • getUrl

      @NotNull public @NotNull String getUrl(@NotNull @NotNull String key)
      Description copied from interface: DocumentationLinkProvider
      Constructs a link to the help documentation. In case the provided key is invalid, this will return an empty string.
      Specified by:
      getUrl in interface DocumentationLinkProvider
      Parameters:
      key - the key to retrieve the documentation link for
      Returns:
      link to the help documentation
    • getTitle

      @NotNull public @NotNull String getTitle(@NotNull @NotNull String key)
      Description copied from interface: DocumentationLinkProvider
      Retrieve the title for the link to help documentation. In case the provided key is invalid, the title will be empty.
      Specified by:
      getTitle in interface DocumentationLinkProvider
      Parameters:
      key - the key of the help link to retrieve the title for.
      Returns:
      the title of the help documentation
    • getAllUrls

      @NotNull public @NotNull Map<String,String> getAllUrls()
      Description copied from interface: DocumentationLinkProvider
      Returns an immutable map of all help links keys and actual links to the help documentation.
      Specified by:
      getAllUrls in interface DocumentationLinkProvider
      Returns:
      mapping between help link key and its actual url.