Class LegacyProjectTabToSidebarItemTransformer
java.lang.Object
com.atlassian.jira.projects.legacy.LegacyProjectTabToSidebarItemTransformer
Class in charge of transforming identifiers of legacy project tabs into the equivalent identifiers of sidebar items.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.atlassian.fugue.Option<String> transformToProjectTab(String sidebarItemId) Transforms the given identifier of a sidebar item into its corresponding identifier of a legacy project tab.io.atlassian.fugue.Option<String> transformToSidebarItem(String legacyProjectTab) Transforms the given identifier of a legacy project tab into its corresponding identifier of a sidebar item.
-
Constructor Details
-
LegacyProjectTabToSidebarItemTransformer
public LegacyProjectTabToSidebarItemTransformer()
-
-
Method Details
-
transformToSidebarItem
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
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
-