public class

PermissionContextImpl

extends Object
implements PermissionContext
java.lang.Object
   ↳ com.atlassian.jira.permission.PermissionContextImpl

Class Overview

Default PermissionContext implementation.

Summary

Public Constructors
PermissionContextImpl(Issue issue, Project project, Status status)
Public Methods
Issue getIssue()
final GenericValue getProject()
Returns the Project in this context.
final Project getProjectObject()
Returns the Project in this context.
StepDescriptor getRelevantStepDescriptor()
Returns the relevant workflow step for the Issue in this context
Status getStatus()
boolean hasIssuePermissions()
Whether we have enough information to look up issue-specific (workflow) permissions.
boolean isHasCreatedIssue()
Whether this PermissionContext has an existing fully-formed issue (not one that is still being created).
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.permission.PermissionContext

Public Constructors

public PermissionContextImpl (Issue issue, Project project, Status status)

Public Methods

public Issue getIssue ()

public final GenericValue getProject ()

Returns the Project in this context.

Returns
  • the Project in this context.

public final Project getProjectObject ()

Returns the Project in this context.

Returns
  • the Project in this context.

public StepDescriptor getRelevantStepDescriptor ()

Returns the relevant workflow step for the Issue in this context

Returns
  • the relevant workflow step for the Issue in this context

public Status getStatus ()

public boolean hasIssuePermissions ()

Whether we have enough information to look up issue-specific (workflow) permissions.

True if this PermissionContext has an existing fully-formed issue (not one that is still being created).

Returns
  • true if this PermissionContext has an existing fully-formed issue.

public boolean isHasCreatedIssue ()

Whether this PermissionContext has an existing fully-formed issue (not one that is still being created). This returns false on the second issue creation page, and on the quick sub-task creation form, where the issue type is unknown.

Returns
  • true if this PermissionContext has an existing fully-formed issue.