com.atlassian.jira.permission
Class PermissionContextImpl

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

public class PermissionContextImpl
extends Object
implements PermissionContext

Default PermissionContext implementation.


Constructor Summary
PermissionContextImpl(Issue issue, Project project, Status status)
           
 
Method Summary
 Issue getIssue()
           
 org.ofbiz.core.entity.GenericValue getProject()
          Returns the Project in this context.
 Project getProjectObject()
          Returns the Project in this context.
 com.opensymphony.workflow.loader.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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermissionContextImpl

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

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.


Copyright © 2002-2014 Atlassian. All Rights Reserved.