com.atlassian.jira.permission
Class PermissionContextImpl
java.lang.Object
com.atlassian.jira.permission.PermissionContextImpl
- All Implemented Interfaces:
- PermissionContext
- public class PermissionContextImpl
- extends Object
- implements PermissionContext
Default PermissionContext
implementation.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
project
final org.ofbiz.core.entity.GenericValue project
issue
final Issue issue
status
final Status status
PermissionContextImpl
protected PermissionContextImpl(Issue issue,
org.ofbiz.core.entity.GenericValue project,
Status status)
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-2006 Atlassian. All Rights Reserved.