directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1067023 - in /directory: apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/ apacheds/branches/m1/protocol-ldap/src/main/ja...
Date Thu, 03 Feb 2011 23:04:20 GMT
Author: elecharny
Date: Thu Feb  3 23:04:19 2011
New Revision: 1067023

URL: http://svn.apache.org/viewvc?rev=1067023&view=rev
Log:
Moved the SyncStateControl classes

Added:
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValue.java
      - copied, changed from r1067009, directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValue.java
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValueImpl.java
      - copied, changed from r1067009, directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueImpl.java
Removed:
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValue.java
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueImpl.java
Modified:
    directory/apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
    directory/apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
    directory/apacheds/branches/m1/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueDecorator.java
    directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java
    directory/shared/branches/m1/ldap/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java

Modified: directory/apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
(original)
+++ directory/apacheds/branches/m1/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Thu Feb  3 23:04:19 2011
@@ -88,12 +88,12 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.controls.SyncInfoValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncModifyDn;
 import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
 import org.apache.directory.shared.ldap.extras.controls.ppolicy_impl.PasswordPolicyDecorator;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueDecorator;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncInfoValueDecorator;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncModifyDnDecorator;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueDecorator;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValue;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueDecorator;
 import org.apache.directory.shared.ldap.model.constants.JndiPropertyConstants;
 import org.apache.directory.shared.ldap.model.constants.SchemaConstants;

Modified: directory/apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
(original)
+++ directory/apacheds/branches/m1/core/src/main/java/org/apache/directory/server/core/partition/DefaultPartitionNexus.java
Thu Feb  3 23:04:19 2011
@@ -62,7 +62,7 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.controls.SyncDoneValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncInfoValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
 import org.apache.directory.shared.ldap.model.message.controls.EntryChange;
 import org.apache.directory.shared.ldap.model.message.controls.PagedResults;
 import org.apache.directory.shared.ldap.model.message.controls.PersistentSearch;

Modified: directory/apacheds/branches/m1/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/m1/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/apacheds/branches/m1/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
(original)
+++ directory/apacheds/branches/m1/protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java
Thu Feb  3 23:04:19 2011
@@ -63,7 +63,7 @@ import org.apache.directory.server.proto
 import org.apache.directory.shared.ldap.extras.controls.SyncDoneValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncInfoValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
 import org.apache.directory.shared.ldap.message.extended.NoticeOfDisconnect;
 import org.apache.directory.shared.ldap.model.constants.SaslQoP;
 import org.apache.directory.shared.ldap.model.exception.LdapConfigurationException;

Modified: directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
(original)
+++ directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/codec/DefaultLdapCodecService.java
Thu Feb  3 23:04:19 2011
@@ -39,12 +39,12 @@ import org.apache.directory.shared.ldap.
 import org.apache.directory.shared.ldap.extras.controls.SyncInfoValue;
 import org.apache.directory.shared.ldap.extras.controls.SyncModifyDn;
 import org.apache.directory.shared.ldap.extras.controls.SyncRequestValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
 import org.apache.directory.shared.ldap.extras.controls.ppolicy_impl.PasswordPolicyFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncDoneValueFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncInfoValueFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncModifyDnFactory;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValue;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory;
 import org.apache.directory.shared.ldap.model.message.Control;
 import org.apache.directory.shared.ldap.model.message.controls.AbstractControl;

