]> source.dussan.org Git - archiva.git/commitdiff
remove non used field
authorOlivier Lamy <olamy@apache.org>
Fri, 18 Jan 2013 17:59:19 +0000 (17:59 +0000)
committerOlivier Lamy <olamy@apache.org>
Fri, 18 Jan 2013 17:59:19 +0000 (17:59 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1435279 13f79535-47bb-0310-9956-ffa450edef68

redback-common/redback-common-ldap/src/main/java/org/apache/archiva/redback/common/ldap/role/DefaultLdapRoleMapper.java
redback-rbac/redback-rbac-providers/redback-rbac-ldap/src/main/java/org/apache/archiva/redback/rbac/ldap/LdapRbacManager.java

index e426859a067a6cc35b2ea3d54cc1cc7c0b5ab8be..16b7ed9035933f2e926f3d1c837c3d649d29a54d 100644 (file)
@@ -57,7 +57,7 @@ import java.util.Set;
  * @author Olivier Lamy
  * @since 2.1
  */
-@Service( "ldapRoleMapper#default" )
+@Service("ldapRoleMapper#default")
 public class DefaultLdapRoleMapper
     implements LdapRoleMapper
 {
@@ -68,7 +68,7 @@ public class DefaultLdapRoleMapper
     private LdapConnectionFactory ldapConnectionFactory;
 
     @Inject
-    @Named( value = "userConfiguration#default" )
+    @Named(value = "userConfiguration#default")
     private UserConfiguration userConf;
 
     //---------------------------
@@ -81,8 +81,6 @@ public class DefaultLdapRoleMapper
 
     private String baseDn;
 
-    private boolean writableLdap = false;
-
     private boolean useDefaultRoleName = false;
 
     @PostConstruct
@@ -99,8 +97,6 @@ public class DefaultLdapRoleMapper
             this.groupsDn = this.baseDn;
         }
 
-        this.writableLdap = userConf.getBoolean( UserConfigurationKeys.LDAP_WRITABLE, this.writableLdap );
-
         this.useDefaultRoleName =
             userConf.getBoolean( UserConfigurationKeys.LDAP_GROUPS_USE_ROLENAME, this.useDefaultRoleName );
     }
index 91a3027acf4e3cbbe03ca2b65f45e0d8bb711ec5..48fddf4d4f797838a49603d97b2bd43004ab6320 100644 (file)
@@ -263,6 +263,8 @@ public class LdapRbacManager
         //return this.rbacImpl.getAllRoles();
     }
 
+
+
     public List<UserAssignment> getAllUserAssignments()
         throws RbacManagerException
     {
@@ -781,6 +783,7 @@ public class LdapRbacManager
         return roleExists( role.getName() );
     }
 
+    @Override
     public boolean roleExists( String name )
         throws RbacManagerException
     {