You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by il...@apache.org on 2016/12/13 13:22:39 UTC
[1/2] syncope git commit: Removing unused method
Repository: syncope
Updated Branches:
refs/heads/2_0_X 74814a09c -> 1d5d10e2e
refs/heads/master 06fef3620 -> 2a161fda6
Removing unused method
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/1d5d10e2
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/1d5d10e2
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/1d5d10e2
Branch: refs/heads/2_0_X
Commit: 1d5d10e2e3cb931592db81182d3b49008375aa42
Parents: 74814a0
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Tue Dec 13 14:22:07 2016 +0100
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Tue Dec 13 14:22:07 2016 +0100
----------------------------------------------------------------------
.../core/provisioning/java/data/PolicyDataBinderImpl.java | 9 ---------
1 file changed, 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/1d5d10e2/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
index a9dc2cc..35eac98 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
@@ -19,7 +19,6 @@
package org.apache.syncope.core.provisioning.java.data;
import org.apache.syncope.core.provisioning.api.data.PolicyDataBinder;
-import org.apache.syncope.common.lib.SyncopeClientException;
import org.apache.syncope.common.lib.policy.AbstractAccountRuleConf;
import org.apache.syncope.common.lib.policy.AbstractPasswordRuleConf;
import org.apache.syncope.common.lib.policy.AbstractPolicyTO;
@@ -28,7 +27,6 @@ import org.apache.syncope.common.lib.policy.AccountRuleConf;
import org.apache.syncope.common.lib.policy.PasswordPolicyTO;
import org.apache.syncope.common.lib.policy.PasswordRuleConf;
import org.apache.syncope.common.lib.policy.PullPolicyTO;
-import org.apache.syncope.common.lib.types.ClientExceptionType;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.RealmDAO;
import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
@@ -57,13 +55,6 @@ public class PolicyDataBinderImpl implements PolicyDataBinder {
@Autowired
private EntityFactory entityFactory;
- private void throwInvalidPolicy(final Policy policy, final AbstractPolicyTO policyTO) {
- SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidPolicy);
- sce.getElements().add(String.format("Cannot update %s from %s",
- policy.getClass().getSimpleName(), policyTO.getClass().getSimpleName()));
- throw sce;
- }
-
@SuppressWarnings("unchecked")
private <T extends Policy> T getPolicy(final T policy, final AbstractPolicyTO policyTO) {
T result = policy;
[2/2] syncope git commit: Removing unused method
Posted by il...@apache.org.
Removing unused method
Project: http://git-wip-us.apache.org/repos/asf/syncope/repo
Commit: http://git-wip-us.apache.org/repos/asf/syncope/commit/2a161fda
Tree: http://git-wip-us.apache.org/repos/asf/syncope/tree/2a161fda
Diff: http://git-wip-us.apache.org/repos/asf/syncope/diff/2a161fda
Branch: refs/heads/master
Commit: 2a161fda65312ef288b730a5950432a4bb78d09d
Parents: 06fef36
Author: Francesco Chicchiricc� <il...@apache.org>
Authored: Tue Dec 13 14:22:07 2016 +0100
Committer: Francesco Chicchiricc� <il...@apache.org>
Committed: Tue Dec 13 14:22:19 2016 +0100
----------------------------------------------------------------------
.../core/provisioning/java/data/PolicyDataBinderImpl.java | 9 ---------
1 file changed, 9 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/syncope/blob/2a161fda/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
----------------------------------------------------------------------
diff --git a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
index a9dc2cc..35eac98 100644
--- a/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
+++ b/core/provisioning-java/src/main/java/org/apache/syncope/core/provisioning/java/data/PolicyDataBinderImpl.java
@@ -19,7 +19,6 @@
package org.apache.syncope.core.provisioning.java.data;
import org.apache.syncope.core.provisioning.api.data.PolicyDataBinder;
-import org.apache.syncope.common.lib.SyncopeClientException;
import org.apache.syncope.common.lib.policy.AbstractAccountRuleConf;
import org.apache.syncope.common.lib.policy.AbstractPasswordRuleConf;
import org.apache.syncope.common.lib.policy.AbstractPolicyTO;
@@ -28,7 +27,6 @@ import org.apache.syncope.common.lib.policy.AccountRuleConf;
import org.apache.syncope.common.lib.policy.PasswordPolicyTO;
import org.apache.syncope.common.lib.policy.PasswordRuleConf;
import org.apache.syncope.common.lib.policy.PullPolicyTO;
-import org.apache.syncope.common.lib.types.ClientExceptionType;
import org.apache.syncope.core.persistence.api.dao.ExternalResourceDAO;
import org.apache.syncope.core.persistence.api.dao.RealmDAO;
import org.apache.syncope.core.persistence.api.entity.policy.AccountPolicy;
@@ -57,13 +55,6 @@ public class PolicyDataBinderImpl implements PolicyDataBinder {
@Autowired
private EntityFactory entityFactory;
- private void throwInvalidPolicy(final Policy policy, final AbstractPolicyTO policyTO) {
- SyncopeClientException sce = SyncopeClientException.build(ClientExceptionType.InvalidPolicy);
- sce.getElements().add(String.format("Cannot update %s from %s",
- policy.getClass().getSimpleName(), policyTO.getClass().getSimpleName()));
- throw sce;
- }
-
@SuppressWarnings("unchecked")
private <T extends Policy> T getPolicy(final T policy, final AbstractPolicyTO policyTO) {
T result = policy;