]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
checkin method is added to ScenarioService.
authorrkv <rkv@opencascade.com>
Mon, 19 Nov 2012 08:15:42 +0000 (08:15 +0000)
committerrkv <rkv@opencascade.com>
Mon, 19 Nov 2012 08:15:42 +0000 (08:15 +0000)
Workspace/Siman-Common/src/org/splat/service/ScenarioService.java
Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java

index e93d1c0a3aecc975600b46d30ca5127cb3577fcf..150cd1fb638b18996539c2f89312c6482291b97a 100644 (file)
@@ -97,6 +97,19 @@ public interface ScenarioService {
                        KnowledgeElement.Properties kprop) throws MissedPropertyException,
                        InvalidPropertyException, MultiplyDefinedException;
 
+       /**
+        * Check-in the scenario after SALOME session.
+        * 
+        * @param scenId
+        *            the scenario id
+        * @param userId
+        *            the id of the user who modified documents
+        * @param scInfo
+        *            the list of scenario steps DTO
+        */
+       void checkin(final long scenId, final long userId,
+                       final List<StepDTO> scInfo);
+
        /**
         * Check in the scenario.
         * 
index 3e11657f1ac4414e068616a900d913b5d6dfbcc1..b722a6e7f7c20164d43bf40cfac91433da44b399 100644 (file)
@@ -357,10 +357,16 @@ public class ScenarioServiceImpl implements ScenarioService {
                return isOk;
        }
 
-       public void checkin(final long scenId, final long userId, final List<StepDTO> scInfo) {
-               
+       /**
+        * {@inheritDoc}
+        * 
+        * @see org.splat.service.ScenarioService#checkin(long, long, java.util.List)
+        */
+       public void checkin(final long scenId, final long userId,
+                       final List<StepDTO> scInfo) {
+
        }
-       
+
        /**
         * {@inheritDoc}
         * 
@@ -378,8 +384,8 @@ public class ScenarioServiceImpl implements ScenarioService {
         * @see org.splat.service.ScenarioService#checkout(org.splat.dal.bo.som.Scenario, org.splat.dal.bo.kernel.User)
         */
        public boolean checkout(final Scenario aScenario, final User user) {
-               boolean res = 
-                       getStudyService().isStaffedBy(aScenario.getOwnerStudy(), user);
+               boolean res = getStudyService().isStaffedBy(aScenario.getOwnerStudy(),
+                               user);
                if (res) {
                        aScenario.setUser(user);
                        aScenario.setLastModificationDate(Calendar.getInstance().getTime());