directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r499768 - /directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java
Date Thu, 25 Jan 2007 12:51:05 GMT
Author: elecharny
Date: Thu Jan 25 04:51:04 2007
New Revision: 499768

URL: http://svn.apache.org/viewvc?view=rev&rev=499768
Log:
Used AttributeUtils.containsValueCaseIgnore( attr, value) instead of
attr.cxontains( value )

Modified:
    directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java

Modified: directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java?view=diff&rev=499768&r1=499767&r2=499768
==============================================================================
--- directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java
(original)
+++ directory/apacheds/branches/1.0/kerberos-shared/src/main/java/org/apache/directory/server/kerberos/shared/store/operations/PrincipalStateFactory.java
Thu Jan 25 04:51:04 2007
@@ -35,6 +35,7 @@
 import org.apache.directory.server.kerberos.shared.store.PrincipalStoreEntry;
 import org.apache.directory.shared.ldap.message.LockableAttributeImpl;
 import org.apache.directory.shared.ldap.message.LockableAttributesImpl;
+import org.apache.directory.shared.ldap.util.AttributeUtils;
 
 
 /**
@@ -70,14 +71,14 @@
                 outAttrs.put( oc );
             }
 
-            if ( !oc.contains( "top" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "top" ) )
             {
                 oc.add( "top" );
             }
 
             PrincipalStoreEntry p = ( PrincipalStoreEntry ) obj;
 
-            if ( !oc.contains( "uidObject" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "uidObject" ) )
             {
                 oc.add( "uidObject" );
                 if ( p.getUserId() != null )
@@ -90,13 +91,13 @@
                 }
             }
 
-            if ( !oc.contains( "extensibleObject" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "extensibleObject" ) )
             {
                 oc.add( "extensibleObject" );
                 outAttrs.put( "apacheSamType", "7" );
             }
 
-            if ( !oc.contains( "person" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "person" ) )
             {
                 oc.add( "person" );
 
@@ -105,22 +106,22 @@
                 outAttrs.put( "cn", p.getCommonName() );
             }
 
-            if ( !oc.contains( "organizationalPerson" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "organizationalPerson" ) )
             {
                 oc.add( "organizationalPerson" );
             }
 
-            if ( !oc.contains( "inetOrgPerson" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "inetOrgPerson" ) )
             {
                 oc.add( "inetOrgPerson" );
             }
 
-            if ( !oc.contains( "krb5Principal" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "krb5Principal" ) )
             {
                 oc.add( "krb5Principal" );
             }
 
-            if ( !oc.contains( "krb5KDCEntry" ) )
+            if ( !AttributeUtils.containsValueCaseIgnore( oc, "krb5KDCEntry" ) )
             {
                 oc.add( "krb5KDCEntry" );
 



Mime
View raw message