Package org.alfresco.repo.web.scripts
Class FileTypeImageUtils
- java.lang.Object
-
- org.alfresco.repo.web.scripts.FileTypeImageUtils
-
@AlfrescoPublicApi public class FileTypeImageUtils extends Object
Contains utility methods- Author:
- Roy Wetherall
-
-
Constructor Summary
Constructors Constructor Description FileTypeImageUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getFileTypeImage(String name, boolean small)
Return the image path to the filetype icon for the specified file name stringstatic String
getFileTypeImage(javax.faces.context.FacesContext fc, String name, boolean small)
Return the image path to the filetype icon for the specified file name stringstatic String
getFileTypeImage(javax.faces.context.FacesContext fc, String name, FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name stringstatic String
getFileTypeImage(javax.servlet.ServletContext sc, String name, boolean small)
Return the image path to the filetype icon for the specified file name stringstatic String
getFileTypeImage(javax.servlet.ServletContext sc, String name, FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string
-
-
-
Method Detail
-
getFileTypeImage
public static String getFileTypeImage(String name, boolean small)
Return the image path to the filetype icon for the specified file name string- Parameters:
name
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32- Returns:
- the image path for the specified node type or the default icon if not found
-
getFileTypeImage
public static String getFileTypeImage(javax.faces.context.FacesContext fc, String name, boolean small)
Return the image path to the filetype icon for the specified file name string- Parameters:
fc
- FacesContextname
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32- Returns:
- the image path for the specified node type or the default icon if not found
-
getFileTypeImage
public static String getFileTypeImage(javax.faces.context.FacesContext fc, String name, FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string- Parameters:
fc
- FacesContextname
- File name to build filetype icon path forsize
- Size of the icon to return- Returns:
- the image path for the specified node type or the default icon if not found
-
getFileTypeImage
public static String getFileTypeImage(javax.servlet.ServletContext sc, String name, boolean small)
Return the image path to the filetype icon for the specified file name string- Parameters:
sc
- ServletContextname
- File name to build filetype icon path forsmall
- True for the small 16x16 icon or false for the large 32x32- Returns:
- the image path for the specified node type or the default icon if not found
-
getFileTypeImage
public static String getFileTypeImage(javax.servlet.ServletContext sc, String name, FileTypeImageSize size)
Return the image path to the filetype icon for the specified file name string- Parameters:
sc
- ServletContextname
- File name to build filetype icon path forsize
- Size of the icon to return- Returns:
- the image path for the specified node type or the default icon if not found
-
-