|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.ldap.LdapDirectorySettingsImpl
public class LdapDirectorySettingsImpl
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope |
| Field Summary |
|---|
| Fields inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT |
| Constructor Summary | |
|---|---|
LdapDirectorySettingsImpl()
Simple constructor for this class, sets default values, note that you won't be able to create an LdapDirectory with these defaults (empty name, empty hostname forbidden by LdapDirectory) |
|
LdapDirectorySettingsImpl(LdapDirectorySettingsImpl settings)
Constructor. |
|
| Method Summary | |
|---|---|
LdapDirectorySettings |
clone()
Clone this object. |
boolean |
equals(LdapDirectorySettings other)
Checks if both LdapDirectorySettings instance have the same content |
LdapConstants.Auth |
getAuth()
simple getter for auth |
String |
getBaseDN()
simple getter for baseDN |
String |
getBindDN()
simple getter for bindDN |
LdapConstants.Encryption |
getEncryption()
simple getter for encryption |
String |
getGlobalPhonePrefix()
Returns the global prefix to be used when calling phones from this ldap source. |
List<String> |
getHomePhoneSearchFields()
Returns home phone fields that we will lookup. |
String |
getHostname()
simple getter for hostname |
List<String> |
getMailSearchFields()
Returns mail fields that we will lookup. |
String |
getMailSuffix()
Returns mail suffix. |
List<String> |
getMobilePhoneSearchFields()
Returns mobile phone fields that we will lookup. |
String |
getName()
simple getter for name |
String |
getPassword()
simple getter for password |
int |
getPort()
simple getter for port |
LdapConstants.Scope |
getScope()
Returns the search scope: one level under the base distinguished name or all the subtree. |
String |
getUserName()
Returns the user name associated with the corresponding ldap directory. |
List<String> |
getWorkPhoneSearchFields()
Returns work phone fields that we will lookup. |
int |
hashCode()
Returns the hash code for this instance. |
boolean |
isEnabled()
Simple getter for enabled. |
static List<String> |
mergeString(String attrs)
Merge String elements separated by space into a List. |
static String |
mergeStrings(List<String> lst)
Merge String elements from a list to a single String separated by space. |
void |
persistentLoad(String name)
Loads the settings with the given name from the config files into the LdapDirectorySetting. |
void |
persistentRemove()
Removes settings with this name from the configuration files (package private) |
void |
persistentSave()
Saves these settings through the configuration service |
void |
setAuth(LdapConstants.Auth auth)
simple setter for auth |
void |
setBaseDN(String baseDN)
simple setter for baseDN |
void |
setBindDN(String bindDN)
simple setter for bindDN |
void |
setEnabled(boolean enabled)
simple setter for enabled. |
void |
setEncryption(LdapConstants.Encryption encryption)
simple setter for encryption |
void |
setGlobalPhonePrefix(String prefix)
Sets the global prefix to be used when calling phones from this ldap source. |
void |
setHomePhoneSearchFields(List<String> list)
Set home phone fields that we will lookup. |
void |
setHostname(String hostname)
simple setter for hostname |
void |
setMailSearchFields(List<String> list)
Set mail fields that we will lookup. |
void |
setMailSuffix(String suffix)
Set mail suffix. |
void |
setMobilePhoneSearchFields(List<String> list)
Set mobile phone fields that we will lookup. |
void |
setName(String name)
simple setter for name |
void |
setPassword(String password)
simple setter for password |
void |
setPort(int port)
simple setter for port |
void |
setScope(LdapConstants.Scope scope)
Sets the search scope: one level under the base distinguished name or all the subtree. |
void |
setWorkPhoneSearchFields(List<String> list)
Set work phone fields that we will lookup. |
String |
toString()
meant for debugging |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LdapDirectorySettingsImpl()
public LdapDirectorySettingsImpl(LdapDirectorySettingsImpl settings)
settings - existing settings| Method Detail |
|---|
public String getName()
getName in interface LdapDirectorySettingspublic void setName(String name)
setName in interface LdapDirectorySettingsname - the name propertypublic boolean isEnabled()
isEnabled in interface LdapDirectorySettingsLdapDirectorySettings.isEnabled()public void setEnabled(boolean enabled)
setEnabled in interface LdapDirectorySettingsenabled - whether the server is marked as enabledLdapDirectorySettings.setEnabled(boolean)public String getHostname()
getHostname in interface LdapDirectorySettingspublic void setHostname(String hostname)
setHostname in interface LdapDirectorySettingshostname - the hostname propertypublic LdapConstants.Encryption getEncryption()
getEncryption in interface LdapDirectorySettingsLdapConstants.Encryptionpublic void setEncryption(LdapConstants.Encryption encryption)
setEncryption in interface LdapDirectorySettingsencryption - the encryption propertyLdapConstants.Encryptionpublic int getPort()
getPort in interface LdapDirectorySettingspublic void setPort(int port)
setPort in interface LdapDirectorySettingsport - the port propertypublic LdapConstants.Auth getAuth()
getAuth in interface LdapDirectorySettingsLdapConstants.Authpublic void setAuth(LdapConstants.Auth auth)
setAuth in interface LdapDirectorySettingsauth - the auth propertyLdapConstants.Authpublic String getBindDN()
getBindDN in interface LdapDirectorySettingspublic String getUserName()
public void setBindDN(String bindDN)
setBindDN in interface LdapDirectorySettingsbindDN - the bindDN propertypublic String getPassword()
getPassword in interface LdapDirectorySettingspublic void setPassword(String password)
setPassword in interface LdapDirectorySettingspassword - the password propertypublic String getBaseDN()
getBaseDN in interface LdapDirectorySettingspublic void setBaseDN(String baseDN)
setBaseDN in interface LdapDirectorySettingsbaseDN - the baseDN propertypublic LdapConstants.Scope getScope()
getScope in interface LdapDirectorySettingsLdapConstants.Scope,
LdapDirectorySettings.getScope()public void setScope(LdapConstants.Scope scope)
setScope in interface LdapDirectorySettingsscope - the new search scopeLdapConstants.Scope,
LdapDirectorySettings.setScope(net.java.sip.communicator.service.ldap.LdapConstants.Scope)public String getGlobalPhonePrefix()
getGlobalPhonePrefix in interface LdapDirectorySettingspublic void setGlobalPhonePrefix(String prefix)
setGlobalPhonePrefix in interface LdapDirectorySettingsprefix - the global prefix to be used when calling phones from this
ldap sourcepublic boolean equals(LdapDirectorySettings other)
equals in interface LdapDirectorySettingsother - object to compare
Object.equals(java.lang.Object)public int hashCode()
hashCode in interface LdapDirectorySettingshashCode in class ObjectObject.hashCode()public List<String> getMailSearchFields()
getMailSearchFields in interface LdapDirectorySettingspublic void setMailSearchFields(List<String> list)
setMailSearchFields in interface LdapDirectorySettingslist - of mail fields that we will lookuppublic String getMailSuffix()
getMailSuffix in interface LdapDirectorySettingspublic void setMailSuffix(String suffix)
setMailSuffix in interface LdapDirectorySettingssuffix - mail suffixpublic List<String> getWorkPhoneSearchFields()
getWorkPhoneSearchFields in interface LdapDirectorySettingspublic void setWorkPhoneSearchFields(List<String> list)
setWorkPhoneSearchFields in interface LdapDirectorySettingslist - of work phone fields that we will lookuppublic List<String> getMobilePhoneSearchFields()
getMobilePhoneSearchFields in interface LdapDirectorySettingspublic void setMobilePhoneSearchFields(List<String> list)
setMobilePhoneSearchFields in interface LdapDirectorySettingslist - of mobile phone fields that we will lookuppublic List<String> getHomePhoneSearchFields()
getHomePhoneSearchFields in interface LdapDirectorySettingspublic void setHomePhoneSearchFields(List<String> list)
setHomePhoneSearchFields in interface LdapDirectorySettingslist - of home phone fields that we will lookuppublic static String mergeStrings(List<String> lst)
lst - list of Strings
public static List<String> mergeString(String attrs)
attrs - String
public void persistentSave()
persistentSave in interface LdapDirectorySettingsLdapDirectorySettings.persistentSave()public void persistentLoad(String name)
persistentLoad in interface LdapDirectorySettingsname - name of the settingsLdapDirectorySettings.persistentLoad(java.lang.String)public void persistentRemove()
persistentRemove in interface LdapDirectorySettingsLdapDirectorySettings.persistentRemove()public String toString()
toString in class Objectpublic LdapDirectorySettings clone()
LdapDirectorySettings
clone in interface LdapDirectorySettingsclone in class Object
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||