|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<AutoSwitchStrategy>
com.almworks.jira.structure.api.settings.AutoSwitchStrategy
public 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.crowd.embedded.api.User, com.atlassian.jira.project.Project)| Enum Constant Summary | |
|---|---|
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. |
|
| Field Summary | |
|---|---|
static AutoSwitchStrategy |
PLUGIN_DEFAULT_AUTOSWITCH_STRATEGY
Defines system default auto-switch strategy for an issue page. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
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.
StructureConfiguration.getDefaultStructureId(com.atlassian.jira.project.Project)| Field Detail |
|---|
public static final AutoSwitchStrategy PLUGIN_DEFAULT_AUTOSWITCH_STRATEGY
| Method Detail |
|---|
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 name
NullPointerException - if the argument is nullpublic String getStringCode()
@Nullable public static AutoSwitchStrategy fromStringCode(String code)
null if none exists (for serialization)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||