Class TrackManager
java.lang.Object
com.logicaldoc.onlyoffice.helpers.TrackManager
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 buttonstatic void
processSave
(org.json.simple.JSONObject body, String fileName, javax.servlet.http.HttpServletRequest request) File saving process, generally invoked when the editing session completesstatic org.json.simple.JSONObject
readBody
(javax.servlet.http.HttpServletRequest request, PrintWriter writer) Reads request body
-
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 requestwriter
- the writer to use- Returns:
- the deserialized JSON object
- Throws:
IOException
- I/O errororg.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 writefileName
- the file namerequest
- the current servlet request- Throws:
IOException
- I/O errorcom.logicaldoc.core.PersistenceException
- Error in the data layerURISyntaxException
- 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 bodyfileNameParam
- the file namerequest
- the current servlet request- Throws:
IOException
- I/O errorcom.logicaldoc.core.PersistenceException
- Error in the data layerURISyntaxException
- URL specification is invalid
-