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 java.lang.String[] |
DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE |
static java.lang.String |
IGNORED_MIMETYPES_FOR_PROFILE |
static java.lang.String |
REL_PATH_MIME_TYPES |
static java.lang.String[] |
SCR_PROP_DEFAULT_ASSET_MIMETYPES |
static java.lang.String |
SCR_PROP_NAME_ASSET_MIMETYPES |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getMimeTypeForAsset(Asset asset)
Returns a configured MIME type for a CQ DAM asset imported from Scene7.
|
java.lang.String |
getMimeTypeForAssetType(Scene7AssetType assetType,
java.lang.String extension)
Returns a configured mime type for a Scene7 asset type.
|
java.util.List<java.lang.String> |
getSupportedMimeTypes()
Returns a list of supported MIME types
|
java.lang.Boolean |
isMimeTypeAllowedProfileUse(java.lang.String mimeType)
Check if processing profile use is allowed for mimeType
|
java.lang.Boolean |
isMimetypePreviewable(ResourceResolver resolver,
java.lang.String resourcePath)
Check if it's previewable by Scene7 IS server.
|
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 java.lang.String SCR_PROP_NAME_ASSET_MIMETYPES
static final java.lang.String[] SCR_PROP_DEFAULT_ASSET_MIMETYPES
static final java.lang.String IGNORED_MIMETYPES_FOR_PROFILE
static final java.lang.String[] DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE
static final java.lang.String REL_PATH_MIME_TYPES
java.lang.String getMimeTypeForAsset(Asset asset)
asset
- the CQ DAM assetjava.lang.String getMimeTypeForAssetType(Scene7AssetType assetType, java.lang.String extension)
assetType
- the asset typeextension
- the extension for the assetjava.util.List<java.lang.String> getSupportedMimeTypes()
void updateSupportedMimeTypes(Resource s7ConfigResource, ResourceResolver rr)
s7ConfigResource
- the targeted Scene7 cloud configurationrr
- resource resolver to update Scene7 configuration resourcevoid updateSupportedMimeTypes()
java.lang.Boolean isMimetypePreviewable(ResourceResolver resolver, java.lang.String resourcePath)
resolver
- resourcePath
- java.lang.Boolean isMimeTypeAllowedProfileUse(java.lang.String mimeType)
mimeType
- "Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"