com.stratelia.silverpeas.domains.ldapdriver
Class LDAPSettings

java.lang.Object
  extended by com.stratelia.silverpeas.domains.DriverSettings
      extended by com.stratelia.silverpeas.domains.ldapdriver.LDAPSettings

public class LDAPSettings
extends DriverSettings

This class read the property file and keep it's values accessible via the get functions

Version:
1.0
Author:
tleroi

Field Summary
protected  LdapConfiguration configuration
           
protected  String groupsClassName
           
protected  String groupsDescriptionField
           
protected  String groupsFilter
           
protected  String groupsIdField
           
protected  boolean groupsIncludeEmptyGroups
           
protected  boolean groupsInheritProfiles
           
protected  String groupsMemberField
           
protected  String groupsNameField
           
protected  int groupsNamingDepth
           
protected  String groupsSpecificGroupsBaseDN
           
protected  String groupsType
           
protected  boolean ihmImportGroups
           
protected  boolean ihmImportUsers
           
protected  int LDAPBatchSize
           
protected  com.novell.ldap.LDAPConstraints LDAPDefaultConstraints
           
protected  com.novell.ldap.LDAPSearchConstraints LDAPDefaultSearchConstraints
           
protected  String LDAPImpl
           
protected  int LDAPMaxMsClientTimeLimit
           
protected  int LDAPMaxNbEntryReturned
           
protected  int LDAPMaxNbReferrals
           
protected  int LDAPMaxSecServerTimeLimit
           
protected  boolean LDAPOpAttributesUsed
           
protected  int LDAPProtocolVer
           
protected  boolean LDAPSearchRecurs
           
protected  String LDAPUserBaseDN
           
protected  boolean sortControlSupported
           
protected  boolean SYNCHROautomatic
           
protected  boolean SYNCHROCacheEnabled
           
protected  boolean SYNCHROImportUsers
           
protected  boolean SYNCHRORecursToGroups
           
protected  boolean SYNCHROthreaded
           
protected  String SYNCHROtimeStampVar
           
static String TIME_STAMP_MSAD
           
static String TIME_STAMP_MSAD_TT
           
static String TIME_STAMP_NDS
           
protected  String usersAccountControl
           
protected  String usersClassName
           
protected  String usersDisabledAccountFlag
           
protected  String usersEmailField
           
protected  String usersFilter
           
protected  String usersFirstNameField
           
protected  String usersIdField
           
protected  String usersLastNameField
           
protected  String usersLoginField
           
protected  String usersType
           
 
Constructor Summary
LDAPSettings()
           
 
Method Summary
 boolean displayImportGroups()
           
 boolean displayImportUsers()
           
 com.novell.ldap.LDAPConstraints getConstraints(boolean allocateNew)
           
protected  String[] getGroupAttributes()
           
 String getGroupsClassName()
           
 String getGroupsDescriptionField()
           
 String getGroupsFilter()
           
 String getGroupsFullFilter()
           
 String getGroupsIdField()
           
 String getGroupsIdFilter(String value)
           
 boolean getGroupsIncludeEmptyGroups()
           
 String getGroupsMemberField()
           
 String getGroupsNameField()
           
 String getGroupsNameFilter(String value)
           
 int getGroupsNamingDepth()
           
 String getGroupsSpecificGroupsBaseDN()
           
 String getLDAPAccessLoginDN()
           
 byte[] getLDAPAccessPasswd()
           
 String getLDAPHost()
           
 String getLDAPImpl()
           
 int getLDAPPort()
           
 int getLDAPProtocolVer()
           
 boolean getLDAPSearchRecurs()
           
 String getLDAPUserBaseDN()
           
 int getScope()
           
 com.novell.ldap.LDAPSearchConstraints getSearchConstraints(boolean allocateNew)
           
 String getTimeStampVar()
           
