public interface PermissionFilterCache
Modifier and Type | Method and Description |
---|---|
void |
disableCacheForRequest()
Disables cache usage for this http request.
|
Optional<org.apache.lucene.search.Filter> |
getPermissionQueryFilter(ApplicationUser searchUser)
Gets permission cache for passed
searchUser . |
Optional<org.apache.lucene.search.Filter> getPermissionQueryFilter(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).void disableCacheForRequest()
Copyright © 2002-2018 Atlassian. All Rights Reserved.