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 allStudioBlobStoreconfigured for the given sitegetByPaths(String site, String... paths) Returns the firstStudioBlobStorecompatible with all given paths for the given sitebooleanIndicates if a given path belongs to a blob storeMethods inherited from interface org.craftercms.commons.file.blob.BlobStoreResolver
getById
-
Method Details
-
getAll
Returns allStudioBlobStoreconfigured for the given site- Parameters:
siteId- the id of the site- Returns:
- list of blob stores
- Throws:
ServiceLayerException
-
getByPaths
Returns the firstStudioBlobStorecompatible 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
-