]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/SearchServiceImpl.java
Salome HOME
Sort study and knowledge results functionalities are implemented
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / SearchServiceImpl.java
index 2baaf40465a22fe33f4766392c8c34755c63da60..96bff1b1a11e65c61a0588ea42f6a16288a5c5b4 100644 (file)
@@ -201,9 +201,11 @@ public class SearchServiceImpl implements SearchService {
 
                // Construction of the result list
                for (KnowledgeElement kelm : found) {
-                       result.add(new StudyDTO(kelm.getIndex(), kelm.getReference(), kelm
+                       StudyDTO studyDTO = new StudyDTO(kelm.getIndex(), kelm.getReference(), kelm
                                        .getProgressState(), kelm.getTitle(), kelm.getAuthor()
-                                       .getDisplayName()));
+                                       .getDisplayName());
+                       studyDTO.setDate(kelm.getDate());
+                       result.add(studyDTO);
                }
                return result;
        }
@@ -308,9 +310,12 @@ public class SearchServiceImpl implements SearchService {
 
                // Construction of the result list
                for (Study std : found) {
-                       result.add(new StudyDTO(std.getIndex(), std.getReference(), std
+                       StudyDTO studyDTO = new StudyDTO(std.getIndex(), std.getReference(), std
                                        .getProgressState(), std.getTitle(), std.getAuthor()
-                                       .getDisplayName()));
+                                       .getDisplayName());
+                       studyDTO.setDate(std.getDate());
+                       studyDTO.setLastModificationDate(std.getLastModificationDate());
+                       result.add(studyDTO);
                }
                return result;
        }