@ProviderType
public interface Scene7AssetMimetypeService
Scene7AssetMimeTypeService
is responsible for identifying the Scene7 "fake" mime type for the various S7 imported assets.Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE |
static String |
IGNORED_MIMETYPES_FOR_PROFILE |
static String |
REL_PATH_MIME_TYPES |
static String[] |
SCR_PROP_DEFAULT_ASSET_MIMETYPES |
static String |
SCR_PROP_NAME_ASSET_MIMETYPES |
Modifier and Type | Method and Description |
---|---|
String |
getMimeTypeForAsset(Asset asset)
Returns a configured MIME type for a CQ DAM asset imported from Scene7.
|
String |
getMimeTypeForAssetType(Scene7AssetType assetType,
String extension)
Returns a configured mime type for a Scene7 asset type.
|
List<String> |
getSupportedMimeTypes()
Returns a list of supported MIME types
|
Boolean |
isMimeTypeAllowedProfileUse(String mimeType)
Check if processing profile use is allowed for mimeType
|
Boolean |
isMimetypePreviewable(ResourceResolver resolver,
String resourcePath)
Check if it's previewable by Scene7 IS server.
|
Boolean |
isMimeTypeSupported(String mimeType)
Check if mimeType is supported or not
|
void |
updateSupportedMimeTypes()
Updates the list of supported MIME types from OSGi configuration to
|
void |
updateSupportedMimeTypes(Resource s7ConfigResource,
ResourceResolver rr)
Updates the list of supported MIME types from OSGi configuration to
|
static final String SCR_PROP_NAME_ASSET_MIMETYPES
static final String[] SCR_PROP_DEFAULT_ASSET_MIMETYPES
static final String IGNORED_MIMETYPES_FOR_PROFILE
static final String[] DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE
static final String REL_PATH_MIME_TYPES
String getMimeTypeForAsset(Asset asset)
asset
- the CQ DAM assetString getMimeTypeForAssetType(Scene7AssetType assetType, String extension)
assetType
- the asset typeextension
- the extension for the assetList<String> getSupportedMimeTypes()
void updateSupportedMimeTypes(Resource s7ConfigResource, ResourceResolver rr)
s7ConfigResource
- the targeted Scene7 cloud configurationrr
- resource resolver to update Scene7 configuration resourcevoid updateSupportedMimeTypes()
Boolean isMimetypePreviewable(ResourceResolver resolver, String resourcePath)
resolver
- resourcePath
- Boolean isMimeTypeAllowedProfileUse(String mimeType)
mimeType
- Copyright © 2010 - 2020 Adobe. All Rights Reserved