directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From trus...@apache.org
Subject svn commit: r485161 - /directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java
Date Sun, 10 Dec 2006 12:01:54 GMT
Author: trustin
Date: Sun Dec 10 04:01:51 2006
New Revision: 485161

URL: http://svn.apache.org/viewvc?view=rev&rev=485161
Log:
Added JavaDoc for mitosis.operation.Operation

Modified:
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java?view=diff&rev=485161&r1=485160&r2=485161
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/operation/Operation.java
Sun Dec 10 04:01:51 2006
@@ -25,14 +25,29 @@
 import javax.naming.NamingException;
 import javax.naming.OperationNotSupportedException;
 
-import org.apache.directory.server.core.partition.PartitionNexus;
-import org.apache.directory.server.core.schema.AttributeTypeRegistry;
 import org.apache.directory.mitosis.common.CSN;
+import org.apache.directory.mitosis.common.Constants;
 import org.apache.directory.mitosis.store.ReplicationStore;
+import org.apache.directory.server.core.partition.Partition;
+import org.apache.directory.server.core.partition.PartitionNexus;
+import org.apache.directory.server.core.schema.AttributeTypeRegistry;
+import org.apache.directory.shared.ldap.name.LdapDN;
 
 
 /**
- * Represents a small operation on an entry in replicated {@link DirectoryPartition}.
+ * Represents an operation performed on one or more entries in replicated
+ * {@link Partition}.  Each {@link Operation} has its own {@link CSN} which
+ * identifies itself.
+ * <p>
+ * An {@link Operation} is usually created by calling factory methods in
+ * {@link OperationFactory}, which produces a {@link CompositeOperation} of
+ * smaller multiple operation.  For example,
+ * {@link OperationFactory#newDelete(LdapDN)} returns a
+ * {@link CompositeOperation} which consists of two
+ * {@link ReplaceAttributeOperation}s; one updates {@link Constants#ENTRY_CSN}
+ * attribute and the other updates {@link Constants#ENTRY_DELETED}.  Refer
+ * to {@link OperationFactory} to find out what LDAP/JNDI operation is 
+ * translated into what {@link Operation} instance.
  *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
@@ -95,7 +110,7 @@
         }
     }
 
-
+    @SuppressWarnings("unused")
     protected void execute0( PartitionNexus nexus, ReplicationStore store, AttributeTypeRegistry
registry ) 
         throws NamingException
     {



Mime
View raw message