--- /dev/null
+package com.liferay.portal.security.ldap;
+
+import javax.naming.directory.Attributes;
+
+import com.liferay.portal.model.User;
+
+public class LDAPLocalServiceUtil {
+ private static LDAPLocalService _service;
+
+ public static Attributes getUserAttibutes(long companyId, String attribute, String value) throws Exception {
+ return getService().getUserAttibutes(companyId, attribute, value);
+ }
+
+ public static String getUserAttribute(long companyId, Attributes attributes, String attribute) throws Exception {
+ return getService().getUserAttribute(companyId, attributes, attribute);
+ }
+
+ public static User getUser(long companyId, String attribute, String value) throws Exception {
+ return getService().getUser(companyId, attribute, value);
+ }
+
+ public static LDAPLocalService getService() {
+ if (_service == null) {
+ throw new RuntimeException("LDAPLocalService is not set");
+ }
+
+ return _service;
+ }
+
+ public void setService(LDAPLocalService service) {
+ _service = service;
+ }
+}
\ No newline at end of file