From a903eb823541cc9f9dd9a737718b8580cf35bd53 Mon Sep 17 00:00:00 2001 From: rkv Date: Mon, 19 Nov 2012 08:15:42 +0000 Subject: [PATCH] checkin method is added to ScenarioService. --- .../src/org/splat/service/ScenarioService.java | 13 +++++++++++++ .../org/splat/service/ScenarioServiceImpl.java | 16 +++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/Workspace/Siman-Common/src/org/splat/service/ScenarioService.java b/Workspace/Siman-Common/src/org/splat/service/ScenarioService.java index e93d1c0..150cd1f 100644 --- a/Workspace/Siman-Common/src/org/splat/service/ScenarioService.java +++ b/Workspace/Siman-Common/src/org/splat/service/ScenarioService.java @@ -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 scInfo); + /** * Check in the scenario. * diff --git a/Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java index 3e11657..b722a6e 100644 --- a/Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/ScenarioServiceImpl.java @@ -357,10 +357,16 @@ public class ScenarioServiceImpl implements ScenarioService { return isOk; } - public void checkin(final long scenId, final long userId, final List scInfo) { - + /** + * {@inheritDoc} + * + * @see org.splat.service.ScenarioService#checkin(long, long, java.util.List) + */ + public void checkin(final long scenId, final long userId, + final List 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()); -- 2.39.2