Interface PermissionContextFactory

All Known Implementing Classes:
DefaultPermissionContextFactory

public interface PermissionContextFactory
This class is used to generate PermissionContext for the given parameters.
  • Method Details

    • getPermissionContext

      PermissionContext getPermissionContext(org.ofbiz.core.entity.GenericValue projectOrIssue)
      Deprecated.
    • getPermissionContext

      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.
    • 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

      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.
      Since:
      v7.0.3
    • getPermissionContext

      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.
    • getPermissionContext

      PermissionContext getPermissionContext(OperationContext operationContext, Issue issue)
      Deprecated.