Class PermissionContextImpl

java.lang.Object
com.atlassian.jira.permission.PermissionContextImpl
All Implemented Interfaces:
PermissionContext

public class PermissionContextImpl extends Object implements PermissionContext
Default PermissionContext implementation.
  • Constructor Details

    • PermissionContextImpl

      public PermissionContextImpl(Issue issue, Project project, Status status)
  • Method Details

    • getProject

      public final org.ofbiz.core.entity.GenericValue getProject()
      Description copied from interface: PermissionContext
      Returns the Project in this context.
      Specified by:
      getProject in interface PermissionContext
      Returns:
      the Project in this context.
    • getProjectObject

      public final Project getProjectObject()
      Description copied from interface: PermissionContext
      Returns the Project in this context.
      Specified by:
      getProjectObject in interface PermissionContext
      Returns:
      the Project in this context.
    • getIssue

      public Issue getIssue()
      Specified by:
      getIssue in interface PermissionContext
    • isHasCreatedIssue

      public boolean isHasCreatedIssue()
      Description copied from interface: PermissionContext
      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.
      Specified by:
      isHasCreatedIssue in interface PermissionContext
      Returns:
      true if this PermissionContext has an existing fully-formed issue.
    • getStatus

      public Status getStatus()
      Specified by:
      getStatus in interface PermissionContext
    • getRelevantStepDescriptor

      public com.opensymphony.workflow.loader.StepDescriptor getRelevantStepDescriptor()
      Description copied from interface: PermissionContext
      Returns the relevant workflow step for the Issue in this context
      Specified by:
      getRelevantStepDescriptor in interface PermissionContext
      Returns:
      the relevant workflow step for the Issue in this context
    • hasIssuePermissions

      public boolean hasIssuePermissions()
      Description copied from interface: PermissionContext
      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).

      Specified by:
      hasIssuePermissions in interface PermissionContext
      Returns:
      true if this PermissionContext has an existing fully-formed issue.