Interface ViewService
-
- All Known Implementing Classes:
DefaultViewService
public interface ViewService
The view service. Its goal is to generate a view of a document without having to download it or to open it with a dedicated program.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ViewService
get()
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.
-
-
-
Method Detail
-
get
static ViewService get()
-
isViewable
boolean isViewable(File file)
Verifying if it is possible to obtain a view of the given file.- Parameters:
file
- the file to verify.- Returns:
- true if view is possible, false otherwise.
-
getDocumentView
DocumentView getDocumentView(ViewerContext viewerContext)
Getting pages view instances of the given file.- Parameters:
viewerContext
- the context of the view.- Returns:
- a
DocumentView
instance.
-
removeDocumentView
void removeDocumentView(ViewerContext viewerContext)
Removes data about a document view from given context.- Parameters:
viewerContext
- the context of the document view.
-
-