com.atlassian.jira.permission
Class DefaultPermissionContextFactory

java.lang.Object
  extended by com.atlassian.jira.permission.DefaultPermissionContextFactory
All Implemented Interfaces:
PermissionContextFactory

public class DefaultPermissionContextFactory
extends Object
implements PermissionContextFactory


Constructor Summary
DefaultPermissionContextFactory(WorkflowManager workflowManager)
           
 
Method Summary
 PermissionContext getPermissionContext(org.ofbiz.core.entity.GenericValue projectOrIssue)
           
 PermissionContext getPermissionContext(Issue issue)
           
 PermissionContext getPermissionContext(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
           
 PermissionContext getPermissionContext(Issue issue, Status issueStatus)
           
 PermissionContext getPermissionContext(OperationContext operationContext, Issue issue)
          Checks if we're in a workflow operation, and if so constructs a PermissionContext with the destination status.
 PermissionContext getPermissionContext(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPermissionContextFactory

public DefaultPermissionContextFactory(WorkflowManager workflowManager)
Method Detail

getPermissionContext

public PermissionContext getPermissionContext(Issue issue)
Specified by:
getPermissionContext in interface PermissionContextFactory

getPermissionContext

public PermissionContext getPermissionContext(Project project)
Specified by:
getPermissionContext in interface PermissionContextFactory

getPermissionContext

public PermissionContext getPermissionContext(Issue issue,
                                              Status issueStatus)

getPermissionContext

public PermissionContext getPermissionContext(org.ofbiz.core.entity.GenericValue projectOrIssue)
Specified by:
getPermissionContext in interface PermissionContextFactory

getPermissionContext

public PermissionContext getPermissionContext(Issue issue,
                                              com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
Specified by:
getPermissionContext in interface PermissionContextFactory

getPermissionContext

public PermissionContext getPermissionContext(OperationContext operationContext,
                                              Issue issue)
Checks if we're in a workflow operation, and if so constructs a PermissionContext with the destination status. Otherwise returns a normal PC wrapping the issue.

Specified by:
getPermissionContext in interface PermissionContextFactory


Copyright © 2002-2012 Atlassian. All Rights Reserved.