From: rkv Date: Mon, 19 Nov 2012 08:15:42 +0000 (+0000) Subject: checkin method is added to ScenarioService. X-Git-Tag: Root_Delivery1_2012_12_06~55 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a903eb823541cc9f9dd9a737718b8580cf35bd53;p=tools%2Fsiman.git checkin method is added to ScenarioService. --- 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());