public class FileTypeIconRetrieverImpl extends Object implements FileTypeIconRetriever, org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
FileTypeIconRetrieverImpl() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getIconContent(String filename,
FileTypeImageSize size)
Get content of icon by file type.
|
String |
getIconMimetype(String filename,
FileTypeImageSize size)
Get mimetype of icon.
|
void |
setMimetypeForMedium(String mimetypeForMedium)
Set the mimetype for medium icons.
|
void |
setMimetypeForSmall(String mimetypeForSmall)
Set the mimetype for small icons.
|
void |
setServletContext(javax.servlet.ServletContext context) |
public InputStream getIconContent(String filename, FileTypeImageSize size)
FileTypeIconRetrievergetIconContent in interface FileTypeIconRetrieverfilename - file namesize - icon sizeFileTypeIconRetriever.getIconContent(java.lang.String, org.alfresco.service.cmr.repository.FileTypeImageSize)public String getIconMimetype(String filename, FileTypeImageSize size)
FileTypeIconRetrievergetIconMimetype in interface FileTypeIconRetrieverfilename - file namesize - icon sizeFileTypeIconRetriever.getIconMimetype(java.lang.String, org.alfresco.service.cmr.repository.FileTypeImageSize)public void setMimetypeForSmall(String mimetypeForSmall)
mimetypeForSmall - mimetypepublic void setMimetypeForMedium(String mimetypeForMedium)
mimetypeForMedium - mimetypepublic void setServletContext(javax.servlet.ServletContext context)
setServletContext in interface org.springframework.web.context.ServletContextAwareServletContextAware.setServletContext(javax.servlet.ServletContext)Copyright © 2005–2014 Alfresco Software. All rights reserved.