|
|
@@ -75,7 +75,7 @@ public class EditorController {
|
|
|
|
|
|
@GetMapping(path = "${url.editor}")
|
|
|
// process request to open the editor page
|
|
|
- public EditModel index(@RequestParam("fileName") final String fileName,
|
|
|
+ public FileModel index(@RequestParam("fileName") final String fileName,
|
|
|
@RequestParam(value = "action", required = false) final String actionParam,
|
|
|
@RequestParam(value = "type", required = false) final String typeParam,
|
|
|
@RequestParam(value = "actionLink", required = false) final String actionLink,
|
|
|
@@ -127,24 +127,24 @@ public class EditorController {
|
|
|
|
|
|
// get a document for comparison and add it to the model
|
|
|
// model.addAttribute("dataDocument", getCompareFile(directUrl));
|
|
|
- model.setDataDocument(getCompareFile(directUrl));
|
|
|
+// model.setDataDocument(getCompareFile(directUrl));
|
|
|
|
|
|
// get recipients data for mail merging and add it to the model
|
|
|
// model.addAttribute("dataSpreadsheet", getSpreadsheet(directUrl));
|
|
|
- model.setDataSpreadsheet(getSpreadsheet(directUrl));
|
|
|
+// model.setDataSpreadsheet(getSpreadsheet(directUrl));
|
|
|
|
|
|
// get user data for mentions and add it to the model
|
|
|
// model.addAttribute("usersForMentions", getUserMentions(uid));
|
|
|
- model.setUsersForMentions(getUserMentions(uid));
|
|
|
+// model.setUsersForMentions(getUserMentions(uid));
|
|
|
|
|
|
// model.addAttribute("usersInfo", getUsersInfo(uid));
|
|
|
- model.setUsersInfo(getUsersInfo(uid));
|
|
|
+// model.setUsersInfo(getUsersInfo(uid));
|
|
|
|
|
|
// get user data for protect and add it to the model
|
|
|
// model.addAttribute("usersForProtect", getUserProtect(uid));
|
|
|
- model.setUsersForProtect(getUserProtect(uid));
|
|
|
+// model.setUsersForProtect(getUserProtect(uid));
|
|
|
|
|
|
- return model;
|
|
|
+ return fileModel;
|
|
|
}
|
|
|
|
|
|
private List<Mentions> getUserMentions(final String uid) { // get user data for mentions
|