com.liferay.portal.security.ldap
Class LDAPSettingsUtil

java.lang.Object
  extended by com.liferay.portal.security.ldap.LDAPSettingsUtil

public class LDAPSettingsUtil
extends java.lang.Object

Author:
Edward Han, Michael C. Han, Brian Wing Shun Chan

Constructor Summary
LDAPSettingsUtil()
           
 
Method Summary
static java.lang.String getAuthSearchFilter(long ldapServerId, long companyId, java.lang.String emailAddress, java.lang.String screenName, java.lang.String userId)
           
static java.util.Properties getContactExpandoMappings(long ldapServerId, long companyId)
           
static java.util.Properties getContactMappings(long ldapServerId, long companyId)
           
static java.util.Properties getGroupMappings(long ldapServerId, long companyId)
           
static java.lang.String getPropertyPostfix(long ldapServerId)
           
static java.util.Properties getUserExpandoMappings(long ldapServerId, long companyId)
           
static java.util.Properties getUserMappings(long ldapServerId, long companyId)
           
static boolean isExportEnabled(long companyId)
           
static boolean isExportGroupEnabled(long companyId)
           
static boolean isImportEnabled(long companyId)
           
static boolean isImportOnStartup(long companyId)
           
static boolean isPasswordPolicyEnabled(long companyId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPSettingsUtil

public LDAPSettingsUtil()
Method Detail

getAuthSearchFilter

public static java.lang.String getAuthSearchFilter(long ldapServerId,
                                                   long companyId,
                                                   java.lang.String emailAddress,
                                                   java.lang.String screenName,
                                                   java.lang.String userId)
                                            throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

getContactExpandoMappings

public static java.util.Properties getContactExpandoMappings(long ldapServerId,
                                                             long companyId)
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

getContactMappings

public static java.util.Properties getContactMappings(long ldapServerId,
                                                      long companyId)
                                               throws java.io.IOException,
                                                      com.liferay.portal.kernel.exception.SystemException
Throws:
java.io.IOException
com.liferay.portal.kernel.exception.SystemException

getGroupMappings

public static java.util.Properties getGroupMappings(long ldapServerId,
                                                    long companyId)
                                             throws java.lang.Exception
Throws:
java.lang.Exception

getPropertyPostfix

public static java.lang.String getPropertyPostfix(long ldapServerId)

getUserExpandoMappings

public static java.util.Properties getUserExpandoMappings(long ldapServerId,
                                                          long companyId)
                                                   throws java.lang.Exception
Throws:
java.lang.Exception

getUserMappings

public static java.util.Properties getUserMappings(long ldapServerId,
                                                   long companyId)
                                            throws java.lang.Exception
Throws:
java.lang.Exception

isExportEnabled

public static boolean isExportEnabled(long companyId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

isExportGroupEnabled

public static boolean isExportGroupEnabled(long companyId)
                                    throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

isImportEnabled

public static boolean isImportEnabled(long companyId)
                               throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

isImportOnStartup

public static boolean isImportOnStartup(long companyId)
                                 throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException

isPasswordPolicyEnabled

public static boolean isPasswordPolicyEnabled(long companyId)
                                       throws com.liferay.portal.kernel.exception.SystemException
Throws:
com.liferay.portal.kernel.exception.SystemException