Class JsonPdfToolManager
- java.lang.Object
-
- org.silverpeas.core.viewer.service.JsonPdfToolManager
-
- All Implemented Interfaces:
Initialization
@Technical @Service @Singleton public class JsonPdfToolManager extends Object implements Initialization
A manager of the PDF to JSON toolkit. Its aim is to check the pdf2json tool is installed on the host and it works fine in order to be used by the Viewer service of Silverpeas.The goal of the tool is to split PDF files into fragments in JSON, ready to be processed by the viwer service.
- Author:
- Yohann Chastagnier
-
-
Constructor Summary
Constructors Constructor Description JsonPdfToolManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static JsonPdfToolManager
get()
void
init()
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.boolean
isActivated()
If the PDF to JSON conversion activated?-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.initialization.Initialization
getPriority, release
-
-
-
-
Method Detail
-
get
public static JsonPdfToolManager get()
-
init
public void init() throws Exception
Description copied from interface:Initialization
Initializes some resources required by the services or performs some initialization processes at Silverpeas startup.- Specified by:
init
in interfaceInitialization
- Throws:
Exception
- if an error occurs during the initialization process. In this case the Silverpeas startup fails.
-
isActivated
public boolean isActivated()
If the PDF to JSON conversion activated?- Returns:
- true if the PDF to JSON toolkit is installed and works fine on the host. False otherwise.
-
-