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 Properties getGroupMappings(long ldapServerId, long companyId)
037                    throws Exception;
038    
039            public long getPreferredLDAPServerId(long companyId, String screenName);
040    
041            public String getPropertyPostfix(long ldapServerId);
042    
043            public Properties getUserExpandoMappings(long ldapServerId, long companyId)
044                    throws Exception;
045    
046            public Properties getUserMappings(long ldapServerId, long companyId)
047                    throws Exception;
048    
049            public boolean isExportEnabled(long companyId);
050    
051            public boolean isExportGroupEnabled(long companyId);
052    
053            public boolean isImportEnabled(long companyId);
054    
055            public boolean isImportOnStartup(long companyId);
056    
057            public boolean isPasswordPolicyEnabled(long companyId);
058    
059    }