Interface StudioBlobStoreResolver

  • All Superinterfaces:
    org.craftercms.commons.file.blob.BlobStoreResolver
    All Known Implementing Classes:
    StudioBlobStoreResolverImpl

    public interface StudioBlobStoreResolver
    extends org.craftercms.commons.file.blob.BlobStoreResolver
    Extension of BlobStoreResolver that adds site multi-tenancy
    Since:
    3.1.6
    Author:
    joseross
    • Method Detail

      • getById

        default org.craftercms.commons.file.blob.BlobStore getById​(org.craftercms.commons.config.ConfigurationProvider provider,
                                                                   String storeId)
                                                            throws org.craftercms.commons.config.ConfigurationException
        Specified by:
        getById in interface org.craftercms.commons.file.blob.BlobStoreResolver
        Throws:
        org.craftercms.commons.config.ConfigurationException
      • getByPaths

        org.craftercms.commons.file.blob.BlobStore getByPaths​(String site,
                                                              String... paths)
                                                       throws ServiceLayerException
        Returns the first StudioBlobStore compatible with all given paths for the given site
        Parameters:
        site - the id of the site
        paths - the lists of paths to check
        Returns:
        the blob store object
        Throws:
        ServiceLayerException - if there is any error looking up the stores
      • isBlob

        boolean isBlob​(String site,
                       String path)
                throws ServiceLayerException
        Indicates if a given path belongs to a blob store
        Parameters:
        site - the id of the site
        path - the path to check
        Returns:
        true if there is a matching blob store
        Throws:
        ServiceLayerException - if there is any error looking up the stores