Interface TemplateImageResolver

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultImageResolver

@AlfrescoPublicApi public interface TemplateImageResolver extends Serializable
Interface 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 Details

    • resolveImagePathForName

      String resolveImagePathForName(String filename, FileTypeImageSize size)
      Resolve the qualified icon image path for the specified filename
      Parameters:
      filename - The file name to resolve image path for
      size - Enum representing the size of the image to retrieve
      Returns:
      image path for the specified filename and image size