Package com.atlassian.jira.permission
Class PermissionContextImpl
java.lang.Object
com.atlassian.jira.permission.PermissionContextImpl
- All Implemented Interfaces:
PermissionContext
Default
PermissionContext implementation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetIssue()final org.ofbiz.core.entity.GenericValueReturns the Project in this context.final ProjectReturns the Project in this context.com.opensymphony.workflow.loader.StepDescriptorReturns the relevant workflow step for the Issue in this contextbooleanWhether we have enough information to look up issue-specific (workflow) permissions.booleanWhether 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:PermissionContextReturns the Project in this context.- Specified by:
getProjectin interfacePermissionContext- Returns:
- the Project in this context.
-
getProjectObject
Description copied from interface:PermissionContextReturns the Project in this context.- Specified by:
getProjectObjectin interfacePermissionContext- Returns:
- the Project in this context.
-
getIssue
- Specified by:
getIssuein interfacePermissionContext
-
isHasCreatedIssue
public boolean isHasCreatedIssue()Description copied from interface:PermissionContextWhether 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:
isHasCreatedIssuein interfacePermissionContext- Returns:
- true if this PermissionContext has an existing fully-formed issue.
-
getStatus
- Specified by:
getStatusin interfacePermissionContext
-
getRelevantStepDescriptor
public com.opensymphony.workflow.loader.StepDescriptor getRelevantStepDescriptor()Description copied from interface:PermissionContextReturns the relevant workflow step for the Issue in this context- Specified by:
getRelevantStepDescriptorin interfacePermissionContext- Returns:
- the relevant workflow step for the Issue in this context
-
hasIssuePermissions
public boolean hasIssuePermissions()Description copied from interface:PermissionContextWhether 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:
hasIssuePermissionsin interfacePermissionContext- Returns:
- true if this PermissionContext has an existing fully-formed issue.
-