Commit 6efc0815 authored by helene ortiz's avatar helene ortiz
Browse files

Add parameter 'addServerHome' to method saveFile in ResourceManager.

parent c8f2cbc6
4.0.4 20/04/2020
-----
* Add parameter 'addServerHome' to method saveFile in ResourceManager.
4.0.3 20/04/2020 4.0.3 20/04/2020
----- -----
* Chat files are located on server side: do not create a directory in virtual homes. * Chat files are located on server side: do not create a directory in virtual homes.
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>fr.ill.ics</groupId> <groupId>fr.ill.ics</groupId>
<artifactId>nomadcommandsystem</artifactId> <artifactId>nomadcommandsystem</artifactId>
<version>4.0.3</version> <version>4.0.4</version>
<name>NomadCommandSystem</name> <name>NomadCommandSystem</name>
<description>Java bridge for the communication with the Nomad server</description> <description>Java bridge for the communication with the Nomad server</description>
<scm> <scm>
......
...@@ -76,8 +76,8 @@ public class ResourceManager { ...@@ -76,8 +76,8 @@ public class ResourceManager {
} }
public void saveFile(String fileName, String content, int fileType) { public void saveFile(String fileName, String content, int fileType, boolean addServerHome) {
CommandZoneAccessor.getInstance(serverId).saveFile(fileName, content, fileType); CommandZoneAccessor.getInstance(serverId).saveFile(fileName, content, fileType, addServerHome);
} }
......
...@@ -231,7 +231,7 @@ public class PropertyParser extends GenericParser { ...@@ -231,7 +231,7 @@ public class PropertyParser extends GenericParser {
} }
} }
fileContent = fileContent + "</" + TAG_CONTROLLER + ">" + LINE_SEPARATOR; fileContent = fileContent + "</" + TAG_CONTROLLER + ">" + LINE_SEPARATOR;
ResourceManager.getInstance().saveFile(filename, fileContent, -1); ResourceManager.getInstance().saveFile(filename, fileContent, -1, false);
return filename; return filename;
} }
......
...@@ -3185,7 +3185,7 @@ public class CommandZoneAccessor { ...@@ -3185,7 +3185,7 @@ public class CommandZoneAccessor {
} }
public void saveFile(String fileName, String content, int fileType) { public void saveFile(String fileName, String content, int fileType, boolean addServerHome) {
// Create the message type. // Create the message type.
CommandZoneRequests.Message type = CommandZoneRequests.Message.newBuilder() CommandZoneRequests.Message type = CommandZoneRequests.Message.newBuilder()
...@@ -3197,6 +3197,7 @@ public class CommandZoneAccessor { ...@@ -3197,6 +3197,7 @@ public class CommandZoneAccessor {
.setFileName(fileName) .setFileName(fileName)
.setFileType(fileType) .setFileType(fileType)
.setContent(content) .setContent(content)
.setAddServerHome(addServerHome)
.build(); .build();
commandBoxRequester.sendTwoParts(type.toByteArray(), request.toByteArray()); commandBoxRequester.sendTwoParts(type.toByteArray(), request.toByteArray());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment