org.alfresco.service.cmr.repository
Interface TemplateImageResolver

All Superinterfaces:
java.io.Serializable

public interface TemplateImageResolver
extends java.io.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.


Method Summary
 java.lang.String resolveImagePathForName(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 for
size - Enum representing the size of the image to retrieve
Returns:
image path for the specified filename and image size


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.