001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.security.ldap;
016    
017    import java.util.Properties;
018    
019    /**
020     * @author Edward C. Han
021     */
022    public interface LDAPSettings {
023    
024            public String getAuthSearchFilter(
025                            long ldapServerId, long companyId, String emailAddress,
026                            String screenName, String userId)
027                    throws Exception;
028    
029            public Properties getContactExpandoMappings(
030                            long ldapServerId, long companyId)
031                    throws Exception;
032    
033            public Properties getContactMappings(long ldapServerId, long companyId)
034                    throws Exception;
035    
036            public String[] getErrorPasswordHistoryKeywords(long companyId);
037    
038            public Properties getGroupMappings(long ldapServerId, long companyId)
039                    throws Exception;
040    
041            public long getPreferredLDAPServerId(long companyId, String screenName);
042    
043            public String getPropertyPostfix(long ldapServerId);
044    
045            public Properties getUserExpandoMappings(long ldapServerId, long companyId)
046                    throws Exception;
047    
048            public Properties getUserMappings(long ldapServerId, long companyId)
049                    throws Exception;
050    
051            public boolean isExportEnabled(long companyId);
052    
053            public boolean isExportGroupEnabled(long companyId);
054    
055            public boolean isImportEnabled(long companyId);
056    
057            public boolean isImportOnStartup(long companyId);
058    
059            public boolean isPasswordPolicyEnabled(long companyId);
060    
061    }