org.alfresco.repo.cmis.ws
Class FileTypeIconRetrieverImpl

java.lang.Object
  extended by org.alfresco.repo.cmis.ws.FileTypeIconRetrieverImpl
All Implemented Interfaces:
FileTypeIconRetriever, org.springframework.web.context.ServletContextAware

public class FileTypeIconRetrieverImpl
extends java.lang.Object
implements FileTypeIconRetriever, org.springframework.web.context.ServletContextAware

Icon retriever implementation


Constructor Summary
FileTypeIconRetrieverImpl()
           
 
Method Summary
 java.io.InputStream getIconContent(java.lang.String filename, org.alfresco.service.cmr.repository.FileTypeImageSize size)
          Get content of icon by file type.
 java.lang.String getIconMimetype(java.lang.String filename, org.alfresco.service.cmr.repository.FileTypeImageSize size)
          Get mimetype of icon.
 void setMimetypeForMedium(java.lang.String mimetypeForMedium)
          Set the mimetype for medium icons.
 void setMimetypeForSmall(java.lang.String mimetypeForSmall)
          Set the mimetype for small icons.
 void setServletContext(javax.servlet.ServletContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileTypeIconRetrieverImpl

public FileTypeIconRetrieverImpl()
Method Detail

getIconContent

public java.io.InputStream getIconContent(java.lang.String filename,
                                          org.alfresco.service.cmr.repository.FileTypeImageSize size)
Description copied from interface: FileTypeIconRetriever
Get content of icon by file type.

Specified by:
getIconContent in interface FileTypeIconRetriever
Parameters:
filename - file name
size - icon size
Returns:
content input stream
See Also:
FileTypeIconRetriever.getIconContent(java.lang.String, org.alfresco.service.cmr.repository.FileTypeImageSize)

getIconMimetype

public java.lang.String getIconMimetype(java.lang.String filename,
                                        org.alfresco.service.cmr.repository.FileTypeImageSize size)
Description copied from interface: FileTypeIconRetriever
Get mimetype of icon.

Specified by:
getIconMimetype in interface FileTypeIconRetriever
Parameters:
filename - file name
size - icon size
Returns:
mimetype of icon
See Also:
FileTypeIconRetriever.getIconMimetype(java.lang.String, org.alfresco.service.cmr.repository.FileTypeImageSize)

setMimetypeForSmall

public void setMimetypeForSmall(java.lang.String mimetypeForSmall)
Set the mimetype for small icons.

Parameters:
mimetypeForSmall - mimetype

setMimetypeForMedium

public void setMimetypeForMedium(java.lang.String mimetypeForMedium)
Set the mimetype for medium icons.

Parameters:
mimetypeForMedium - mimetype

setServletContext

public void setServletContext(javax.servlet.ServletContext context)
Specified by:
setServletContext in interface org.springframework.web.context.ServletContextAware
See Also:
ServletContextAware.setServletContext(javax.servlet.ServletContext)


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