From f0f4caa7b330807252d8a86d8ff499e16f9ddd33 Mon Sep 17 00:00:00 2001
From: gbellato <gbellato@localhost>
Date: Wed, 12 Jul 2006 09:23:19 +0000
Subject: [PATCH] - pre-operation plugins are not called anymore when processing synchronization operations   for ADD,DELELTE and MODIFYDN as it was already the case for MODIFY operation   This is necessary to make sure that entries use the same unique ID everywhere.

---
 opendj-sdk/opends/src/server/org/opends/server/synchronization/UpdateMessage.java |   17 +++--------------
 1 files changed, 3 insertions(+), 14 deletions(-)

diff --git a/opendj-sdk/opends/src/server/org/opends/server/synchronization/UpdateMessage.java b/opendj-sdk/opends/src/server/org/opends/server/synchronization/UpdateMessage.java
index 554e964..f7c4bc7 100644
--- a/opendj-sdk/opends/src/server/org/opends/server/synchronization/UpdateMessage.java
+++ b/opendj-sdk/opends/src/server/org/opends/server/synchronization/UpdateMessage.java
@@ -27,6 +27,7 @@
 package org.opends.server.synchronization;
 
 import java.io.Serializable;
+import java.util.zip.DataFormatException;
 
 import org.opends.server.core.Operation;
 import org.opends.server.protocols.asn1.ASN1Exception;
@@ -114,21 +115,11 @@
    * @return  the created Operation
    * @throws  LDAPException In case of LDAP decoding exception.
    * @throws  ASN1Exception In case of ASN1 decoding exception.
+   * @throws DataFormatException In case of bad msg format.
    */
   public abstract Operation createOperation(InternalClientConnection conn)
-         throws LDAPException, ASN1Exception;
+         throws LDAPException, ASN1Exception, DataFormatException;
 
-  /**
-   * Return the byte[] representation on this message.
-   * Depending on the message type, the first byte of the byte[] must be.
-   * org.opends.server.com.protocols.ldap.LDAPConstants.OP_TYPE_MODIFY_REQUEST
-   *                                          OP_TYPE_ADD_REQUEST
-   *                                          OP_TYPE_DELETE_REQUEST
-   *                                          OP_TYPE_MODIFY_DN_REQUEST
-   *
-   * @return the byte[] representation of this message.
-   */
-  public abstract byte[] getByte();
 
   /**
    * {@inheritDoc}
@@ -139,6 +130,4 @@
     domain.receiveUpdate(this);
     return this;
   }
-
-
 }

--
Gitblit v1.10.0