Interface TemplateImageResolver
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
DefaultImageResolver
@AlfrescoPublicApi public interface TemplateImageResolver extends java.io.SerializableInterface contract for the conversion of file name to a fully qualified icon image path for use by templating and scripting engines executing within the repository context.Generally this contract will be implemented by classes that have access to say the webserver context which can be used to generate an icon image for a specific filename.
- Author:
- Kevin Roast
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringresolveImagePathForName(java.lang.String filename, FileTypeImageSize size)Resolve the qualified icon image path for the specified filename
-
-
-
Method Detail
-
resolveImagePathForName
java.lang.String resolveImagePathForName(java.lang.String filename, FileTypeImageSize size)Resolve the qualified icon image path for the specified filename- Parameters:
filename- The file name to resolve image path forsize- Enum representing the size of the image to retrieve- Returns:
- image path for the specified filename and image size
-
-