Package com.atlassian.jira.permission
Class PermissionContextImpl
java.lang.Object
com.atlassian.jira.permission.PermissionContextImpl
- All Implemented Interfaces:
PermissionContext
Default
PermissionContext
implementation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetIssue()
final org.ofbiz.core.entity.GenericValue
Returns the Project in this context.final Project
Returns the Project in this context.com.opensymphony.workflow.loader.StepDescriptor
Returns the relevant workflow step for the Issue in this contextboolean
Whether we have enough information to look up issue-specific (workflow) permissions.boolean
Whether this PermissionContext has an existing fully-formed issue (not one that is still being created).
-
Constructor Details
-
PermissionContextImpl
-
-
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 interfacePermissionContext
- Returns:
- the Project in this context.
-
getProjectObject
Description copied from interface:PermissionContext
Returns the Project in this context.- Specified by:
getProjectObject
in interfacePermissionContext
- Returns:
- the Project in this context.
-
getIssue
- Specified by:
getIssue
in interfacePermissionContext
-
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 interfacePermissionContext
- Returns:
- true if this PermissionContext has an existing fully-formed issue.
-
getStatus
- Specified by:
getStatus
in interfacePermissionContext
-
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 interfacePermissionContext
- 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 interfacePermissionContext
- Returns:
- true if this PermissionContext has an existing fully-formed issue.
-