Package com.day.cq.dam.api.handler.store
Interface AssetStore
-
public interface AssetStoreTheAssetStoreclass ...
-
-
Field Summary
Fields Modifier and Type Field Description static intSIZE_LARGEIcon size: large.static intSIZE_MEDIUMIcon size: medium.static intSIZE_SMALLIcon size: small.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description AssetHandler[]getAllAssetHandler()Return an array of all available media handlers.AssetHandlergetAssetHandler(java.lang.String mimeType)Get the media handler for the mime type.java.util.Map<java.lang.String,AssetHandlerInfo>getAssetHandlerInfos()Return a map ofAssetHandlerInfos hashed by their service id.java.lang.StringgetFileNameSuffix(java.lang.String mimeType)Deprecated.useMimeTypeService.getExtension(String)insteadjava.lang.StringgetIconPath(java.lang.String mimeType, int size)Deprecated.no replacementjava.lang.StringgetMimeType(java.lang.String filename)Deprecated.useMimeTypeService.getMimeType(String)instead
-
-
-
Field Detail
-
SIZE_SMALL
static final int SIZE_SMALL
Icon size: small.- See Also:
- Constant Field Values
-
SIZE_MEDIUM
static final int SIZE_MEDIUM
Icon size: medium.- See Also:
- Constant Field Values
-
SIZE_LARGE
static final int SIZE_LARGE
Icon size: large.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAssetHandler
AssetHandler getAssetHandler(java.lang.String mimeType)
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
java.util.Map<java.lang.String,AssetHandlerInfo> getAssetHandlerInfos()
Return a map ofAssetHandlerInfos hashed by their service id.- Returns:
- a map of
AssetHandlerInfos hashed by their service id.
-
getMimeType
@Deprecated java.lang.String getMimeType(java.lang.String filename)
Deprecated.useMimeTypeService.getMimeType(String)insteadReturns the proper mime type for the given filename- Parameters:
filename- filename- Returns:
- mime type as string
-
getFileNameSuffix
@Deprecated java.lang.String getFileNameSuffix(java.lang.String mimeType)
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 java.lang.String getIconPath(java.lang.String mimeType, int size)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.
-
-