1 package com.liferay.portal.security.ldap;
3 import javax.naming.directory.Attributes;
5 import com.liferay.portal.model.User;
7 public class LDAPLocalServiceUtil {
8 private static LDAPLocalService _service;
10 public static Attributes getUserAttibutes(long companyId, String attribute, String value) throws Exception {
11 return getService().getUserAttibutes(companyId, attribute, value);
14 public static String getUserAttribute(long companyId, Attributes attributes, String attribute) throws Exception {
15 return getService().getUserAttribute(companyId, attributes, attribute);
18 public static User getUser(long companyId, String attribute, String value) throws Exception {
19 return getService().getUser(companyId, attribute, value);
22 public static LDAPLocalService getService() {
23 if (_service == null) {
24 throw new RuntimeException("LDAPLocalService is not set");
30 public void setService(LDAPLocalService service) {