com.atlassian.jira.security
Class ThreadLocalCachingPermissionManager

java.lang.Object
  extended by com.atlassian.jira.security.AbstractPermissionManager
      extended by com.atlassian.jira.security.DefaultPermissionManager
          extended by com.atlassian.jira.security.WorkflowBasedPermissionManager
              extended by com.atlassian.jira.security.ThreadLocalCachingPermissionManager
All Implemented Interfaces:
JiraManager, PermissionManager

public class ThreadLocalCachingPermissionManager
extends WorkflowBasedPermissionManager


Constructor Summary
ThreadLocalCachingPermissionManager(WorkflowPermissionFactory workflowPermissionFactory, PermissionContextFactory permissionContextFactory, ProjectFactory projectFactory)
           
 
Method Summary
 java.util.Collection<Project> getProjectObjects(int permissionId, com.opensymphony.user.User user)
          Retrieve a list of project objects this user has the permission for
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId, com.opensymphony.user.User user)
          Retrieve a list of projects this user has the permission for
 
Methods inherited from class com.atlassian.jira.security.WorkflowBasedPermissionManager
hasPermission
 
Methods inherited from class com.atlassian.jira.security.AbstractPermissionManager
addPermission, getAllGroups, getPermissionSchemeManager, getProjectManager, getProjects, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasProjectPermission, hasProjects, isGlobalPermission, removeGroupPermissions, removeUserPermissions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreadLocalCachingPermissionManager

public ThreadLocalCachingPermissionManager(WorkflowPermissionFactory workflowPermissionFactory,
                                           PermissionContextFactory permissionContextFactory,
                                           ProjectFactory projectFactory)
Method Detail

getProjects

public java.util.Collection<org.ofbiz.core.entity.GenericValue> getProjects(int permissionId,
                                                                            com.opensymphony.user.User user)
Description copied from class: AbstractPermissionManager
Retrieve a list of projects this user has the permission for

Specified by:
getProjects in interface PermissionManager
Overrides:
getProjects in class AbstractPermissionManager
Parameters:
permissionId - must NOT be a global permission
user - user
Returns:
a collection of GenericValue objects

getProjectObjects

public java.util.Collection<Project> getProjectObjects(int permissionId,
                                                       com.opensymphony.user.User user)
Description copied from interface: PermissionManager
Retrieve a list of project objects this user has the permission for

Specified by:
getProjectObjects in interface PermissionManager
Overrides:
getProjectObjects in class AbstractPermissionManager
Parameters:
permissionId - must NOT be a global permission
user - user
Returns:
a collection of Project objects


Copyright © 2002-2010 Atlassian. All Rights Reserved.