Class DefaultPermissionsQueryCache
java.lang.Object
com.atlassian.jira.search.permissions.DefaultPermissionsQueryCache
- All Implemented Interfaces:
PermissionsQueryCache
Search API version of cache for holding precomputed JQL permission query filter.
See JRASERVER-14980.
In current implementation second call to
getPermissionQuery
causes permission filter to be precomputed and cached in CachingWrapperFilter
which gives us an extra benefit of precalculating its BitSet.
Caching can be disabled:
- globally by disabling
RequestCacheKeys.WRAP_PERMISSION_FILTER_IN_CACHED_WRAPPER_CACHE
feature flag - per request by using
disableCacheForRequest()
- Since:
- 10.4
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultPermissionsQueryCache
(PermissionsFilterGeneratorImpl permissionsFilterGenerator) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Disables cache usage for this http request.getQuery
(ApplicationUser searchUser, Collection<Project> projects)
-
Constructor Details
-
DefaultPermissionsQueryCache
-
-
Method Details
-
getQuery
- Specified by:
getQuery
in interfacePermissionsQueryCache
-
disableCacheForRequest
public void disableCacheForRequest()Description copied from interface:PermissionsQueryCache
Disables cache usage for this http request.- Specified by:
disableCacheForRequest
in interfacePermissionsQueryCache
-