Interface PermissionQueryCache

All Known Implementing Classes:
DefaultPermissionQueryCache

@Deprecated(since="10.4", forRemoval=true) public interface PermissionQueryCache
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4 use PermissionsQueryCache
Cache for holding precomputed JQL permission query filter. See JRASERVER-14980
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated, for removal: This API element is subject to removal in a future version.
    Disables cache usage for this http request.
    Optional<org.apache.lucene.search.Query>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets permission cache for passed searchUser.
    Optional<org.apache.lucene.search.Query>
    Deprecated, for removal: This API element is subject to removal in a future version.
    Gets permission cache for passed searchUser in given projects.
  • Method Details

    • getPermissionQuery

      Optional<org.apache.lucene.search.Query> getPermissionQuery(ApplicationUser searchUser)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets permission cache for passed searchUser.
      Parameters:
      searchUser - Application user
      Returns:
      Optional 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).
    • getPermissionQuery

      Optional<org.apache.lucene.search.Query> getPermissionQuery(ApplicationUser searchUser, @Nullable Collection<Project> projects)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets permission cache for passed searchUser in given projects.
      Parameters:
      searchUser - Application user
      projects - List of projects
      Returns:
      Optional 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).
    • disableCacheForRequest

      void disableCacheForRequest()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Disables cache usage for this http request.