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 ofBlobStoreResolver
that adds site multi-tenancy- Since:
- 3.1.6
- Author:
- joseross
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description List<StudioBlobStore>
getAll(String siteId)
Returns allStudioBlobStore
configured for the given sitedefault org.craftercms.commons.file.blob.BlobStore
getById(org.craftercms.commons.config.ConfigurationProvider provider, String storeId)
org.craftercms.commons.file.blob.BlobStore
getByPaths(String site, String... paths)
Returns the firstStudioBlobStore
compatible with all given paths for the given siteboolean
isBlob(String site, String path)
Indicates if a given path belongs to a blob store
-
-
-
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 interfaceorg.craftercms.commons.file.blob.BlobStoreResolver
- Throws:
org.craftercms.commons.config.ConfigurationException
-
getAll
List<StudioBlobStore> getAll(String siteId) throws ServiceLayerException
Returns allStudioBlobStore
configured for the given site- Parameters:
siteId
- the id of the site- Returns:
- list of blob stores
- Throws:
ServiceLayerException
-
getByPaths
org.craftercms.commons.file.blob.BlobStore getByPaths(String site, String... paths) throws ServiceLayerException
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
boolean isBlob(String site, String path) throws ServiceLayerException
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
-
-