001
014
015 package com.liferay.portal.security.ldap;
016
017 import com.liferay.portal.kernel.util.ProxyFactory;
018
019 import java.util.Properties;
020
021
024 public class LDAPSettingsUtil {
025
026 public static String getAuthSearchFilter(
027 long ldapServerId, long companyId, String emailAddress,
028 String screenName, String userId)
029 throws Exception {
030
031 return _ldapSettings.getAuthSearchFilter(
032 ldapServerId, companyId, emailAddress, screenName, userId);
033 }
034
035 public static Properties getContactExpandoMappings(
036 long ldapServerId, long companyId)
037 throws Exception {
038
039 return _ldapSettings.getContactExpandoMappings(ldapServerId, companyId);
040 }
041
042 public static Properties getContactMappings(
043 long ldapServerId, long companyId)
044 throws Exception {
045
046 return _ldapSettings.getContactMappings(ldapServerId, companyId);
047 }
048
049 public static String[] getErrorPasswordHistoryKeywords(long companyId) {
050 return _ldapSettings.getErrorPasswordHistoryKeywords(companyId);
051 }
052
053 public static Properties getGroupMappings(long ldapServerId, long companyId)
054 throws Exception {
055
056 return _ldapSettings.getGroupMappings(ldapServerId, companyId);
057 }
058
059 public static long getPreferredLDAPServerId(
060 long companyId, String screenName) {
061
062 return _ldapSettings.getPreferredLDAPServerId(companyId, screenName);
063 }
064
065 public static String getPropertyPostfix(long ldapServerId) {
066 return _ldapSettings.getPropertyPostfix(ldapServerId);
067 }
068
069 public static Properties getUserExpandoMappings(
070 long ldapServerId, long companyId)
071 throws Exception {
072
073 return _ldapSettings.getUserExpandoMappings(ldapServerId, companyId);
074 }
075
076 public static Properties getUserMappings(long ldapServerId, long companyId)
077 throws Exception {
078
079 return _ldapSettings.getUserMappings(ldapServerId, companyId);
080 }
081
082 public static boolean isExportEnabled(long companyId) {
083 return _ldapSettings.isExportEnabled(companyId);
084 }
085
086 public static boolean isExportGroupEnabled(long companyId) {
087 return _ldapSettings.isExportGroupEnabled(companyId);
088 }
089
090 public static boolean isImportEnabled(long companyId) {
091 return _ldapSettings.isImportEnabled(companyId);
092 }
093
094 public static boolean isImportOnStartup(long companyId) {
095 return _ldapSettings.isImportOnStartup(companyId);
096 }
097
098 public static boolean isPasswordPolicyEnabled(long companyId) {
099 return _ldapSettings.isPasswordPolicyEnabled(companyId);
100 }
101
102 private static final LDAPSettings _ldapSettings =
103 ProxyFactory.newServiceTrackedInstance(LDAPSettings.class);
104
105 }