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, hasPermissiongetAllGroups, getAllProjectPermissions, getArchivedProjectObjects, getArchivedProjects, getProjectPermission, getProjectPermissions, getProjects, getProjects, getProjects, getProjects, hasPermission, hasProjects, hasProjects, hasProjectWidePermission, isGlobalPermission, removeGroupPermissions, removeUserPermissionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasPublicAccesspublic ThreadLocalCachingPermissionManager(WorkflowPermissionFactory workflowPermissionFactory, PermissionContextFactory permissionContextFactory, ProjectPermissionTypesManager projectPermissionTypesManager, ProjectPermissionOverrideDescriptorCache projectPermissionOverrideDescriptorCache, ScopesRequestCacheDelegate scopesRequestCacheDelegate)
public Collection<Project> getProjectObjects(ProjectPermissionKey permissionKey, ApplicationUser user)
getProjectObjects in class DefaultPermissionManagerpublic boolean hasPermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project, @Nullable ApplicationUser user)
PermissionManagerhasPermission in interface PermissionManagerhasPermission in class WorkflowBasedPermissionManagerpermissionKey - 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()
PermissionManagerflushCache in interface PermissionManagerflushCache in class DefaultPermissionManagerCopyright © 2002-2022 Atlassian. All Rights Reserved.