Class FieldScreenOperationContext
java.lang.Object
com.atlassian.jira.bc.issue.fields.screen.FieldScreenOperationContext
A representation of a context in which current screen operation is being executed. It always consists of user and optionally may also involve project.
- Since:
- v7.4
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getUser()
int
hashCode()
static FieldScreenOperationContext
ofUser
(ApplicationUser user) Creates new user-only context.static FieldScreenOperationContext
ofUserAndProject
(ApplicationUser user, Project project) Creates user and project context.
-
Method Details
-
getUser
- Returns:
- a user performing operation
-
getProject
- Returns:
- a project in which context operation is being performed. may be empty
-
equals
-
hashCode
public int hashCode() -
ofUserAndProject
public static FieldScreenOperationContext ofUserAndProject(@Nullable ApplicationUser user, @Nullable Project project) Creates user and project context.- Parameters:
user
- a user performing operationproject
- a project in which context operation is being performed- Returns:
-
ofUser
Creates new user-only context. Project is not present- Parameters:
user
- user performing operation- Returns:
- a new context
-