|
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.service.ldap.event.DefaultLdapEventManager
net.java.sip.communicator.impl.ldap.LdapDirectoryImpl
public class LdapDirectoryImpl
An LdapDirectory stores settings for one directory server and performs ldap operations (search)
| Nested Class Summary | |
|---|---|
class |
LdapDirectoryImpl.LdapQueryCancelledException
A custom exception used internally by LdapDirectoryImpl to indicate that a query was cancelled |
| Nested classes/interfaces inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LdapConstants.Auth, LdapConstants.Encryption, LdapConstants.Scope |
| Field Summary |
|---|
| Fields inherited from class net.java.sip.communicator.service.ldap.event.DefaultLdapEventManager |
|---|
ldapListeners |
| Fields inherited from interface net.java.sip.communicator.service.ldap.LdapConstants |
|---|
LDAP_CONNECT_TIMEOUT, LDAP_READ_TIMEOUT |
| Constructor Summary | |
|---|---|
LdapDirectoryImpl(LdapDirectorySettings settings)
The contructor for this class. |
|
| Method Summary | |
|---|---|
int |
compareTo(LdapDirectory server)
An LdapDirectory is comparable in order to display LdapDirectory(s) in alphabetic order in the UI. |
boolean |
equals(Object anObject)
Two LdapDirectory(s) with the same displayed name should not exist in the same LdapDirectorySet, thus this function |
(package private) byte[] |
fetchPhotoForPerson(String dn)
Tries to fetch the photo of the person with the given distinguished name in the directory |
LdapDirectorySettings |
getSettings()
Returns an LdapDirectorySettings object containing a copy of the settings of this server |
int |
hashCode()
We override the equals method so we also do for hashCode to keep consistent behavior |
boolean |
isEnabled()
Returns the state of the enabled marker. |
void |
ldapEventReceived(LdapEvent event)
Required by LdapListener. |
void |
overrideAttributesSearch(String attribute,
List<String> names)
Overrides attributes name for searching for a specific type (i.e mail, homePhone, ...). |
Collection<String> |
searchChildren(String dn)
search the children nodes of the given dn |
void |
searchPerson(LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
Searches a person in the directory, based on a search string. |
void |
setEnabled(boolean enabled)
Sets the state of the enabled marker Required by LdapDirectory interface. |
String |
toString()
Turns LdapDirectoryImpl into a printable object Used for debugging purposes |
| Methods inherited from class net.java.sip.communicator.service.ldap.event.DefaultLdapEventManager |
|---|
addLdapListener, fireLdapEvent, fireLdapEvent, removeLdapListener |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.java.sip.communicator.service.ldap.LdapDirectory |
|---|
addLdapListener |
| Methods inherited from interface net.java.sip.communicator.service.ldap.event.LdapEventManager |
|---|
fireLdapEvent, fireLdapEvent, removeLdapListener |
| Constructor Detail |
|---|
public LdapDirectoryImpl(LdapDirectorySettings settings)
settings - settings for this new serverLdapDirectorySettings| Method Detail |
|---|
public boolean isEnabled()
isEnabled in interface LdapDirectoryLdapDirectory.isEnabled()public void setEnabled(boolean enabled)
setEnabled in interface LdapDirectoryenabled - whether the server is marked as enabledLdapDirectory.setEnabled(boolean)public LdapDirectorySettings getSettings()
getSettings in interface LdapDirectoryLdapDirectorySettings,
LdapDirectory.getSettings()
public void searchPerson(LdapQuery query,
LdapListener caller,
LdapSearchSettings searchSettings)
searchPerson in interface LdapDirectoryquery - assumed name (can be partial) of the person searched
e.g. "john", "doe", "john doe"caller - the LdapListener which called the method and will
receive results.searchSettings - custom settings for this search, null if you
want to stick with the defaultsLdapDirectory.searchPerson(net.java.sip.communicator.service.ldap.LdapQuery, net.java.sip.communicator.service.ldap.event.LdapListener, net.java.sip.communicator.service.ldap.LdapSearchSettings),
LdapPersonFound,
LdapEventpublic String toString()
toString in class Objectpublic int compareTo(LdapDirectory server)
compareTo in interface Comparable<LdapDirectory>Comparablepublic boolean equals(Object anObject)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic Collection<String> searchChildren(String dn)
searchChildren in interface LdapDirectorydn - the distinguished name of the node to search for children
LdapDirectory.searchChildren(java.lang.String)byte[] fetchPhotoForPerson(String dn)
dn - distinguished name of the person to fetch the photo
public void ldapEventReceived(LdapEvent event)
ldapEventReceived in interface LdapListenerevent - An LdapEvent probably sent by an LdapDirectory
public void overrideAttributesSearch(String attribute,
List<String> names)
overrideAttributesSearch in interface LdapDirectoryattribute - namenames - list of attributes name
|
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 | |||||||||