]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
Add/Remove contributors functionalities are modified
authormka <mka@opencascade.com>
Mon, 18 Mar 2013 08:14:36 +0000 (08:14 +0000)
committermka <mka@opencascade.com>
Mon, 18 Mar 2013 08:14:36 +0000 (08:14 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java

index 8e8e6a9558b8e23ab61a32ae0cc0279d8bb02960..fa31d394a1fa8bc22954cbd1c6cedac4f908ec7e 100644 (file)
@@ -324,6 +324,7 @@ public class StudyServiceImpl implements StudyService {
         * 
         * @see org.splat.service.StudyService#addContributor(org.splat.dal.bo.som.Study, org.splat.dal.bo.kernel.User)
         */
+       @Transactional
        public boolean addContributor(final Study aStudy, final User user) {
                List<User> contributor = getModifiableContributors(aStudy); // Initializes contributor
                for (Iterator<User> i = contributor.iterator(); i.hasNext();) {
@@ -338,7 +339,6 @@ public class StudyServiceImpl implements StudyService {
                if (absent) {
                        update(aStudy); // Else, useless to re-index the study
                }
-               contributor.add(user);
                return true;
        }
 
@@ -412,6 +412,7 @@ public class StudyServiceImpl implements StudyService {
         * 
         * @see org.splat.service.StudyService#removeContributor(org.splat.dal.bo.som.Study, org.splat.dal.bo.kernel.User[])
         */
+       @Transactional
        public boolean removeContributor(final Study aStudy, final User... users) {
                List<User> contributor = getModifiableContributors(aStudy); // Initializes contributor
                Boolean done = false;