Class InternalAssetProperties.StorageProvider
java.lang.Object
com.broadleafcommerce.asset.autoconfigure.InternalAssetProperties.StorageProvider
- Enclosing class:
- InternalAssetProperties
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Properties related to the using the filesystem as the Asset digital content storage provider.static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe properties for theFilesystemStorageProvider
.The properties for theGoogleCloudStorageProvider
.The name of the storage provider implementation.Set of MIME types that determine which types of resources are allowed to be uploaded.void
The properties for theFilesystemStorageProvider
.void
setGoogleCloudStorage
(InternalAssetProperties.StorageProvider.GoogleCloudStorage googleCloudStorage) The properties for theGoogleCloudStorageProvider
.void
setImplementation
(String implementation) The name of the storage provider implementation.void
setMimeTypeWhitelist
(Set<String> mimeTypeWhitelist) Set of MIME types that determine which types of resources are allowed to be uploaded.toString()
-
Constructor Details
-
StorageProvider
public StorageProvider()
-
-
Method Details
-
getImplementation
The name of the storage provider implementation. SupportsFILESYSTEM
to use theFilesystemStorageProvider
orGCS
(Google Cloud Storage) to use theGoogleCloudStorageProvider
. Defaults toFILESYSTEM
. -
getMimeTypeWhitelist
Set of MIME types that determine which types of resources are allowed to be uploaded. Ultimately, the validation logic for this depends on the specific StorageProvider implementation. A typical implementation may choose to do the following: if this property value is not empty, resources with a MIME type not in this set will be rejected. If this property value is empty, ALL resources will be allowed (effectively disabling validation). -
getFilesystem
The properties for theFilesystemStorageProvider
. -
getGoogleCloudStorage
The properties for theGoogleCloudStorageProvider
. -
setImplementation
The name of the storage provider implementation. SupportsFILESYSTEM
to use theFilesystemStorageProvider
orGCS
(Google Cloud Storage) to use theGoogleCloudStorageProvider
. Defaults toFILESYSTEM
. -
setMimeTypeWhitelist
Set of MIME types that determine which types of resources are allowed to be uploaded. Ultimately, the validation logic for this depends on the specific StorageProvider implementation. A typical implementation may choose to do the following: if this property value is not empty, resources with a MIME type not in this set will be rejected. If this property value is empty, ALL resources will be allowed (effectively disabling validation). -
setFilesystem
The properties for theFilesystemStorageProvider
. -
setGoogleCloudStorage
public void setGoogleCloudStorage(InternalAssetProperties.StorageProvider.GoogleCloudStorage googleCloudStorage) The properties for theGoogleCloudStorageProvider
. -
toString
-