Package com.day.cq.dam.scene7.api
Interface Scene7AssetMimetypeService
-
@ProviderType public interface Scene7AssetMimetypeService
TheScene7AssetMimeTypeService
is responsible for identifying the Scene7 "fake" mime type for the various S7 imported assets.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
BLACK_LISTED_MIME_TYPES
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
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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 typesjava.lang.Boolean
isMimeTypeAllowedProfileUse(java.lang.String mimeType)
Check if processing profile use is allowed for mimeTypejava.lang.Boolean
isMimetypePreviewable(ResourceResolver resolver, java.lang.String resourcePath)
Check if it's previewable by Scene7 IS server.java.lang.Boolean
isMimeTypeSupported(java.lang.String mimeType)
Check if mimeType is supported or notvoid
updateSupportedMimeTypes()
Updates the list of supported MIME types from OSGi configuration tovoid
updateSupportedMimeTypes(Resource s7ConfigResource, ResourceResolver rr)
Updates the list of supported MIME types from OSGi configuration to
-
-
-
Field Detail
-
SCR_PROP_NAME_ASSET_MIMETYPES
static final java.lang.String SCR_PROP_NAME_ASSET_MIMETYPES
- See Also:
- Constant Field Values
-
SCR_PROP_DEFAULT_ASSET_MIMETYPES
static final java.lang.String[] SCR_PROP_DEFAULT_ASSET_MIMETYPES
-
BLACK_LISTED_MIME_TYPES
static final java.lang.String[] BLACK_LISTED_MIME_TYPES
-
IGNORED_MIMETYPES_FOR_PROFILE
static final java.lang.String IGNORED_MIMETYPES_FOR_PROFILE
- See Also:
- Constant Field Values
-
DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE
static final java.lang.String[] DEFAULT_IGNORED_MIMETYPES_FOR_PROFILE
-
REL_PATH_MIME_TYPES
static final java.lang.String REL_PATH_MIME_TYPES
- See Also:
- Constant Field Values
-
-
Method Detail
-
getMimeTypeForAsset
java.lang.String getMimeTypeForAsset(Asset asset)
Returns a configured MIME type for a CQ DAM asset imported from Scene7.- Parameters:
asset
- the CQ DAM asset- Returns:
- a String containing the MIME type or null if no MIME type has been identified
-
getMimeTypeForAssetType
java.lang.String getMimeTypeForAssetType(Scene7AssetType assetType, java.lang.String extension)
Returns a configured mime type for a Scene7 asset type.- Parameters:
assetType
- the asset typeextension
- the extension for the asset- Returns:
- a String containing the MIME type or null if no MIME type has been identified
-
getSupportedMimeTypes
java.util.List<java.lang.String> getSupportedMimeTypes()
Returns a list of supported MIME types- Returns:
- a list of String of MIME types
-
updateSupportedMimeTypes
void updateSupportedMimeTypes(Resource s7ConfigResource, ResourceResolver rr)
Updates the list of supported MIME types from OSGi configuration to- Parameters:
s7ConfigResource
- the targeted Scene7 cloud configurationrr
- resource resolver to update Scene7 configuration resource
-
updateSupportedMimeTypes
void updateSupportedMimeTypes()
Updates the list of supported MIME types from OSGi configuration to
-
isMimetypePreviewable
java.lang.Boolean isMimetypePreviewable(ResourceResolver resolver, java.lang.String resourcePath)
Check if it's previewable by Scene7 IS server.- Parameters:
resolver
-resourcePath
-
-
isMimeTypeAllowedProfileUse
java.lang.Boolean isMimeTypeAllowedProfileUse(java.lang.String mimeType)
Check if processing profile use is allowed for mimeType- Parameters:
mimeType
-
-
isMimeTypeSupported
java.lang.Boolean isMimeTypeSupported(java.lang.String mimeType)
Check if mimeType is supported or not- Parameters:
mimeType
-
-
-