Fix LDIF persistence
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / directory / ldap / LdapEntry.java
index e2587621a3037ce69c6a09271d9a6c4840a59b53..798c449cf9b61c98e699bbe1c8c28b1742bacf48 100644 (file)
@@ -12,7 +12,7 @@ import java.util.TreeSet;
 import javax.naming.directory.Attributes;
 import javax.naming.ldap.LdapName;
 
-import org.argeo.api.acr.ldap.LdapAttrs;
+import org.argeo.api.acr.ldap.LdapAttr;
 
 /** An LDAP entry. */
 public interface LdapEntry {
@@ -20,7 +20,7 @@ public interface LdapEntry {
 
        Attributes getAttributes();
 
-       void publishAttributes(Attributes modifiedAttributes);
+       //void publishAttributes(Attributes modifiedAttributes);
 
        List<LdapName> getReferences(String attributeId);
 
@@ -36,12 +36,12 @@ public interface LdapEntry {
         * backend.
         */
        public static void addObjectClasses(Dictionary<String, Object> properties, Collection<String> objectClasses) {
-               String value = properties.get(LdapAttrs.objectClasses.name()).toString();
+               String value = properties.get(LdapAttr.objectClasses.name()).toString();
                Set<String> currentObjectClasses = new TreeSet<>(Arrays.asList(value.toString().split("\n")));
                currentObjectClasses.addAll(objectClasses);
                StringJoiner values = new StringJoiner("\n");
                currentObjectClasses.forEach((s) -> values.add(s));
-               properties.put(LdapAttrs.objectClasses.name(), values.toString());
+               properties.put(LdapAttr.objectClasses.name(), values.toString());
        }
 
        public static Object getLocalized(Dictionary<String, Object> properties, String key, Locale locale) {