protected  String[] getUserAttributes()
           
 String getUsersAccountControl()
           
 String getUsersClassName()
           
 String getUsersDisabledAccountFlag()
           
 String getUsersEmailField()
           
 String getUsersFilter()
           
 String getUsersFirstNameField()
           
 String getUsersFullFilter()
           
 String getUsersIdField()
           
 String getUsersIdFilter(String value)
           
 String getUsersLastNameField()
           
 String getUsersLoginField()
           
 String getUsersLoginFilter(String value)
           
 void initFromProperties(ResourceLocator rs)
          Performs initialization from a properties file.
 boolean isGroupsInheritProfiles()
           
 boolean isLDAPOpAttributesUsed()
           
 boolean isLDAPSecured()
           
 boolean isSortControlSupported()
           
 boolean isSynchroAutomatic()
           
 boolean isSynchroCacheEnabled()
           
 boolean isSynchroRecursToGroups()
           
 boolean isSynchroThreaded()
           
 boolean mustImportUsers()
           
 AbstractLDAPGroup newLDAPGroup()
           
 AbstractLDAPTimeStamp newLDAPTimeStamp(String theValue)
           
 LDAPUser newLDAPUser()
           
 
Methods inherited from class com.stratelia.silverpeas.domains.DriverSettings
getBooleanValue, getIntValue, getStringValue, getSureString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TIME_STAMP_MSAD

public static final String TIME_STAMP_MSAD
See Also:
Constant Field Values

TIME_STAMP_MSAD_TT

public static final String TIME_STAMP_MSAD_TT
See Also:
Constant Field Values

TIME_STAMP_NDS

public static final String TIME_STAMP_NDS
See Also:
Constant Field Values

configuration

protected final LdapConfiguration configuration

LDAPImpl

protected String LDAPImpl

LDAPProtocolVer

protected int LDAPProtocolVer

LDAPOpAttributesUsed

protected boolean LDAPOpAttributesUsed

LDAPUserBaseDN

protected String LDAPUserBaseDN

LDAPSearchRecurs

protected boolean LDAPSearchRecurs

LDAPDefaultConstraints

protected com.novell.ldap.LDAPConstraints LDAPDefaultConstraints

LDAPDefaultSearchConstraints

protected com.novell.ldap.LDAPSearchConstraints LDAPDefaultSearchConstraints

LDAPMaxMsClientTimeLimit

protected int LDAPMaxMsClientTimeLimit

LDAPMaxSecServerTimeLimit

protected int LDAPMaxSecServerTimeLimit

LDAPMaxNbEntryReturned

protected int LDAPMaxNbEntryReturned

LDAPMaxNbReferrals

protected int LDAPMaxNbReferrals

LDAPBatchSize

protected int LDAPBatchSize

sortControlSupported

protected boolean sortControlSupported

SYNCHROautomatic

protected boolean SYNCHROautomatic

SYNCHRORecursToGroups

protected boolean SYNCHRORecursToGroups

SYNCHROthreaded

protected boolean SYNCHROthreaded

SYNCHROtimeStampVar

protected String SYNCHROtimeStampVar

SYNCHROCacheEnabled

protected boolean SYNCHROCacheEnabled

SYNCHROImportUsers

protected boolean SYNCHROImportUsers

usersClassName

protected String usersClassName

usersFilter

protected String usersFilter

usersType

protected String usersType

usersIdField

protected String usersIdField

usersLoginField

protected String usersLoginField

usersFirstNameField

protected String usersFirstNameField

usersLastNameField

protected String usersLastNameField

usersEmailField

protected String usersEmailField

usersAccountControl

protected String usersAccountControl

usersDisabledAccountFlag

protected String usersDisabledAccountFlag

groupsType

protected String groupsType

groupsClassName

protected String groupsClassName

groupsInheritProfiles

protected boolean groupsInheritProfiles

groupsFilter

protected String groupsFilter

groupsNamingDepth

protected int groupsNamingDepth

groupsIdField

protected String groupsIdField

groupsIncludeEmptyGroups

protected boolean groupsIncludeEmptyGroups

groupsSpecificGroupsBaseDN

protected String groupsSpecificGroupsBaseDN

groupsMemberField

protected String groupsMemberField

groupsNameField

protected String groupsNameField

