mailpuccino
Class LDAPDirectoryService

java.lang.Object
  extended bymailpuccino.LocalDirectoryService
      extended bymailpuccino.LDAPDirectoryService
All Implemented Interfaces:
ComponentType, Directory, DirectoryEntry, DirectoryService

public class LDAPDirectoryService
extends LocalDirectoryService
implements DirectoryService


Nested Class Summary
(package private)  class LDAPDirectoryService.LDAPEntryViewer
           
(package private)  class LDAPDirectoryService.LDAPInterface
           
 
Nested classes inherited from class mailpuccino.LocalDirectoryService
LocalDirectoryService.EmptyInterface, LocalDirectoryService.EntryConfig, LocalDirectoryService.FireThread, LocalDirectoryService.ListConfig
 
Field Summary
(package private)  CommStatusListener CommStatus
           
(package private)  javax.naming.directory.SearchControls SearchOpts
           
(package private)  javax.naming.directory.DirContext TheContext
           
(package private) static java.lang.String TypeName
           
 
Fields inherited from class mailpuccino.LocalDirectoryService
AllEntries, Config, Contents, FIRE_ADDED, FIRE_CHANGED, FIRE_DELETED, ListenerList, Name
 
Constructor Summary
LDAPDirectoryService()
           
 
Method Summary
 void close()
           
 DirectoryEntry createEntry()
           
 Directory createSub()
           
(package private)  javax.naming.directory.DirContext getContext()
           
 InterfaceJPanel getEntryConfigInterface(DirectoryEntry Target)
           
 InterfaceJPanel getInterface()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 void init(Preferences Config)
           
(package private)  java.util.Vector internalSearch(java.lang.String Attr, java.lang.String Pattern, int MaxHits, SearchHitsListener HitsListener)
           
 java.util.Vector search(java.lang.String Attr, java.lang.String Pattern, int MaxHits, SearchHitsListener HitsListener)
           
 void setCommStatusListener(CommStatusListener Target)
           
 
Methods inherited from class mailpuccino.LocalDirectoryService
addDirectoryListener, addEntry, fireAdded, fireChanged, fireDeleted, getAttribute, getAttributes, getDirectory, getEntries, getEntryCount, open, removeDirectoryListener, removeEntry, setAttribute, setAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mailpuccino.DirectoryService
addDirectoryListener, open, removeDirectoryListener, removeEntry
 
Methods inherited from interface mailpuccino.Directory
getEntries, getEntryCount
 
Methods inherited from interface mailpuccino.DirectoryEntry
getAttribute, getAttributes, getDirectory, setAttribute, setAttributes
 

Field Detail

TypeName

static java.lang.String TypeName

TheContext

javax.naming.directory.DirContext TheContext

SearchOpts

javax.naming.directory.SearchControls SearchOpts

CommStatus

CommStatusListener CommStatus
Constructor Detail

LDAPDirectoryService

public LDAPDirectoryService()
Method Detail

init

public void init(Preferences Config)
Specified by:
init in interface DirectoryService
Overrides:
init in class LocalDirectoryService

getType

public java.lang.String getType()
Specified by:
getType in interface ComponentType
Overrides:
getType in class LocalDirectoryService

getName

public java.lang.String getName()
Specified by:
getName in interface DirectoryService
Overrides:
getName in class LocalDirectoryService

setCommStatusListener

public void setCommStatusListener(CommStatusListener Target)
Specified by:
setCommStatusListener in interface DirectoryService
Overrides:
setCommStatusListener in class LocalDirectoryService

close

public void close()
           throws DirectoryException
Specified by:
close in interface DirectoryService
Overrides:
close in class LocalDirectoryService
Throws:
DirectoryException

search

public java.util.Vector search(java.lang.String Attr,
                               java.lang.String Pattern,
                               int MaxHits,
                               SearchHitsListener HitsListener)
                        throws DirectoryException
Specified by:
search in interface DirectoryService
Overrides:
search in class LocalDirectoryService
Throws:
DirectoryException

internalSearch

java.util.Vector internalSearch(java.lang.String Attr,
                                java.lang.String Pattern,
                                int MaxHits,
                                SearchHitsListener HitsListener)
                          throws DirectoryException
Throws:
DirectoryException

getContext

javax.naming.directory.DirContext getContext()
                                       throws javax.naming.NamingException
Throws:
javax.naming.NamingException

createSub

public Directory createSub()
                    throws DirectoryException
Specified by:
createSub in interface DirectoryService
Overrides:
createSub in class LocalDirectoryService
Throws:
DirectoryException

createEntry

public DirectoryEntry createEntry()
                           throws DirectoryException
Specified by:
createEntry in interface DirectoryService
Overrides:
createEntry in class LocalDirectoryService
Throws:
DirectoryException

getInterface

public InterfaceJPanel getInterface()
Specified by:
getInterface in interface DirectoryService
Overrides:
getInterface in class LocalDirectoryService

getEntryConfigInterface

public InterfaceJPanel getEntryConfigInterface(DirectoryEntry Target)
Specified by:
getEntryConfigInterface in interface DirectoryService
Overrides:
getEntryConfigInterface in class LocalDirectoryService