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 String getScenarioDirProperty()
      • initDocToImageService

        protected abstract void initDocToImageService()
      • getSessionDir

        protected abstract File getSessionDir​(String sessionid)
      • getWorkingDirPath

        protected abstract String getWorkingDirPath()
      • loadDocument

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

        @GET
        @Path("/scenario/{sessionid}/pagesIdsWithAnchors")
        public Set<Integer> getPageIdsWithAnchors​(@PathParam("sessionid")
                                                  String sessionId)
                                           throws Exception
        Throws:
        Exception
      • getWorkingDir

        protected File getWorkingDir()
      • getDocumentPageAsImage

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

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

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

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

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

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

        @GET
        @Path("/doc/{sessionid}/doc/filename")
        public String getPdfFilename​(@PathParam("sessionid")
                                     String sessionid)