com.atlassian.jira.permission
Class PermissionContextImpl

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

public class PermissionContextImpl
extends java.lang.Object
implements PermissionContext

Default PermissionContext implementation.


Constructor Summary
protected PermissionContextImpl(Issue issue, org.ofbiz.core.entity.GenericValue project, Status status)
           
 
Method Summary
 Issue getIssue()
           
 org.ofbiz.core.entity.GenericValue getProject()
           
 com.opensymphony.workflow.loader.StepDescriptor getRelevantStepDescriptor()
          Given a Permission Context, get the relevant workflow step.
 Status getStatus()
           
 boolean hasIssuePermissions()
          Whether we have enough information to look up issue-specific (workflow) permissions.
 boolean isHasCreatedIssue()
          Whether the PermissionContext has an existing (not 'being created') issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionContextImpl

protected PermissionContextImpl(Issue issue,
                                org.ofbiz.core.entity.GenericValue project,
                                Status status)
Method Detail

getProject

public final org.ofbiz.core.entity.GenericValue getProject()
Specified by:
getProject in interface PermissionContext

getIssue

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

isHasCreatedIssue

public boolean isHasCreatedIssue()
Description copied from interface: PermissionContext
Whether the PermissionContext has an existing (not 'being created') issue. 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

getStatus

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

getRelevantStepDescriptor

public com.opensymphony.workflow.loader.StepDescriptor getRelevantStepDescriptor()
Given a Permission Context, get the relevant workflow step. This will either be the issue's or a step set explicitly.

Specified by:
getRelevantStepDescriptor in interface PermissionContext

hasIssuePermissions

public boolean hasIssuePermissions()
Description copied from interface: PermissionContext
Whether we have enough information to look up issue-specific (workflow) permissions.

Specified by:
hasIssuePermissions in interface PermissionContext


Copyright © 2002-2010 Atlassian. All Rights Reserved.