[java-opensaml] branch maint-4 updated: OSJ-359 - Remove LDAPStorageService

Scott Cantor cantor.2 at osu.edu
Wed Sep 7 13:50:59 UTC 2022


This is an automated email from the git hooks/post-receive script.

scantor pushed a commit to branch maint-4
in repository java-opensaml.

View the commit online:
http://git.shibboleth.net/view/?p=java-opensaml.git;a=commit;h=878ef3082a4437d869e2785a7c694db4a79e04e0

The following commit(s) were added to refs/heads/maint-4 by this push:
     new 878ef3082 OSJ-359 - Remove LDAPStorageService
878ef3082 is described below

commit 878ef3082a4437d869e2785a7c694db4a79e04e0
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Wed Sep 7 09:50:56 2022 -0400

    OSJ-359 - Remove LDAPStorageService
    
    https://shibboleth.atlassian.net/browse/OSJ-359
    
    Add deprecation warning to maint branch.
---
 .../src/main/java/org/opensaml/storage/impl/LDAPStorageService.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/LDAPStorageService.java b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/LDAPStorageService.java
index 9854b67f4..b3199e40e 100644
--- a/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/LDAPStorageService.java
+++ b/opensaml-storage-impl/src/main/java/org/opensaml/storage/impl/LDAPStorageService.java
@@ -27,6 +27,8 @@ import net.shibboleth.utilities.java.support.annotation.constraint.Positive;
 import net.shibboleth.utilities.java.support.collection.Pair;
 import net.shibboleth.utilities.java.support.component.ComponentInitializationException;
 import net.shibboleth.utilities.java.support.logic.Constraint;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport;
+import net.shibboleth.utilities.java.support.primitive.DeprecationSupport.ObjectType;
 
 import org.ldaptive.AttributeModification;
 import org.ldaptive.AttributeModificationType;
@@ -75,6 +77,8 @@ public class LDAPStorageService extends AbstractStorageService implements Storag
      * @param attrs to include in all LDAP entries
      */
     public LDAPStorageService(@Nonnull final PooledConnectionFactory factory, final LdapAttribute... attrs) {
+        DeprecationSupport.warn(ObjectType.CLASS, getClass().getName(), null, null);
+        
         connectionFactory = Constraint.isNotNull(factory, "ConnectionFactory cannot be null");
         defaultAttributes = attrs;
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list