@ProviderType public interface DamMimeUtils
Modifier and Type | Method and Description |
---|---|
boolean |
getDetectMimeFromContent()
Returns of content-based-MIME-detection is enabled
|
boolean |
isAllowedMimeType(java.lang.String nameMimeType,
java.lang.String contentMimeType)
Based on current state of the service, this method evaluates if currently provided
MIME (as detected from asset name, and optionally asset content) is allowed for upload
or not
|
void |
setAllowAllMimeAttribute(boolean val)
This method updates the status of 'cq.dam.allow.all.mime' property
of "Day CQ DAM Asset Upload Restriction" OSGi configuration in
the DamMimeUtil service
|
void |
setDetectMimeFromContent(boolean val)
This method updates the status of 'cq.dam.detect.asset.mime.from.content' property
of "Day CQ DAM Mime Type Service" OSGi configuration
|
void |
setSupportedMimeTypes(java.lang.String[] mimeList)
This method updates the status of 'cq.dam.allowed.asset.mimes' property
of "Day CQ DAM Asset Upload Restriction" OSGi configuration in
the DamMimeUtil service
|
void setAllowAllMimeAttribute(boolean val)
val
- the value to update service withvoid setDetectMimeFromContent(boolean val)
val
- the value to update service withvoid setSupportedMimeTypes(java.lang.String[] mimeList)
mimeList
- an array of regex-strings specifying supported/whitelisted MIMEsboolean isAllowedMimeType(java.lang.String nameMimeType, java.lang.String contentMimeType)
nameMimeType
- MIME of the asset as detected from its namecontentMimeType
- MIME of the asset as detected from its content
(can be null, but if present is preferred over nameMimeType)boolean getDetectMimeFromContent()
Copyright © 2010 - 2020 Adobe. All Rights Reserved