Class ViewerProvider
- java.lang.Object
-
- org.silverpeas.core.viewer.service.ViewerProvider
-
public class ViewerProvider extends Object
Viewer factory which provides preview and view services.- Author:
- Yohann Chastagnier
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PreviewService
getPreviewService()
Preview services accessorstatic ViewService
getViewService()
View service accessorstatic boolean
isPreviewable(File file)
Indicates if file is previewable.static boolean
isPreviewable(String path)
Indicates if file is previewable.static boolean
isViewable(File file)
Indicates if file is displayable with FlexPaper.static boolean
isViewable(String path)
Indicates if file is displayable with FlexPaper.
-
-
-
Method Detail
-
getPreviewService
public static PreviewService getPreviewService()
Preview services accessor- Returns:
- a preview service
- See Also:
DefaultPreviewService
-
isPreviewable
public static boolean isPreviewable(File file)
Indicates if file is previewable.- Parameters:
file
-- Returns:
- true if a preview can be produced - false otherwise.
-
isPreviewable
public static boolean isPreviewable(String path)
Indicates if file is previewable.- Parameters:
path
-- Returns:
- true if a preview can be produced - false otherwise.
-
isViewable
public static boolean isViewable(File file)
Indicates if file is displayable with FlexPaper.- Parameters:
file
-- Returns:
- true if a preview can be produced - false otherwise.
-
isViewable
public static boolean isViewable(String path)
Indicates if file is displayable with FlexPaper.- Parameters:
path
-- Returns:
- true if a preview can be produced - false otherwise.
-
getViewService
public static ViewService getViewService()
View service accessor- Returns:
- a view service
- See Also:
DefaultViewService
-
-