com.day.cq.dam.api.handler.store
Interface AssetStore


public interface AssetStore

The AssetStore class ...


Field Summary
static int SIZE_LARGE
          Icon size: large.
static int SIZE_MEDIUM
          Icon size: medium.
static int SIZE_SMALL
          Icon size: small.
 
Method Summary
 AssetHandler[] getAllAssetHandler()
          Return an array of all available media handlers.
 AssetHandler getAssetHandler(String mimeType)
          Get the media handler for the mime type.
 Map<String,AssetHandlerInfo> getAssetHandlerInfos()
          Return a map of AssetHandlerInfos hashed by their service id.
 String getFileNameSuffix(String mimeType)
          Return a file ending for a mime type.
 String getIconPath(String mimeType, int size)
          Return the full path to the icon.
 String getMimeType(String filename)
          Returns the proper mime type for the given filename
 

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(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

Map<String,AssetHandlerInfo> getAssetHandlerInfos()
Return a map of AssetHandlerInfos hashed by their service id.

Returns:

getMimeType

String getMimeType(String filename)
Returns the proper mime type for the given filename

Parameters:
filename - filename
Returns:
mime type as string

getFileNameSuffix

String getFileNameSuffix(String mimeType)
Return a file ending for a mime type.


getIconPath

String getIconPath(String mimeType,
                   int size)
Return the full path to the icon.

Returns:


Copyright © 2009 Day Management AG. All Rights Reserved.