Class TrackManager
java.lang.Object
com.logicaldoc.onlyoffice.helpers.TrackManager
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidprocessForceSave(org.json.simple.JSONObject body, String fileNameParam, jakarta.servlet.http.HttpServletRequest request) File force saving process, generally invoked when the user presses the save buttonstatic voidprocessSave(org.json.simple.JSONObject body, String fileName, jakarta.servlet.http.HttpServletRequest request) File saving process, generally invoked when the editing session completesstatic org.json.simple.JSONObjectreadBody(jakarta.servlet.http.HttpServletRequest request, PrintWriter writer) Reads request body
- 
Method Details- 
readBodypublic static org.json.simple.JSONObject readBody(jakarta.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
 
- 
processSavepublic static void processSave(org.json.simple.JSONObject body, String fileName, jakarta.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
 
- 
processForceSavepublic static void processForceSave(org.json.simple.JSONObject body, String fileNameParam, jakarta.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
 
 
-