org.silverpeas.viewer
Class DefaultViewService

java.lang.Object
  extended by org.silverpeas.viewer.AbstractViewerService
      extended by org.silverpeas.viewer.DefaultViewService
All Implemented Interfaces:
ViewService

@Service
public class DefaultViewService
extends AbstractViewerService
implements ViewService

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
DefaultViewService()
           
 
Method Summary
 DocumentView getDocumentView(ViewerContext viewerContext)
          Getting pages view instances of the given file
 boolean isViewable(File file)
          Verifying if it is possible to obtain a view 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

DefaultViewService

public DefaultViewService()
Method Detail

isViewable

public boolean isViewable(File file)
Description copied from interface: ViewService
Verifying if it is possible to obtain a view of the given file.

Specified by:
isViewable in interface ViewService
Returns:

getDocumentView

public DocumentView getDocumentView(ViewerContext viewerContext)
Description copied from interface: ViewService
Getting pages view instances of the given file

Specified by:
getDocumentView in interface ViewService
Returns:


Copyright © 2016 Silverpeas. All Rights Reserved.