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 Summary
Modifier and TypeMethodDescriptionReturns allStudioBlobStore
configured for the given sitedefault org.craftercms.commons.file.blob.BlobStore
getByPaths
(String site, String... paths) Returns the firstStudioBlobStore
compatible with all given paths for the given siteboolean
Indicates if a given path belongs to a blob store
-
Method Details
-
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 interfaceorg.craftercms.commons.file.blob.BlobStoreResolver
- Throws:
org.craftercms.commons.config.ConfigurationException
-
getAll
Returns allStudioBlobStore
configured for the given site- Parameters:
siteId
- the id of the site- Returns:
- list of blob stores
- Throws:
ServiceLayerException
-
getByPaths
Returns the firstStudioBlobStore
compatible with all given paths for the given site- Parameters:
site
- the id of the sitepaths
- the lists of paths to check- Returns:
- the blob store object
- Throws:
ServiceLayerException
- if there is any error looking up the stores
-
isBlob
Indicates if a given path belongs to a blob store- Parameters:
site
- the id of the sitepath
- the path to check- Returns:
- true if there is a matching blob store
- Throws:
ServiceLayerException
- if there is any error looking up the stores
-