Class LegacyProjectTabToSidebarItemTransformer

java.lang.Object
com.atlassian.jira.projects.legacy.LegacyProjectTabToSidebarItemTransformer

@Component public class LegacyProjectTabToSidebarItemTransformer extends Object
Class in charge of transforming identifiers of legacy project tabs into the equivalent identifiers of sidebar items.
  • Constructor Details

    • LegacyProjectTabToSidebarItemTransformer

      public LegacyProjectTabToSidebarItemTransformer()
  • Method Details

    • transformToSidebarItem

      public io.atlassian.fugue.Option<String> transformToSidebarItem(@Nullable String legacyProjectTab)
      Transforms the given identifier of a legacy project tab into its corresponding identifier of a sidebar item. Note that there are some legacy project tabs that don't have a corresponding sidebar item. For those ones, the returned option will be none.
      Parameters:
      legacyProjectTab - The identifier of the legacy project tab
      Returns:
      An optional sidebar item identifier, corresponding to the given legacy project tab
    • transformToProjectTab

      public io.atlassian.fugue.Option<String> transformToProjectTab(@Nullable String sidebarItemId)
      Transforms the given identifier of a sidebar item into its corresponding identifier of a legacy project tab.
      Parameters:
      sidebarItemId - The identifier of the sidebar item
      Returns:
      An optional legacy project tab identifier, corresponding to the given sidebar item