Copied: directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValue.java
(from r1067009, directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValue.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValue.java?p2=directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValue.java&p1=directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValue.java&r1=1067009&r2=1067023&rev=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValue.java
(original)
+++ directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValue.java
Thu Feb  3 23:04:19 2011
@@ -17,16 +17,37 @@
  *   under the License.
  *
  */
-package org.apache.directory.shared.ldap.extras.controls.syncrepl_impl;
+package org.apache.directory.shared.ldap.extras.controls;
 
 
-import org.apache.directory.shared.ldap.extras.controls.SyncStateTypeEnum;
 import org.apache.directory.shared.ldap.model.message.Control;
 
 
 /**
- * A syncStateValue object, as defined in RFC 4533
- * 
+ * A syncStateValue object, as defined in RFC 4533 :
+ * <pre>
+ * 2.3.  Sync State Control
+ *
+ *    The Sync State Control is an LDAP Control [RFC4511] where the
+ *    controlType is the object identifier 1.3.6.1.4.1.4203.1.9.1.2 and the
+ *    controlValue, an OCTET STRING, contains a BER-encoded syncStateValue.
+ *    The criticality is FALSE.
+ *
+ *       syncStateValue ::= SEQUENCE {
+ *           state ENUMERATED {
+ *               present (0),
+ *               add (1),
+ *               modify (2),
+ *               delete (3)
+ *           },
+ *           entryUUID syncUUID,
+ *           cookie    syncCookie OPTIONAL
+ *       }
+ *
+ *    The Sync State Control is only applicable to SearchResultEntry and
+ *    SearchResultReference Messages.
+ * </pre>
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public interface SyncStateValue extends Control
@@ -55,7 +76,7 @@ public interface SyncStateValue extends 
 
     /**
      * set the syncState's type
-     * 
+     *
      * @param syncStateType the syncState's type
      */
     public abstract void setSyncStateType( SyncStateTypeEnum syncStateType );
@@ -69,9 +90,8 @@ public interface SyncStateValue extends 
 
     /**
      * set the entryUUID
-     * 
+     *
      * @param entryUUID the entryUUID
      */
     public abstract void setEntryUUID( byte[] entryUUID );
-
 }
\ No newline at end of file

Copied: directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValueImpl.java
(from r1067009, directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueImpl.java)
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValueImpl.java?p2=directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValueImpl.java&p1=directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueImpl.java&r1=1067009&r2=1067023&rev=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueImpl.java
(original)
+++ directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/SyncStateValueImpl.java
Thu Feb  3 23:04:19 2011
@@ -17,11 +17,14 @@
  *   under the License.
  *
  */
-package org.apache.directory.shared.ldap.extras.controls.syncrepl_impl;
+package org.apache.directory.shared.ldap.extras.controls;
 
 
-import org.apache.directory.shared.ldap.extras.controls.SyncStateTypeEnum;
+import java.util.Arrays;
+
 import org.apache.directory.shared.ldap.model.message.Control;
+import org.apache.directory.shared.ldap.model.message.controls.AbstractControl;
+import org.apache.directory.shared.util.Strings;
 
 
 /**
@@ -30,7 +33,7 @@ import org.apache.directory.shared.ldap.
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  * @version $Rev$, $Date$
  */
-public class SyncStateValueImpl implements SyncStateValue
+public class SyncStateValueImpl extends AbstractControl implements SyncStateValue
 {
     /** The syncStateEnum type */
     private SyncStateTypeEnum type;
@@ -41,33 +44,25 @@ public class SyncStateValueImpl implemen
     /** The entryUUID */
     private byte[] entryUuid;
 
-    private boolean critical;
-    
-    
-    /**
-     * {@inheritDoc}
-     */
-    public String getOid()
-    {
-        return OID;
-    }
-
 
-    /**
-     * {@inheritDoc}
+    /**SyncStateValueImpl
+     * Creates a new instance of SyncDoneValueImpl.
      */
-    public boolean isCritical()
+    public SyncStateValueImpl()
     {
-        return critical;
+        super( OID );
     }
 
 
     /**
-     * {@inheritDoc}
+     *
+     * Creates a new instance of SyncStateValueImpl.
+     *
+     * @param isCritical The critical flag
      */
-    public void setCritical( boolean isCritical )
+    public SyncStateValueImpl( boolean isCritical )
     {
-        this.critical = isCritical;
+        super( OID, isCritical );
     }
 
 
@@ -123,4 +118,79 @@ public class SyncStateValueImpl implemen
     {
         this.entryUuid = entryUUID;
     }
+
+
+    /**
+     * @see Object#hashCode()
+     */
+    @Override
+    public int hashCode()
+    {
+        int h = 37;
+
+        h = h*17 + super.hashCode();
+        h = h*17 + type.getValue();
+
+        if ( cookie != null )
+        {
+            for ( byte b : cookie )
+            {
+                h = h*17 + b;
+            }
+        }
+
+        if ( entryUuid != null )
+        {
+            for ( byte b : entryUuid )
+            {
+                h = h*17 + b;
+            }
+        }
+
+        return h;
+    }
+
+
+    /**
+     * @see Object#equals(Object)
+     */
+    @Override
+    public boolean equals( Object o )
+    {
+        if ( !super.equals( o ) )
+        {
+            return false;
+        }
+
+        if ( !( o instanceof SyncStateValue ) )
+        {
+            return false;
+        }
+
+        SyncStateValue otherControl = ( SyncStateValue ) o;
+
+        return ( type == otherControl.getSyncStateType() ) &&
+            ( Arrays.equals( entryUuid, otherControl.getEntryUUID() ) ) &&
+            ( Arrays.equals( cookie, otherControl.getCookie() ) &&
+            ( isCritical() == otherControl.isCritical() ) );
+    }
+
+
+    /**
+     * @see Object#toString()
+     */
+    @Override
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder();
+
+        sb.append( "    SyncStateValue control :\n" );
+        sb.append( "        oid : " ).append( getOid() ).append( '\n' );
+        sb.append( "        critical : " ).append( isCritical() ).append( '\n' );
+        sb.append( "        syncStateType     : '" ).append( getSyncStateType() ).append(
"'\n" );
+        sb.append( "        entryUUID         : '" ).append( Strings.dumpBytes( getEntryUUID()
) ).append( "'\n" );
+        sb.append( "        cookie            : '" ).append( Strings.dumpBytes( getCookie())
).append( "'\n" );
+
+        return sb.toString();
+    }
 }

