You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@syncope.apache.org by re...@apache.org on 2012/05/02 13:37:27 UTC
svn commit: r1333003 -
/incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java
Author: rene
Date: Wed May 2 11:37:27 2012
New Revision: 1333003
URL: http://svn.apache.org/viewvc?rev=1333003&view=rev
Log:
sonar: remove duplicate code in same switch statement
Modified:
incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java
Modified: incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java
URL: http://svn.apache.org/viewvc/incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java?rev=1333003&r1=1333002&r2=1333003&view=diff
==============================================================================
--- incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java (original)
+++ incubator/syncope/trunk/console/src/main/java/org/apache/syncope/console/pages/panels/ResourceMappingPanel.java Wed May 2 11:37:27 2012
@@ -473,23 +473,8 @@ public class ResourceMappingPanel extend
break;
case SyncopeUserId:
- toBeUpdated.setEnabled(false);
- toBeUpdated.setRequired(false);
- toBeUpdated.setChoices(Collections.EMPTY_LIST);
- break;
-
case Password:
- toBeUpdated.setEnabled(false);
- toBeUpdated.setRequired(false);
- toBeUpdated.setChoices(Collections.EMPTY_LIST);
- break;
-
case Username:
- toBeUpdated.setEnabled(false);
- toBeUpdated.setRequired(false);
- toBeUpdated.setChoices(Collections.EMPTY_LIST);
- break;
-
default:
toBeUpdated.setRequired(false);
toBeUpdated.setEnabled(false);
@@ -514,10 +499,6 @@ public class ResourceMappingPanel extend
case RoleVirtualSchema:
case MembershipVirtualSchema:
// Virtual accountId is not permitted
- accountId.setReadOnly(true);
- accountId.setModelObject(false);
- break;
-
case Password:
// AccountId cannot be derived from password.
accountId.setReadOnly(true);