@PublicApi public enum SharedEntitySearchContext extends Enum<SharedEntitySearchContext>
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.
Enum Constant and Description |
---|
ADMINISTER |
USE |
Modifier and Type | Method and Description |
---|---|
static SharedEntitySearchContext |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SharedEntitySearchContext[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SharedEntitySearchContext USE
public static final SharedEntitySearchContext ADMINISTER
public static SharedEntitySearchContext[] values()
for (SharedEntitySearchContext c : SharedEntitySearchContext.values()) System.out.println(c);
public static SharedEntitySearchContext 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 nullCopyright © 2002-2019 Atlassian. All Rights Reserved.