public class ThreadLocalCachingPermissionManager extends WorkflowBasedPermissionManager
Constructor and Description |
---|
ThreadLocalCachingPermissionManager(WorkflowPermissionFactory workflowPermissionFactory,
PermissionContextFactory permissionContextFactory,
ProjectPermissionTypesManager projectPermissionTypesManager,
ProjectPermissionOverrideDescriptorCache projectPermissionOverrideDescriptorCache,
ScopesRequestCacheDelegate scopesRequestCacheDelegate) |
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Flushes any cached project permissions for all users.
|
Collection<Project> |
getProjectObjects(ProjectPermissionKey permissionKey,
ApplicationUser user) |
boolean |
hasPermission(ProjectPermissionKey permissionKey,
Project project,
ApplicationUser user)
Checks whether the specified user has a specified permission within the context of a specified project.
|
hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission, hasPermission
getAllGroups, getAllProjectPermissions, getArchivedProjectObjects, getArchivedProjects, getProjectPermission, getProjectPermissions, getProjects, getProjects, getProjects, getProjects, hasPermission, hasProjects, hasProjects, hasProjectWidePermission, isGlobalPermission, removeGroupPermissions, removeUserPermissions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasPublicAccess
public ThreadLocalCachingPermissionManager(WorkflowPermissionFactory workflowPermissionFactory, PermissionContextFactory permissionContextFactory, ProjectPermissionTypesManager projectPermissionTypesManager, ProjectPermissionOverrideDescriptorCache projectPermissionOverrideDescriptorCache, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
public Collection<Project> getProjectObjects(ProjectPermissionKey permissionKey, ApplicationUser user)
getProjectObjects
in class DefaultPermissionManager
public boolean hasPermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project, @Nullable ApplicationUser user)
PermissionManager
hasPermission
in interface PermissionManager
hasPermission
in class WorkflowBasedPermissionManager
permissionKey
- A non-global permission, i.e. a permission that is granted via a project contextproject
- The project that is the context of the permission check.user
- The person to perform the permission check forPermissionManager.hasProjectWidePermission(ProjectPermissionKey, Project, ApplicationUser)
public void flushCache()
PermissionManager
flushCache
in interface PermissionManager
flushCache
in class DefaultPermissionManager
Copyright © 2002-2022 Atlassian. All Rights Reserved.