Enum Class IssueNavigatorType
- All Implemented Interfaces:
Serializable
,Comparable<IssueNavigatorType>
,Constable
Represents the tab's on the issue navigator whose status needs to be saved into the session.
- Since:
- v4.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.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
Returns the enum constant of this class with the specified name.static IssueNavigatorType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SIMPLE
-
ADVANCED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getModeName
-
getFromCookie
Return the tab currently stored in the session. Null will be returned to indicate that there was no tab in the session.- Parameters:
request
- the request the tab cookie is stored in.- Returns:
- the tab in the session, or no tab if there was none.
- Throws:
IllegalArgumentException
- if the passed session is null.
-
clearCookie
public static void clearCookie(javax.servlet.http.HttpServletRequest request) Remove any tab session state from the session.- Parameters:
request
- the request to remove tab state cookie from.- Throws:
IllegalArgumentException
- if the session is null.
-
getTypeFromString
Return the navigator tab for the specified string. The case of the string is ignored when this method is used.- Parameters:
name
- the name of the tab to return.- Returns:
- the tab whose name is the passed string. It will return null if there was no matching tab.
- Throws:
IllegalArgumentException
- if the name is null.
-