Enum Class SharedEntitySearchContext
java.lang.Object
java.lang.Enum<SharedEntitySearchContext>
com.atlassian.jira.sharing.search.SharedEntitySearchContext
- All Implemented Interfaces:
Serializable,Comparable<SharedEntitySearchContext>,Constable
Indicates the context of a shared entity search, shared entities can be searched in "USER" or
"ADMINISTRATION" context.
When searching within a USER context, the search is being performed with the objective of using the results in jira as a user, e.g. favourite the result, use it in a dashboard, see its content in the issue navigator...
Conversely, a search in "ADMINISTRATION" context is being done with the objective of performing administration tasks on the returned search entities, e.g. Delete the entity, change its owner, change its sharing permissions.
Only JIRA Administrators are able to perform "ADMINISTRATION" context queries.
- Since:
- v4.4
-
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 SharedEntitySearchContextReturns the enum constant of this class with the specified name.static SharedEntitySearchContext[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
USE
-
ADMINISTER
-
-
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
-