syncope-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ilgro...@apache.org
Subject [2/2] syncope git commit: [SYNCOPE-1222] Some refinement
Date Wed, 11 Oct 2017 12:22:27 GMT
[SYNCOPE-1222] Some refinement


Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/5cfe9666
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/5cfe9666
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/5cfe9666

Branch: refs/heads/2_0_X
Commit: 5cfe9666bececd4b83787c86cbe5cb0ee963a39c
Parents: 5ed622c
Author: Francesco Chicchiriccò <ilgrosso@apache.org>
Authored: Wed Oct 11 14:22:20 2017 +0200
Committer: Francesco Chicchiriccò <ilgrosso@apache.org>
Committed: Wed Oct 11 14:22:20 2017 +0200

----------------------------------------------------------------------
 .../core/provisioning/java/data/AnyObjectDataBinderImpl.java    | 5 +----
 .../syncope/core/provisioning/java/data/UserDataBinderImpl.java | 5 +----
 2 files changed, 2 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/syncope/blob/5cfe9666/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
index 6f03191..0173d5b 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/AnyObjectDataBinderImpl.java
@@ -370,10 +370,7 @@ public class AnyObjectDataBinderImpl extends AbstractAnyDataBinder implements
An
                         for (String resource : groupDAO.findAllResourceKeys(membership.getRightEnd().getKey()))
{
                             if (reasons.containsKey(resource)) {
                                 reasons.get(resource).remove(membership.getRightEnd().getKey());
-
-                                if (reasons.get(resource).contains(anyObject.getKey())) {
-                                    toBeProvisioned.add(resource);
-                                }
+                                toBeProvisioned.add(resource);
                             }
                         }
                     }

http://git-wip-us.apache.org/repos/asf/syncope/blob/5cfe9666/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
index d80673c..0f47f70 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/UserDataBinderImpl.java
@@ -456,10 +456,7 @@ public class UserDataBinderImpl extends AbstractAnyDataBinder implements
UserDat
                         for (String resource : groupDAO.findAllResourceKeys(membership.getRightEnd().getKey()))
{
                             if (reasons.containsKey(resource)) {
                                 reasons.get(resource).remove(membership.getRightEnd().getKey());
-
-                                if (reasons.get(resource).contains(user.getKey())) {
-                                    toBeProvisioned.add(resource);
-                                }
+                                toBeProvisioned.add(resource);
                             }
                         }
                     }


Mime
View raw message