public enum AutoSwitchStrategy extends Enum<AutoSwitchStrategy>
AutoSwitchStrategy
enum defines how the initial structure is selected when the user
opens issue page or project page.UISettings
,
StructureConfiguration.getUISettings(com.atlassian.jira.user.ApplicationUser, com.atlassian.jira.project.Project)
Enum Constant and Description |
---|
AUTOSWITCH_OFF
When auto-switch is turned off, the "current" structure is opened on the page.
|
DEFAULT_STRUCTURE
When auto-switch is set to
DEFAULT_STRUCTURE , the default structure is always displayed when the
issue or project page is opened. |
STRUCTURE_WITH_ISSUE
When auto-switch is set to
STRUCTURE_WITH_ISSUE , the structure displayed on the issue page
will be the structure that contains that issue. |
Modifier and Type | Field and Description |
---|---|
static AutoSwitchStrategy |
PLUGIN_DEFAULT_AUTOSWITCH_STRATEGY
Defines system default auto-switch strategy for an issue page.
|
Modifier and Type | Method and Description |
---|---|
static AutoSwitchStrategy |
fromStringCode(String code) |
String |
getStringCode() |
static AutoSwitchStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AutoSwitchStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AutoSwitchStrategy AUTOSWITCH_OFF
public static final AutoSwitchStrategy STRUCTURE_WITH_ISSUE
When auto-switch is set to STRUCTURE_WITH_ISSUE
, the structure displayed on the issue page
will be the structure that contains that issue.
If the issue belongs to several structures (viewable by the user), or if it does not belong to any, the behavior is not contractually defined. The implementation may make "best guess", based on the "current" structure (the last structure the user has viewed) and the default structure for the project.
This value does not make sense for the pages other than StructurePage.ISSUE_VIEW
.
public static final AutoSwitchStrategy DEFAULT_STRUCTURE
DEFAULT_STRUCTURE
, the default structure is always displayed when the
issue or project page is opened. The default structure for the viewed project (or the project of the viewed issue)
will be used.public static final AutoSwitchStrategy PLUGIN_DEFAULT_AUTOSWITCH_STRATEGY
public static AutoSwitchStrategy[] values()
for (AutoSwitchStrategy c : AutoSwitchStrategy.values()) System.out.println(c);
public static AutoSwitchStrategy valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getStringCode()
@Nullable public static AutoSwitchStrategy fromStringCode(String code)
null
if none exists (for serialization)Copyright © 2024 Tempo Software. All Rights Reserved.