Package com.day.cq.dam.api.handler.store
Interface AssetStore
public interface AssetStore
The
AssetStore
class ...-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Icon size: large.static final int
Icon size: medium.static final int
Icon size: small. -
Method Summary
Modifier and TypeMethodDescriptionReturn an array of all available media handlers.getAssetHandler
(String mimeType) Get the media handler for the mime type.Return a map ofAssetHandlerInfo
s hashed by their service id.getFileNameSuffix
(String mimeType) Deprecated.getIconPath
(String mimeType, int size) Deprecated.no replacementgetMimeType
(String filename) Deprecated.useMimeTypeService.getMimeType(String)
instead
-
Field Details
-
SIZE_SMALL
static final int SIZE_SMALLIcon size: small.- See Also:
-
SIZE_MEDIUM
static final int SIZE_MEDIUMIcon size: medium.- See Also:
-
SIZE_LARGE
static final int SIZE_LARGEIcon size: large.- See Also:
-
-
Method Details
-
getAssetHandler
Get the media handler for the mime type.- Parameters:
mimeType
- The mime type.- Returns:
- Returns the special media handler for the mime type or if no special media handler is available, the default handler is returned.
-
getAllAssetHandler
AssetHandler[] getAllAssetHandler()Return an array of all available media handlers.- Returns:
- An array of media handlers or an empty array if no handlers are registered.
-
getAssetHandlerInfos
Map<String,AssetHandlerInfo> getAssetHandlerInfos()Return a map ofAssetHandlerInfo
s hashed by their service id.- Returns:
- a map of
AssetHandlerInfo
s hashed by their service id.
-
getMimeType
Deprecated.useMimeTypeService.getMimeType(String)
insteadReturns the proper mime type for the given filename- Parameters:
filename
- filename- Returns:
- mime type as string
-
getFileNameSuffix
Deprecated.useMimeTypeService.getExtension(String)
insteadReturn a file ending for a mime type.- Parameters:
mimeType
- - The mime type for which the file ending is to be found- Returns:
- the file ending for a mime type.
-
getIconPath
Deprecated.no replacementReturn the full path to the icon.- Parameters:
mimeType
- - The mime type for which the icon is to be foundsize
- - The size of the icon- Returns:
- the full path to the icon.
-
MimeTypeService.getExtension(String)
instead