Interface CatalogPermissionsChecker

  • All Known Implementing Classes:
    DefaultCatalogPermissionsChecker

    public interface CatalogPermissionsChecker
    Permissions checker for catalog read/write permissions.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean hasAccessToCatalog​(org.springframework.security.core.Authentication authentication, javax.servlet.http.HttpServletRequest request, java.lang.String catalog, java.lang.String catalogVersion)
      Checks if given authentication has access to catalog/version with given request.
    • Method Detail

      • hasAccessToCatalog

        boolean hasAccessToCatalog​(org.springframework.security.core.Authentication authentication,
                                   javax.servlet.http.HttpServletRequest request,
                                   java.lang.String catalog,
                                   java.lang.String catalogVersion)
        Checks if given authentication has access to catalog/version with given request.
        Parameters:
        authentication - principal trying to gain access
        request - request made to access catalogVersion
        catalog - name of catalog
        catalogVersion - name of catalog version
        Returns:
        true if request can access given catalogVersion.