Modified: directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueDecorator.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueDecorator.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueDecorator.java
(original)
+++ directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueDecorator.java
Thu Feb  3 23:04:19 2011
@@ -6,22 +6,21 @@
  *  to you under the Apache License, Version 2.0 (the
  *  "License"); you may not use this file except in compliance
  *  with the License.  You may obtain a copy of the License at
- *  
+ *
  *    http://www.apache.org/licenses/LICENSE-2.0
- *  
+ *
  *  Unless required by applicable law or agreed to in writing,
  *  software distributed under the License is distributed on an
  *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  *  KIND, either express or implied.  See the License for the
  *  specific language governing permissions and limitations
- *  under the License. 
- *  
+ *  under the License.
+ *
  */
 package org.apache.directory.shared.ldap.extras.controls.syncrepl_impl;
 
 
 import java.nio.ByteBuffer;
-import java.util.Arrays;
 
 import org.apache.directory.shared.asn1.Asn1Object;
 import org.apache.directory.shared.asn1.DecoderException;
@@ -34,12 +33,13 @@ import org.apache.directory.shared.i18n.
 import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.codec.controls.ControlDecorator;
 import org.apache.directory.shared.ldap.extras.controls.SyncStateTypeEnum;
-import org.apache.directory.shared.util.Strings;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValueImpl;
 
 
 /**
  * A syncStateValue object, as defined in RFC 4533
- * 
+ *
  * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
  */
 public class SyncStateValueDecorator extends ControlDecorator<SyncStateValue> implements
SyncStateValue
@@ -50,13 +50,13 @@ public class SyncStateValueDecorator ext
     /** An instance of this decoder */
     private static final Asn1Decoder decoder = new Asn1Decoder();
 
-    
+
     public SyncStateValueDecorator( ILdapCodecService codec )
     {
         super( codec, new SyncStateValueImpl() );
     }
 
