Package com.atlassian.jira.permission
Interface PermissionContextFactory
- All Known Implementing Classes:
DefaultPermissionContextFactory
public interface PermissionContextFactory
This class is used to generate
PermissionContext
for the given parameters.-
Method Summary
Modifier and TypeMethodDescriptiongetPermissionContext
(OperationContext operationContext, Issue issue) Deprecated.getPermissionContext
(Issue issue) Get the permission context for the given issue.getPermissionContext
(Issue issue, Status status) Get the permission context for the given issue if it was in the given status.getPermissionContext
(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor) Get the permission context for the given issue at the end of the given workflow action.getPermissionContext
(Project project) Get the permission context for the given project.getPermissionContext
(org.ofbiz.core.entity.GenericValue projectOrIssue) Deprecated.UsegetPermissionContext(Issue)
orgetPermissionContext(Project)
instead.
-
Method Details
-
getPermissionContext
Deprecated.UsegetPermissionContext(Issue)
orgetPermissionContext(Project)
instead. Since v5.0. -
getPermissionContext
Get the permission context for the given issue.- Parameters:
issue
- The issue for which the permission context is to be generated.- Returns:
- the context that should be used for permission checking.
-
getPermissionContext
PermissionContext getPermissionContext(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor) Get the permission context for the given issue at the end of the given workflow action.- Parameters:
issue
- The issue for which the permission context is to be generated.actionDescriptor
- The workflow action that is occurring.- Returns:
- the context that should be used for permission checking.
-
getPermissionContext
Get the permission context for the given issue if it was in the given status.- Parameters:
issue
- The issue for which the permission context is to be generated.status
- The status that we pretend the issue is in for checking permissions.- Returns:
- the context that should be used for permission checking.
- Since:
- v7.0.3
-
getPermissionContext
Get the permission context for the given project.- Parameters:
project
- The project for which the permission context is to be generated.- Returns:
- the context that should be used for permission checking.
-
getPermissionContext
Deprecated.UsegetPermissionContext(Issue, ActionDescriptor)
instead. Since v5.0.
-
getPermissionContext(Issue, ActionDescriptor)
instead.