public enum IssueNavigatorType extends Enum<IssueNavigatorType>
Modifier and Type | Method and Description |
---|---|
static void |
clearCookie(javax.servlet.http.HttpServletRequest request)
Remove any tab session state from the session.
|
static IssueNavigatorType |
getFromCookie(javax.servlet.http.HttpServletRequest request)
Return the tab currently stored in the session.
|
String |
getModeName() |
static IssueNavigatorType |
getTypeFromString(String name)
Return the navigator tab for the specified string.
|
static void |
setInCookie(javax.servlet.http.HttpServletResponse response,
IssueNavigatorType type)
Store the passed tab in the passed session.
|
static IssueNavigatorType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IssueNavigatorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IssueNavigatorType SIMPLE
public static final IssueNavigatorType ADVANCED
public static IssueNavigatorType[] values()
for (IssueNavigatorType c : IssueNavigatorType.values()) System.out.println(c);
public static IssueNavigatorType 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 getModeName()
public static IssueNavigatorType getFromCookie(javax.servlet.http.HttpServletRequest request)
request
- the request the tab cookie is stored in.IllegalArgumentException
- if the passed session is null.public static void setInCookie(javax.servlet.http.HttpServletResponse response, IssueNavigatorType type)
response
- the response to store cookie tab in. May not be null.type
- the tab to store in the cookie.IllegalArgumentException
- if either session or tab is null.public static void clearCookie(javax.servlet.http.HttpServletRequest request)
request
- the request to remove tab state cookie from.IllegalArgumentException
- if the session is null.public static IssueNavigatorType getTypeFromString(String name)
name
- the name of the tab to return.IllegalArgumentException
- if the name is null.Copyright © 2002-2019 Atlassian. All Rights Reserved.