Class DocumentCompareServices

    • Field Detail

      • reportNodeAttachmentManager

        protected step.core.miscellaneous.ReportNodeAttachmentManager reportNodeAttachmentManager
      • fileResolver

        protected step.attachments.FileResolver fileResolver
    • Constructor Detail

      • DocumentCompareServices

        public DocumentCompareServices()
    • Method Detail

      • getScenarioDirProperty

        protected abstract java.lang.String getScenarioDirProperty()
      • initDocToImageService

        protected abstract void initDocToImageService()
      • getSessionDir

        protected abstract java.io.File getSessionDir​(java.lang.String sessionid)
      • getWorkingDirPath

        protected abstract java.lang.String getWorkingDirPath()
      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractStepServices
        Throws:
        java.lang.Exception
      • loadDocument

        @POST
        @Path("/session/{sessionid}/load")
        public void loadDocument​(@PathParam("sessionid")
                                 java.lang.String sessionId,
                                 @QueryParam("filename")
                                 java.lang.String filename)
                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPageIdsWithAnchors

        @GET
        @Produces("application/json")
        @Path("/scenario/{sessionid}/pagesIdsWithAnchors")
        public java.util.Set<java.lang.Integer> getPageIdsWithAnchors​(@PathParam("sessionid")
                                                                      java.lang.String sessionId)
                                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • testScenario

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/scenario/{sessionid}/test")
        public DocumentCompareServices.TestScenarioOutput testScenario​(@PathParam("sessionid")
                                                                       java.lang.String sessionId,
                                                                       @QueryParam("lang")
                                                                       java.lang.String lang,
                                                                       Scenario.TestScenario testScenario)
                                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getWorkingDir

        protected java.io.File getWorkingDir()
      • getDocumentPageAsImage

        @GET
        @Path("/doc/{sessionid}/page/{pageid}")
        @Produces("application/octet-stream")
        public jakarta.ws.rs.core.Response getDocumentPageAsImage​(@PathParam("sessionid")
                                                                  java.lang.String sessionid,
                                                                  @PathParam("pageid")
                                                                  java.lang.Integer pageid)
      • extractRegionText

        @POST
        @Path("/doc/{sessionid}/zone/text")
        @Consumes("application/json")
        @Produces("text/plain")
        public java.lang.String extractRegionText​(@PathParam("sessionid")
                                                  java.lang.String sessionid,
                                                  @QueryParam("lang")
                                                  java.lang.String lang,
                                                  RegionDefinion regionDef)
                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • saveScenario

        @POST
        @Path("/doc/{sessionid}/scenario")
        @Consumes("application/json")
        public void saveScenario​(@PathParam("sessionid")
                                 java.lang.String sessionid,
                                 Scenario scenario)
                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getScenario

        @GET
        @Path("/doc/{sessionid}/scenario")
        @Consumes("application/json")
        @Produces("application/json")
        public Scenario getScenario​(@PathParam("sessionid")
                                    java.lang.String sessionid)
                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getPdfPageCount

        @GET
        @Path("/doc/{sessionid}/pagecount")
        public java.lang.Integer getPdfPageCount​(@PathParam("sessionid")
                                                 java.lang.String sessionid)
                                          throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPageDimensionInPt

        @GET
        @Path("/doc/{sessionid}/doc/page/{pageid}/dimension")
        public Dimension getPageDimensionInPt​(@PathParam("sessionid")
                                              java.lang.String sessionid,
                                              @PathParam("pageid")
                                              java.lang.Integer pageid)
                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getPdfFilename

        @GET
        @Produces("text/plain")
        @Path("/doc/{sessionid}/doc/filename")
        public java.lang.String getPdfFilename​(@PathParam("sessionid")
                                               java.lang.String sessionid)