org.silverpeas.viewer
Class DefaultPreviewService

java.lang.Object
  extended by org.silverpeas.viewer.AbstractViewerService
      extended by org.silverpeas.viewer.DefaultPreviewService
All Implemented Interfaces:
PreviewService

@Service
public class DefaultPreviewService
extends AbstractViewerService
implements PreviewService

Author:
Yohann Chastagnier

Nested Class Summary
 
Nested classes/interfaces inherited from class org.silverpeas.viewer.AbstractViewerService
AbstractViewerService.ViewerProcess<RETURN_VALUE extends Serializable>, AbstractViewerService.ViewerTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class org.silverpeas.viewer.AbstractViewerService
PDF_DOCUMENT_EXTENSION
 
Constructor Summary
DefaultPreviewService()
           
 
Method Summary
 Preview getPreview(ViewerContext viewerContext)
          Getting an Preview instance of the given file
 boolean isPreviewable(File file)
          Verifying if it is possible to obtain an preview of the given file.
 
Methods inherited from class org.silverpeas.viewer.AbstractViewerService
changeFileExtension, generateTmpFile, process
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultPreviewService

public DefaultPreviewService()
Method Detail

isPreviewable

public boolean isPreviewable(File file)
Description copied from interface: PreviewService
Verifying if it is possible to obtain an preview of the given file.

Specified by:
isPreviewable in interface PreviewService
Returns:

getPreview

public Preview getPreview(ViewerContext viewerContext)
Description copied from interface: PreviewService
Getting an Preview instance of the given file

Specified by:
getPreview in interface PreviewService
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.