Class TrackManager

java.lang.Object
com.logicaldoc.onlyoffice.helpers.TrackManager

public final class TrackManager extends Object
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    processForceSave(org.json.simple.JSONObject body, String fileNameParam, javax.servlet.http.HttpServletRequest request)
    File force saving process, generally invoked when the user presses the save button
    static void
    processSave(org.json.simple.JSONObject body, String fileName, javax.servlet.http.HttpServletRequest request)
    File saving process, generally invoked when the editing session completes
    static org.json.simple.JSONObject
    readBody(javax.servlet.http.HttpServletRequest request, PrintWriter writer)
    Reads request body

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • readBody

      public static org.json.simple.JSONObject readBody(javax.servlet.http.HttpServletRequest request, PrintWriter writer) throws IOException, org.json.simple.parser.ParseException
      Reads request body
      Parameters:
      request - the current request
      writer - the writer to use
      Returns:
      the deserialized JSON object
      Throws:
      IOException - I/O error
      org.json.simple.parser.ParseException - Error parsing the JDON code
    • processSave

      public static void processSave(org.json.simple.JSONObject body, String fileName, javax.servlet.http.HttpServletRequest request) throws IOException, com.logicaldoc.core.PersistenceException, URISyntaxException
      File saving process, generally invoked when the editing session completes
      Parameters:
      body - The JSON object to write
      fileName - the file name
      request - the current servlet request
      Throws:
      IOException - I/O error
      com.logicaldoc.core.PersistenceException - Error in the data layer
      URISyntaxException - URL specification is invalid
    • processForceSave

      public static void processForceSave(org.json.simple.JSONObject body, String fileNameParam, javax.servlet.http.HttpServletRequest request) throws IOException, com.logicaldoc.core.PersistenceException, URISyntaxException
      File force saving process, generally invoked when the user presses the save button
      Parameters:
      body - a JSON representing the body
      fileNameParam - the file name
      request - the current servlet request
      Throws:
      IOException - I/O error
      com.logicaldoc.core.PersistenceException - Error in the data layer
      URISyntaxException - URL specification is invalid