Class DefaultViewService
- java.lang.Object
-
- org.silverpeas.core.viewer.service.AbstractViewerService
-
- org.silverpeas.core.viewer.service.DefaultViewService
-
- All Implemented Interfaces:
ViewService
@Service @Singleton 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 file.boolean
isViewable(File file)
Verifying if it is possible to obtain a view of the given file.void
removeDocumentView(ViewerContext viewerContext)
Removes data about a document view from given context.-
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
- Parameters:
file
- the file to verify.- Returns:
- true if view is possible, false otherwise.
-
getDocumentView
public DocumentView getDocumentView(ViewerContext viewerContext)
Description copied from interface:ViewService
Getting pages view instances of the given file.- Specified by:
getDocumentView
in interfaceViewService
- Parameters:
viewerContext
- the context of the view.- Returns:
- a
DocumentView
instance.
-
removeDocumentView
public void removeDocumentView(ViewerContext viewerContext)
Description copied from interface:ViewService
Removes data about a document view from given context.- Specified by:
removeDocumentView
in interfaceViewService
- Parameters:
viewerContext
- the context of the document view.
-
-