groupsDescriptionField

protected String groupsDescriptionField

ihmImportUsers

protected boolean ihmImportUsers

ihmImportGroups

protected boolean ihmImportGroups
Constructor Detail

LDAPSettings

public LDAPSettings()
Method Detail

initFromProperties

public void initFromProperties(ResourceLocator rs)
Performs initialization from a properties file. The optional properties are retreive with getSureString.

Parameters:
rs - Properties resource file

isSynchroAutomatic

public boolean isSynchroAutomatic()

isSynchroRecursToGroups

public boolean isSynchroRecursToGroups()

isSynchroThreaded

public boolean isSynchroThreaded()

getTimeStampVar

public String getTimeStampVar()

isSynchroCacheEnabled

public boolean isSynchroCacheEnabled()

mustImportUsers

public boolean mustImportUsers()

newLDAPTimeStamp

public AbstractLDAPTimeStamp newLDAPTimeStamp(String theValue)

getLDAPImpl

public String getLDAPImpl()

getLDAPHost

public String getLDAPHost()

getLDAPPort

public int getLDAPPort()

getLDAPProtocolVer

public int getLDAPProtocolVer()

isLDAPOpAttributesUsed

public boolean isLDAPOpAttributesUsed()

getLDAPAccessLoginDN

public String getLDAPAccessLoginDN()

getLDAPAccessPasswd

public byte[] getLDAPAccessPasswd()

getLDAPUserBaseDN

public String getLDAPUserBaseDN()

getLDAPSearchRecurs

public boolean getLDAPSearchRecurs()

isLDAPSecured

public boolean isLDAPSecured()

getScope

public int getScope()

getSearchConstraints

public com.novell.ldap.LDAPSearchConstraints getSearchConstraints(boolean allocateNew)

getConstraints

public com.novell.ldap.LDAPConstraints getConstraints(boolean allocateNew)

newLDAPUser

public LDAPUser newLDAPUser()
                     throws AdminException
Throws:
AdminException

getUsersClassName

public String getUsersClassName()

getUsersFilter

public String getUsersFilter()

getUsersFullFilter

public String getUsersFullFilter()

getUsersIdField

public String getUsersIdField()

getUsersLoginField

public String getUsersLoginField()

getUsersFirstNameField

public String getUsersFirstNameField()

getUsersLastNameField

public String getUsersLastNameField()

getUsersEmailField

public String getUsersEmailField()

getUsersAccountControl

public String getUsersAccountControl()

getUsersDisabledAccountFlag

public String getUsersDisabledAccountFlag()

getUsersIdFilter

public String getUsersIdFilter(String value)

getUsersLoginFilter

public String getUsersLoginFilter(String value)

newLDAPGroup

public AbstractLDAPGroup newLDAPGroup()
                               throws AdminException
Throws:
AdminException

getGroupsClassName

public String getGroupsClassName()

isGroupsInheritProfiles

public boolean isGroupsInheritProfiles()

getGroupsFilter

public String getGroupsFilter()

getGroupsNamingDepth

public int getGroupsNamingDepth()

getGroupsFullFilter

public String getGroupsFullFilter()

getGroupsMemberField

public String getGroupsMemberField()

getGroupsSpecificGroupsBaseDN

public String getGroupsSpecificGroupsBaseDN()

getGroupsIdField

public String getGroupsIdField()

getGroupsIncludeEmptyGroups

public boolean getGroupsIncludeEmptyGroups()

getGroupsNameField

public String getGroupsNameField()

getGroupsDescriptionField

public String getGroupsDescriptionField()

getGroupsIdFilter

public String getGroupsIdFilter(String value)

getGroupsNameFilter

public String getGroupsNameFilter(String value)

getUserAttributes

protected String[] getUserAttributes()

getGroupAttributes

protected String[] getGroupAttributes()

displayImportUsers

public boolean displayImportUsers()

displayImportGroups

public boolean displayImportGroups()

isSortControlSupported

public boolean isSortControlSupported()


Copyright © 2016 Silverpeas. All Rights Reserved.