directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject [directory-ldap-api] branch master updated: Registered the transactionSpecification control
Date Wed, 17 Jan 2018 09:39:29 GMT
This is an automated email from the ASF dual-hosted git repository.

elecharny pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-ldap-api.git


The following commit(s) were added to refs/heads/master by this push:
     new 5d934d0  Registered the transactionSpecification control
5d934d0 is described below

commit 5d934d01437c8cb790f7954a152178776eaf6af1
Author: Emmanuel L├ęcharny <elecharny@symas.com>
AuthorDate: Wed Jan 17 10:39:12 2018 +0100

    Registered the transactionSpecification control
---
 .../directory/api/ldap/codec/standalone/CodecFactoryUtil.java       | 6 ++++++
 .../org/apache/directory/api/ldap/extras/ExtrasBundleActivator.java | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/CodecFactoryUtil.java
b/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/CodecFactoryUtil.java
index 2fc976c..045c20b 100644
--- a/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/CodecFactoryUtil.java
+++ b/ldap/codec/standalone/src/main/java/org/apache/directory/api/ldap/codec/standalone/CodecFactoryUtil.java
@@ -55,6 +55,8 @@ import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncDoneValue
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncInfoValueFactory;
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory;
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory;
+import org.apache.directory.api.ldap.extras.controls.transaction.TransactionSpecification;
+import org.apache.directory.api.ldap.extras.controls.transaction.TransactionSpecificationFactory;
 import org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewRequest;
 import org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewResponse;
 import org.apache.directory.api.ldap.extras.controls.vlv_impl.VirtualListViewRequestFactory;
@@ -181,6 +183,10 @@ public final class CodecFactoryUtil
         controlFactories.put( syncStateValueFactory.getOid(), syncStateValueFactory );
         LOG.info( "Registered pre-bundled control factory: {}", syncStateValueFactory.getOid()
);
 
+        ControlFactory<TransactionSpecification> transactionSpecificationFactory =
new TransactionSpecificationFactory( apiService );
+        controlFactories.put( transactionSpecificationFactory.getOid(), transactionSpecificationFactory
);
+        LOG.info( "Registered pre-bundled control factory: {}", transactionSpecificationFactory.getOid()
);
+
         ControlFactory<VirtualListViewRequest> virtualListViewRequestFactory = new
VirtualListViewRequestFactory(
             apiService );
         controlFactories.put( virtualListViewRequestFactory.getOid(), virtualListViewRequestFactory
);
diff --git a/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/ExtrasBundleActivator.java
b/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/ExtrasBundleActivator.java
index 73c5933..bf0e48f 100644
--- a/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/ExtrasBundleActivator.java
+++ b/ldap/extras/codec/src/main/java/org/apache/directory/api/ldap/extras/ExtrasBundleActivator.java
@@ -42,6 +42,8 @@ import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncDoneValue
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncInfoValueFactory;
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncRequestValueFactory;
 import org.apache.directory.api.ldap.extras.controls.syncrepl_impl.SyncStateValueFactory;
+import org.apache.directory.api.ldap.extras.controls.transaction.TransactionSpecification;
+import org.apache.directory.api.ldap.extras.controls.transaction.TransactionSpecificationFactory;
 import org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewRequest;
 import org.apache.directory.api.ldap.extras.controls.vlv.VirtualListViewResponse;
 import org.apache.directory.api.ldap.extras.controls.vlv_impl.VirtualListViewRequestFactory;
@@ -165,6 +167,7 @@ public class ExtrasBundleActivator implements BundleActivator
             codec.unregisterControl( SyncInfoValue.OID );
             codec.unregisterControl( SyncRequestValue.OID );
             codec.unregisterControl( SyncStateValue.OID );
+            codec.unregisterControl( TransactionSpecification.OID );
             codec.unregisterControl( VirtualListViewRequest.OID );
             codec.unregisterControl( VirtualListViewResponse.OID );
         }
@@ -220,6 +223,9 @@ public class ExtrasBundleActivator implements BundleActivator
             ControlFactory<SyncStateValue> syncStateValuefactory = new SyncStateValueFactory(
codec );
             codec.registerControl( syncStateValuefactory );
 
+            ControlFactory<TransactionSpecification> transactionSpecificationfactory
= new TransactionSpecificationFactory( codec );
+            codec.registerControl( transactionSpecificationfactory );
+
             ControlFactory<VirtualListViewRequest> virtualListViewRequestFactory =
new VirtualListViewRequestFactory( codec );
             codec.registerControl( virtualListViewRequestFactory );
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@directory.apache.org" <commits@directory.apache.org>'].

Mime
View raw message