-    
+
     public SyncStateValueDecorator( ILdapCodecService codec, SyncStateValue value )
     {
         super( codec, value );
@@ -119,15 +119,16 @@ public class SyncStateValueDecorator ext
 
     /**
      * Compute the SyncStateValue length.
-     * 
+     *
      * SyncStateValue :
      * 0x30 L1
-     *  | 
+     *  |
      *  +--> 0x0A 0x01 [0x00|0x01|0x02|0x03] (type)
      * [+--> 0x04 L2 abcd...                 (entryUUID)
      * [+--> 0x04 L3 abcd...                 (cookie)
-     *   
+     *
      */
+    @Override
     public int computeLength()
     {
         // The sync state type length
@@ -140,7 +141,7 @@ public class SyncStateValueDecorator ext
         {
             syncStateSeqLength += 1 + TLV.getNbBytes( getCookie().length ) + getCookie().length;
         }
-        
+
         valueLength = 1 + TLV.getNbBytes( syncStateSeqLength ) + syncStateSeqLength;
 
         return valueLength;
@@ -149,19 +150,20 @@ public class SyncStateValueDecorator ext
 
     /**
      * Encode the SyncStateValue control
-     * 
+     *
      * @param buffer The encoded sink
      * @return A ByteBuffer that contains the encoded PDU
      * @throws EncoderException If anything goes wrong.
      */
+    @Override
     public ByteBuffer encode( ByteBuffer buffer ) throws EncoderException
     {
         if ( buffer == null )
         {
             throw new EncoderException( I18n.err( I18n.ERR_04023 ) );
         }
-        
-        // Encode the SEQ 
+
+        // Encode the SEQ
         buffer.put( UniversalTag.SEQUENCE.getValue() );
         buffer.put( TLV.getBytes( syncStateSeqLength ) );
 
@@ -181,21 +183,22 @@ public class SyncStateValueDecorator ext
 
         return buffer;
     }
-    
-    
+
+
     /**
      * {@inheritDoc}
      */
+    @Override
     public byte[] getValue()
     {
         if ( value == null )
         {
             try
-            { 
+            {
                 computeLength();
                 ByteBuffer buffer = ByteBuffer.allocate( valueLength );
-                
-                // Encode the SEQ 
+
+                // Encode the SEQ
                 buffer.put( UniversalTag.SEQUENCE.getValue() );
                 buffer.put( TLV.getBytes( syncStateSeqLength ) );
 
@@ -220,44 +223,8 @@ public class SyncStateValueDecorator ext
                 return null;
             }
         }
-        
-        return value;
-    }
-
-
-    /**
-     * @see Object#equals(Object)
-     */
-    public boolean equals( Object o )
-    {
-        if ( !super.equals( o ) )
-        {
-            return false;
-        }
-
-        SyncStateValueDecorator otherControl = ( SyncStateValueDecorator ) o;
-        
-        return ( getSyncStateType() == otherControl.getSyncStateType() ) && 
-            ( Arrays.equals( getEntryUUID(), otherControl.getEntryUUID() ) ) &&
-            ( Arrays.equals( getCookie(), otherControl.getCookie() ) );
-    }
-
 
-    /**
-     * @see Object#toString()
-     */
-    public String toString()
-    {
-        StringBuilder sb = new StringBuilder();
-
-        sb.append( "    SyncStateValue control :\n" );
-        sb.append( "        oid : " ).append( getOid() ).append( '\n' );
-        sb.append( "        critical : " ).append( isCritical() ).append( '\n' );
-        sb.append( "        syncStateType     : '" ).append( getSyncStateType() ).append(
"'\n" );
-        sb.append( "        entryUUID         : '" ).append( Strings.dumpBytes( getEntryUUID()
) ).append( "'\n" );
-        sb.append( "        cookie            : '" ).append( Strings.dumpBytes( getCookie())
).append( "'\n" );
-
-        return sb.toString();
+        return value;
     }
 
 

Modified: directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java
(original)
+++ directory/shared/branches/m1/ldap/src/main/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueFactory.java
Thu Feb  3 23:04:19 2011
@@ -22,6 +22,8 @@ package org.apache.directory.shared.ldap
 
 import org.apache.directory.shared.ldap.codec.IControlFactory;
 import org.apache.directory.shared.ldap.codec.ILdapCodecService;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValueImpl;
 
 
 /**

Modified: directory/shared/branches/m1/ldap/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java
URL: http://svn.apache.org/viewvc/directory/shared/branches/m1/ldap/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java?rev=1067023&r1=1067022&r2=1067023&view=diff
==============================================================================
--- directory/shared/branches/m1/ldap/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java
(original)
+++ directory/shared/branches/m1/ldap/src/test/java/org/apache/directory/shared/ldap/extras/controls/syncrepl_impl/SyncStateValueControlTest.java
Thu Feb  3 23:04:19 2011
@@ -33,7 +33,7 @@ import org.apache.directory.shared.asn1.
 import org.apache.directory.shared.ldap.codec.DefaultLdapCodecService;
 import org.apache.directory.shared.ldap.codec.ILdapCodecService;
 import org.apache.directory.shared.ldap.extras.controls.SyncStateTypeEnum;
-import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValue;
+import org.apache.directory.shared.ldap.extras.controls.SyncStateValue;
 import org.apache.directory.shared.ldap.extras.controls.syncrepl_impl.SyncStateValueDecorator;
 import org.apache.directory.shared.util.Strings;
 import org.junit.Test;



Mime
View raw message