Class DefaultCatalogPermissionsChecker

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected PermissionsFacade getPermissionsFacade()  
      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.
      protected boolean hasCatalogPermission​(java.lang.String uid, java.lang.String catalog, java.lang.String catalogVersion, java.lang.String permissionName)  
      void setPermissionsFacade​(PermissionsFacade permissionsFacade)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultCatalogPermissionsChecker

        public DefaultCatalogPermissionsChecker()
    • Method Detail

      • hasAccessToCatalog

        public boolean hasAccessToCatalog​(org.springframework.security.core.Authentication authentication,
                                          javax.servlet.http.HttpServletRequest request,
                                          java.lang.String catalog,
                                          java.lang.String catalogVersion)
        Description copied from interface: CatalogPermissionsChecker
        Checks if given authentication has access to catalog/version with given request.
        Specified by:
        hasAccessToCatalog in interface CatalogPermissionsChecker
        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.
      • hasCatalogPermission

        protected boolean hasCatalogPermission​(java.lang.String uid,
                                               java.lang.String catalog,
                                               java.lang.String catalogVersion,
                                               java.lang.String permissionName)
      • setPermissionsFacade

        public void setPermissionsFacade​(PermissionsFacade permissionsFacade)