@ExperimentalApi @ParametersAreNonnullByDefault public class FieldScreenOperationContext extends Object
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Optional<Project> |
getProject() |
ApplicationUser |
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.
|
public ApplicationUser getUser()
public Optional<Project> getProject()
public static FieldScreenOperationContext ofUserAndProject(ApplicationUser user, @Nullable Project project)
user
- a user performing operationproject
- a project in which context operation is being performedpublic static FieldScreenOperationContext ofUser(ApplicationUser user)
user
- user performing operationCopyright © 2002-2019 Atlassian. All Rights Reserved.