directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r494165 - /directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java
Date Mon, 08 Jan 2007 19:40:02 GMT
Author: elecharny
Date: Mon Jan  8 11:40:01 2007
New Revision: 494165

URL: http://svn.apache.org/viewvc?view=rev&rev=494165
Log:
Patch for DIRSERVER-783.
- No more BasicAttribute and BasicAttributes. Use AttributeImpl and AttributesImpl now.
- No more ModificationItem. use ModificationItemImpl now
- lot of refactoring of imports : no more import xxx.*;

Modified:
    directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java

Modified: directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java?view=diff&rev=494165&r1=494164&r2=494165
==============================================================================
--- directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java
(original)
+++ directory/trunks/apacheds/protocol-dns/src/main/java/org/apache/directory/server/dns/store/operations/GetFlatRecord.java
Mon Jan  8 11:40:01 2007
@@ -25,8 +25,6 @@
 import javax.naming.NamingException;
 import javax.naming.directory.Attribute;
 import javax.naming.directory.Attributes;
-import javax.naming.directory.BasicAttribute;
-import javax.naming.directory.BasicAttributes;
 import javax.naming.directory.DirContext;
 import javax.naming.directory.SearchResult;
 
@@ -37,6 +35,8 @@
 import org.apache.directory.server.dns.messages.ResourceRecordModifier;
 import org.apache.directory.server.dns.store.DnsAttribute;
 import org.apache.directory.server.protocol.shared.store.ContextOperation;
+import org.apache.directory.shared.ldap.message.AttributeImpl;
+import org.apache.directory.shared.ldap.message.AttributesImpl;
 
 
 /**
@@ -73,11 +73,11 @@
             return null;
         }
 
-        Attributes matchAttrs = new BasicAttributes( true );
+        Attributes matchAttrs = new AttributesImpl( true );
 
-        matchAttrs.put( new BasicAttribute( DnsAttribute.NAME, question.getDomainName() )
);
-        matchAttrs.put( new BasicAttribute( DnsAttribute.TYPE, question.getRecordType().getCode()
) );
-        matchAttrs.put( new BasicAttribute( DnsAttribute.CLASS, question.getRecordClass().getCode()
) );
+        matchAttrs.put( new AttributeImpl( DnsAttribute.NAME, question.getDomainName() )
);
+        matchAttrs.put( new AttributeImpl( DnsAttribute.TYPE, question.getRecordType().getCode()
) );
+        matchAttrs.put( new AttributeImpl( DnsAttribute.CLASS, question.getRecordClass().getCode()
) );
 
         ResourceRecord record = null;
 



Mime
View raw message