public interface PermissionQueryCache
Modifier and Type | Method and Description |
---|---|
void |
disableCacheForRequest()
Disables cache usage for this http request.
|
Optional<org.apache.lucene.search.Query> |
getPermissionQuery(ApplicationUser searchUser)
Gets permission cache for passed
searchUser . |
Optional<org.apache.lucene.search.Query> |
getPermissionQuery(ApplicationUser searchUser,
Collection<Project> projects)
Gets permission cache for passed
searchUser in given projects . |
Optional<org.apache.lucene.search.Query> getPermissionQuery(ApplicationUser searchUser)
searchUser
.searchUser
- Application userOptional
with cached permission filter or Optional.empty()
if cache is turned off (either by feature flag or for request) or not applicable for this request (eq. only second and following calls could be cached).Optional<org.apache.lucene.search.Query> getPermissionQuery(ApplicationUser searchUser, @Nullable Collection<Project> projects)
searchUser
in given projects
.searchUser
- Application userprojects
- List of projectsOptional
with cached permission filter or Optional.empty()
if cache is turned off (either by feature flag or for request) or not applicable for this request (eq. only second and following calls could be cached).void disableCacheForRequest()
Copyright © 2002-2021 Atlassian. All Rights Reserved.