001
014
015 package com.liferay.portal.security.ldap;
016
017 import com.liferay.portal.model.Contact;
018 import com.liferay.portal.model.User;
019
020 import java.io.Serializable;
021
022 import java.util.Map;
023
024
029 public class PortalLDAPExporterUtil {
030
031 public static void exportToLDAP(
032 Contact contact, Map<String, Serializable> contactExpandoAttributes)
033 throws Exception {
034
035 _portalLDAPExporter.exportToLDAP(contact, contactExpandoAttributes);
036 }
037
038 public static void exportToLDAP(
039 User user, Map<String, Serializable> userExpandoAttributes)
040 throws Exception {
041
042 _portalLDAPExporter.exportToLDAP(user, userExpandoAttributes);
043 }
044
045 public void setPortalLDAPExporter(PortalLDAPExporter portalLDAPExporter) {
046 _portalLDAPExporter = portalLDAPExporter;
047 }
048
049 private static PortalLDAPExporter _portalLDAPExporter;
050
051 }