Class DefaultViewService
- java.lang.Object
-
- org.silverpeas.core.viewer.service.AbstractViewerService
-
- org.silverpeas.core.viewer.service.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.core.viewer.service.AbstractViewerService
AbstractViewerService.ViewerProcess<R extends Serializable>, AbstractViewerService.ViewerTreatment<R>
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.viewer.service.AbstractViewerService
PDF_DOCUMENT_EXTENSION
-
-
Constructor Summary
Constructors Constructor Description DefaultViewService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentView
getDocumentView(ViewerContext viewerContext)
Getting pages view instances of the given fileboolean
isViewable(File file)
Verifying if it is possible to obtain a view of the given file.-
Methods inherited from class org.silverpeas.core.viewer.service.AbstractViewerService
changeFileExtension, generateTmpFile, process
-
-
-
-
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 interfaceViewService
- Returns:
-
getDocumentView
public DocumentView getDocumentView(ViewerContext viewerContext)
Description copied from interface:ViewService
Getting pages view instances of the given file- Specified by:
getDocumentView
in interfaceViewService
- Returns:
-
-