Package step.plugins.compare.image
Class ImageCompareServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.plugins.compare.DocumentCompareServices
-
- step.plugins.compare.image.ImageCompareServices
-
@Singleton @Path("/imagecompare") public class ImageCompareServices extends DocumentCompareServices
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class step.plugins.compare.DocumentCompareServices
DocumentCompareServices.LanguageEntity, DocumentCompareServices.TestScenarioOutput, DocumentCompareServices.TestScenarioOutputError
-
-
Field Summary
-
Fields inherited from class step.plugins.compare.DocumentCompareServices
compareScenarioServices, docToImageServices, fileResolver, reportNodeAttachmentManager, sessionServices
-
-
Constructor Summary
Constructors Constructor Description ImageCompareServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
extractRegionText(java.lang.String sessionid, java.lang.String lang, RegionDefinion regionDef)
jakarta.ws.rs.core.Response
getDocumentPageAsImage(java.lang.String sessionid, java.lang.Integer pageid)
protected AbstractExtractionService
getExtractionService()
Dimension
getPageDimensionInPt(java.lang.String sessionid, java.lang.Integer pageid)
java.util.Set<java.lang.Integer>
getPageIdsWithAnchors(java.lang.String sessionId)
java.lang.String
getPdfFilename(java.lang.String sessionid)
java.lang.Integer
getPdfPageCount(java.lang.String sessionid)
Scenario
getScenario(java.lang.String sessionid)
protected java.lang.String
getScenarioDirProperty()
protected java.io.File
getSessionDir(java.lang.String sessionid)
protected DocumentCompareServices.LanguageEntity
getSupportedLanguages()
DocumentCompareServices.LanguageEntity
getSupportedLanguages(java.lang.String sessionid)
protected java.lang.String
getWorkingDirPath()
protected void
initDocToImageService()
void
loadDocument(java.lang.String sessionId, java.lang.String filename)
void
saveScenario(java.lang.String sessionid, Scenario scenario)
DocumentCompareServices.TestScenarioOutput
testScenario(java.lang.String sessionId, java.lang.String lang, Scenario.TestScenario testScenario)
-
Methods inherited from class step.plugins.compare.DocumentCompareServices
getWorkingDir, init
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
getScenarioDirProperty
protected java.lang.String getScenarioDirProperty()
- Specified by:
getScenarioDirProperty
in classDocumentCompareServices
-
initDocToImageService
protected void initDocToImageService()
- Specified by:
initDocToImageService
in classDocumentCompareServices
-
getExtractionService
protected AbstractExtractionService getExtractionService()
- Specified by:
getExtractionService
in classDocumentCompareServices
-
getSessionDir
protected java.io.File getSessionDir(java.lang.String sessionid)
- Specified by:
getSessionDir
in classDocumentCompareServices
-
getWorkingDirPath
protected java.lang.String getWorkingDirPath()
- Specified by:
getWorkingDirPath
in classDocumentCompareServices
-
getSupportedLanguages
protected DocumentCompareServices.LanguageEntity getSupportedLanguages()
- Specified by:
getSupportedLanguages
in classDocumentCompareServices
-
loadDocument
public void loadDocument(java.lang.String sessionId, java.lang.String filename) throws java.lang.Exception
- Overrides:
loadDocument
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
getPageIdsWithAnchors
public java.util.Set<java.lang.Integer> getPageIdsWithAnchors(java.lang.String sessionId) throws java.lang.Exception
- Overrides:
getPageIdsWithAnchors
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
testScenario
public DocumentCompareServices.TestScenarioOutput testScenario(java.lang.String sessionId, java.lang.String lang, Scenario.TestScenario testScenario) throws java.lang.Exception
- Overrides:
testScenario
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
getDocumentPageAsImage
public jakarta.ws.rs.core.Response getDocumentPageAsImage(java.lang.String sessionid, java.lang.Integer pageid)
- Overrides:
getDocumentPageAsImage
in classDocumentCompareServices
-
extractRegionText
public java.lang.String extractRegionText(java.lang.String sessionid, java.lang.String lang, RegionDefinion regionDef) throws java.lang.Exception
- Overrides:
extractRegionText
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
saveScenario
public void saveScenario(java.lang.String sessionid, Scenario scenario) throws java.io.IOException
- Overrides:
saveScenario
in classDocumentCompareServices
- Throws:
java.io.IOException
-
getScenario
public Scenario getScenario(java.lang.String sessionid) throws java.io.IOException
- Overrides:
getScenario
in classDocumentCompareServices
- Throws:
java.io.IOException
-
getPdfPageCount
public java.lang.Integer getPdfPageCount(java.lang.String sessionid) throws java.lang.Exception
- Overrides:
getPdfPageCount
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
getPageDimensionInPt
public Dimension getPageDimensionInPt(java.lang.String sessionid, java.lang.Integer pageid) throws java.lang.Exception
- Overrides:
getPageDimensionInPt
in classDocumentCompareServices
- Throws:
java.lang.Exception
-
getPdfFilename
public java.lang.String getPdfFilename(java.lang.String sessionid)
- Overrides:
getPdfFilename
in classDocumentCompareServices
-
getSupportedLanguages
public DocumentCompareServices.LanguageEntity getSupportedLanguages(java.lang.String sessionid)
- Overrides:
getSupportedLanguages
in classDocumentCompareServices
-
-