directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r679063 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
Date Wed, 23 Jul 2008 10:48:26 GMT
Author: kayyagari
Date: Wed Jul 23 03:48:25 2008
New Revision: 679063

URL: http://svn.apache.org/viewvc?rev=679063&view=rev
Log:
added a get() method to get the Attribute based on an Attribute's id

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java?rev=679063&r1=679062&r2=679063&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
Wed Jul 23 03:48:25 2008
@@ -22,6 +22,8 @@
 
 import java.io.Serializable;
 
+import javax.naming.directory.Attribute;
+
 import org.apache.directory.server.core.authn.LdapPrincipal;
 import org.apache.directory.shared.ldap.ldif.LdifEntry;
 
@@ -40,16 +42,16 @@
     private final LdifEntry forwardLdif;
     private final LdifEntry reverseLdif;
     private final LdapPrincipal committer;
-    
-    
+
+
     /**
      * Creates a new instance of ChangeLogEvent.
      *
      * @param revision the revision number for the change
      * @param zuluTime the timestamp for when the change occurred in generalizedTime format
      */
-    public ChangeLogEvent( long revision, String zuluTime, LdapPrincipal committer,
-                           LdifEntry forwardLdif, LdifEntry reverseLdif )
+    public ChangeLogEvent( long revision, String zuluTime, LdapPrincipal committer, LdifEntry
forwardLdif,
+                           LdifEntry reverseLdif )
     {
         this.zuluTime = zuluTime;
         this.revision = revision;
@@ -108,6 +110,12 @@
     }
 
 
+    public Attribute get( String attributeName )
+    {
+        return forwardLdif.get( attributeName );
+    }
+
+
     @Override
     public String toString()
     {
@@ -134,7 +142,7 @@
         .append( getReverseLdif() );
         
         sb.append( " }" );
-        
+
         return sb.toString();
     }
 }



Mime
View raw message