public class DefaultPermissionContextFactory extends Object implements PermissionContextFactory
| Constructor and Description |
|---|
DefaultPermissionContextFactory(WorkflowManager workflowManager) |
| Modifier and Type | Method and Description |
|---|---|
PermissionContext |
getPermissionContext(org.ofbiz.core.entity.GenericValue projectOrIssue) |
PermissionContext |
getPermissionContext(Issue issue)
Get the permission context for the given issue.
|
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.
|
PermissionContext |
getPermissionContext(Issue issue,
Status issueStatus)
Get the permission context for the given issue if it was in the given status.
|
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)
Get the permission context for the given project.
|
public DefaultPermissionContextFactory(WorkflowManager workflowManager)
public PermissionContext getPermissionContext(Issue issue)
PermissionContextFactorygetPermissionContext in interface PermissionContextFactoryissue - The issue for which the permission context is to be generated.public PermissionContext getPermissionContext(Project project)
PermissionContextFactorygetPermissionContext in interface PermissionContextFactoryproject - The project for which the permission context is to be generated.public PermissionContext getPermissionContext(Issue issue, Status issueStatus)
PermissionContextFactorygetPermissionContext in interface PermissionContextFactoryissue - The issue for which the permission context is to be generated.issueStatus - The status that we pretend the issue is in for checking permissions.public PermissionContext getPermissionContext(org.ofbiz.core.entity.GenericValue projectOrIssue)
getPermissionContext in interface PermissionContextFactorypublic PermissionContext getPermissionContext(Issue issue, com.opensymphony.workflow.loader.ActionDescriptor actionDescriptor)
PermissionContextFactorygetPermissionContext in interface PermissionContextFactoryissue - The issue for which the permission context is to be generated.actionDescriptor - The workflow action that is occurring.public PermissionContext getPermissionContext(OperationContext operationContext, Issue issue)
getPermissionContext in interface PermissionContextFactoryCopyright © 2002-2021 Atlassian. All Rights Reserved.