mailpuccino
Class LocalDirectoryService

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

public class LocalDirectoryService
extends java.lang.Object
implements DirectoryService


Nested Class Summary
(package private)  class LocalDirectoryService.EmptyInterface
           
 class LocalDirectoryService.EntryConfig
           
(package private)  class LocalDirectoryService.FireThread
           
(package private)  class LocalDirectoryService.ListConfig
           
 
Field Summary
protected  java.util.Vector AllEntries
           
protected  Preferences Config
           
protected  Preferences Contents
           
(package private) static int FIRE_ADDED
           
(package private) static int FIRE_CHANGED
           
(package private) static int FIRE_DELETED
           
(package private)  javax.swing.event.EventListenerList ListenerList
           
(package private)  java.lang.String Name
           
(package private) static java.lang.String TypeName
           
 
Constructor Summary
LocalDirectoryService()
           
 
Method Summary
 void addDirectoryListener(DirectoryListener Target)
           
 DirectoryEntry addEntry(DirectoryEntry Target)
           
 void close()
           
 DirectoryEntry createEntry()
           
 Directory createSub()
           
 void fireAdded(DirectoryEntry Target)
           
 void fireChanged(DirectoryEntry Target)
           
 void fireDeleted(DirectoryEntry Target)
           
 java.lang.String getAttribute(java.lang.String Name)
           
 java.lang.String[] getAttributes(java.lang.String[] Names)
           
 DirectoryService getDirectory()
           
 java.util.Vector getEntries()
           
 InterfaceJPanel getEntryConfigInterface(DirectoryEntry Target)
           
 int getEntryCount()
           
 InterfaceJPanel getInterface()
           
 java.lang.String getName()
           
 java.lang.String getType()
           
 void init(Preferences Config)
           
 void open()
           
 void removeDirectoryListener(DirectoryListener Target)
           
 void removeEntry(DirectoryEntry Target)
           
 java.util.Vector search(java.lang.String Attr, java.lang.String Target, int MaxHits, SearchHitsListener HitsListener)
           
 void setAttribute(java.lang.String Name, java.lang.String Value)
           
 void setAttributes(java.lang.String[] Names, java.lang.String[] Values)
           
 void setCommStatusListener(CommStatusListener Target)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TypeName

static java.lang.String TypeName

FIRE_ADDED

static final int FIRE_ADDED
See Also:
Constant Field Values

FIRE_CHANGED

static final int FIRE_CHANGED
See Also:
Constant Field Values

FIRE_DELETED

static final int FIRE_DELETED
See Also:
Constant Field Values

ListenerList

javax.swing.event.EventListenerList ListenerList

Config

protected Preferences Config

Contents

protected Preferences Contents

AllEntries

protected java.util.Vector AllEntries

Name

java.lang.String Name
Constructor Detail

LocalDirectoryService

public LocalDirectoryService()
Method Detail

getType

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

getName

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

setCommStatusListener

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

init

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

open

public void open()
          throws DirectoryException
Specified by:
open in interface DirectoryService
Throws:
DirectoryException

close

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

getEntries

public java.util.Vector getEntries()
                            throws DirectoryException
Specified by:
getEntries in interface Directory
Throws:
DirectoryException

getEntryCount

public int getEntryCount()
                  throws DirectoryException
Specified by:
getEntryCount in interface Directory
Throws:
DirectoryException

createSub

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

createEntry

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

addEntry

public DirectoryEntry addEntry(DirectoryEntry Target)
                        throws DirectoryException
Throws:
DirectoryException

removeEntry

public void removeEntry(DirectoryEntry Target)
                 throws DirectoryException
Specified by:
removeEntry in interface DirectoryService
Throws:
DirectoryException

search

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

getEntryConfigInterface

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

getInterface

public InterfaceJPanel getInterface()
Specified by:
getInterface in interface DirectoryService

addDirectoryListener

public void addDirectoryListener(DirectoryListener Target)
Specified by:
addDirectoryListener in interface DirectoryService

removeDirectoryListener

public void removeDirectoryListener(DirectoryListener Target)
Specified by:
removeDirectoryListener in interface DirectoryService

fireChanged

public void fireChanged(DirectoryEntry Target)

fireAdded

public void fireAdded(DirectoryEntry Target)

fireDeleted

public void fireDeleted(DirectoryEntry Target)

getAttribute

public java.lang.String getAttribute(java.lang.String Name)
                              throws DirectoryException
Specified by:
getAttribute in interface DirectoryEntry
Throws:
DirectoryException

getAttributes

public java.lang.String[] getAttributes(java.lang.String[] Names)
                                 throws DirectoryException
Specified by:
getAttributes in interface DirectoryEntry
Throws:
DirectoryException

setAttribute

public void setAttribute(java.lang.String Name,
                         java.lang.String Value)
                  throws DirectoryException
Specified by:
setAttribute in interface DirectoryEntry
Throws:
DirectoryException

setAttributes

public void setAttributes(java.lang.String[] Names,
                          java.lang.String[] Values)
                   throws DirectoryException
Specified by:
setAttributes in interface DirectoryEntry
Throws:
DirectoryException

getDirectory

public DirectoryService getDirectory()
Specified by:
getDirectory in interface DirectoryEntry