]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java
Salome HOME
Preliminary version of the "Remove study" action is implemented.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / service / StudyServiceImpl.java
index 7a48fb602b825423996f1417ddda6d4e35a1e155..2e3fc4538e3f9af18d1473a7f3099a09c8ec20c1 100644 (file)
@@ -177,6 +177,18 @@ public class StudyServiceImpl implements StudyService {
                return result;
        }
 
+       /** 
+        * {@inheritDoc}
+        * @see org.splat.service.StudyService#removeStudy(long)
+        */
+       @Transactional
+       public void removeStudy(final long index) {
+               Study study = getStudyDAO().get(index);
+               if (study != null) {
+                       getStudyDAO().delete(study);
+               }
+       }
+
        /**
         * Get study by its reference.
         *