Salome HOME
Processing instruction is defined now in getScenarioInfo using document types mappings.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / dto / DocumentDTO.java
index 8652cd96436b1773a1b8316e004c938fc9d335f8..c7fbda68aeedcd3b28c728e899d11f839e5ac6ff 100644 (file)
@@ -97,10 +97,15 @@ public class DocumentDTO {
         *            relative file path
         * @param state
         *            file state
+        * @param processing
+        *            processing instruction: file-download or file-import
+        * @param isResult
+        *            true if the file is result
         * @return the added file DTO
         */
-       public FileDTO addFile(final String relativePath, final char state) {
-               FileDTO fileDTO = new FileDTO(relativePath, state);
+       public FileDTO addFile(final String relativePath, final char state,
+                       final String processing, final boolean isResult) {
+               FileDTO fileDTO = new FileDTO(relativePath, state, processing, isResult);
                _files.add(fileDTO);
                return fileDTO;
        }
@@ -115,8 +120,8 @@ public class DocumentDTO {
                StringBuffer buf = new StringBuffer();
                String indent = "    ";
                buf.append(indent).append("Document: ").append(getTitle()).append('\n')
-                               .append(indent).append("    Document ID: ").append(getId())
-                               .append('\n');
+                               .append(indent).append("Document ID: ").append(getId()).append(
+                                               '\n');
                for (FileDTO file : getFiles()) {
                        buf.append(file);
                }