public interface

PermissionContextFactory

com.atlassian.jira.permission.PermissionContextFactory
Known Indirect Subclasses

Class Overview

This class is used to generate PermissionContext for the given parameters.

Summary

Public Methods
PermissionContext getPermissionContext(Project project)
Get the permission context for the given project.
PermissionContext getPermissionContext(Issue issue, ActionDescriptor actionDescriptor)
Get the permission context for the given issue at the end of the given workflow action.
PermissionContext getPermissionContext(OperationContext operationContext, Issue issue)
This method is deprecated. Use getPermissionContext(Issue, ActionDescriptor) instead. Since v5.0.
PermissionContext getPermissionContext(GenericValue projectOrIssue)
This method is deprecated. Use getPermissionContext(Issue) or getPermissionContext(Project) instead. Since v5.0.
PermissionContext getPermissionContext(Issue issue, Status status)
Get the permission context for the given issue if it was in the given status.
PermissionContext getPermissionContext(Issue issue)
Get the permission context for the given issue.

Public Methods

public PermissionContext getPermissionContext (Project project)

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.

public PermissionContext getPermissionContext (Issue issue, 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.

public PermissionContext getPermissionContext (OperationContext operationContext, Issue issue)

This method is deprecated.
Use getPermissionContext(Issue, ActionDescriptor) instead. Since v5.0.

public PermissionContext getPermissionContext (GenericValue projectOrIssue)

This method is deprecated.
Use getPermissionContext(Issue) or getPermissionContext(Project) instead. Since v5.0.

public PermissionContext getPermissionContext (Issue issue, Status status)

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.

public PermissionContext getPermissionContext (Issue issue)

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.