From 8dbf947eb6e84ec6a3c6e9ba421c682d847a8b00 Mon Sep 17 00:00:00 2001 From: Andrew Branson Date: Thu, 5 Jun 2014 16:13:23 +0200 Subject: Make LDAPNextKeyManager independent of the LDAPLookup. The authenticator is the only required common component. --- src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java') diff --git a/src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java b/src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java index a96a46b..10c1830 100644 --- a/src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java +++ b/src/main/java/com/c2kernel/lookup/ldap/LDAPLookup.java @@ -55,7 +55,6 @@ public class LDAPLookup implements Lookup { private LDAPAuthManager mLDAPAuth; - private LDAPNextKeyManager mNextKeyManager; private LDAPPropertyManager mPropManager; final String mItemTypeRoot, mDomainTypeRoot, mGlobalPath, mRootPath, mLocalPath, mRolePath; @@ -87,21 +86,10 @@ public class LDAPLookup implements Lookup @Override public void open(Authenticator auth) { mLDAPAuth = (LDAPAuthManager)auth; - mNextKeyManager = new LDAPNextKeyManager(mLDAPAuth, "cn=last,"+mItemTypeRoot); - Gateway.getProperties().setProperty("NextKeyManager", mNextKeyManager); Logger.msg(7, "LDAP.useOldProps="+Gateway.getProperties().getBoolean("LDAP.useOldProps", false)); mPropManager = new LDAPPropertyManager(this, mLDAPAuth); } - /** - * Gets the entity key generator, used to get a unique system key for new entities. - * @return the global NextKeyManager - */ - public LDAPNextKeyManager getNextKeyManager() - { - return mNextKeyManager; - } - /** * Gets the property manager, that is used to read and write cristal properties to the LDAP store. * @return Returns the global LDAPPropertyManager. -- cgit v1.2.3