nu.zoom.ldap.eon.connection.password
Class PasswordConnectionFactory

java.lang.Object
  extended by nu.zoom.ldap.eon.connection.AbstractConnectionFactory
      extended by nu.zoom.ldap.eon.connection.password.PasswordConnectionFactory
All Implemented Interfaces:
ConnectionFactory

public class PasswordConnectionFactory
extends AbstractConnectionFactory

Version:
$Revision: 1.6 $
Author:
$Author: johan $

Constructor Summary
PasswordConnectionFactory(Preferences preferences, Workbench workbench, org.ops4j.gaderian.Messages messages, ComponentFactory componentFactory, OperationManager operationManager)
           
 
Method Summary
protected  void delegateAddConnection(Connection connection)
          Subclasses should add the connection to the list of connections.
protected  void delegateConnectionChanged(Connection connection)
          Subclasses should rememeber the new connection data.
protected  void delegateRemoveConnection(Connection connection)
          Subclasses should remove the connection from the connection list.
 String getDescription()
          Get a description of the type of connections this factory handles.
 ConnectionEditor getEditor()
          Subclasses should provide an editor for the type of connection it handles.
 ImageIcon getIcon()
          The factory can provide an icon to represent the connection type it handles.
 String getName()
          The connection factory should provide a short name for the type of connections the factory handles.
 Connection[] listConnections()
          Get all connections this factory handles.
 
Methods inherited from class nu.zoom.ldap.eon.connection.AbstractConnectionFactory
addConnection, addConnectionFactoryListener, connectionChanged, fireConnectionAdded, fireConnectionChanged, fireConnectionRemoved, removeConnection, removeConnectionFactoryListener
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasswordConnectionFactory

public PasswordConnectionFactory(Preferences preferences,
                                 Workbench workbench,
                                 org.ops4j.gaderian.Messages messages,
                                 ComponentFactory componentFactory,
                                 OperationManager operationManager)
Method Detail

listConnections

public Connection[] listConnections()
                             throws BackendException
Description copied from interface: ConnectionFactory
Get all connections this factory handles.

Returns:
An array of collections.
Throws:
BackendException

delegateAddConnection

protected void delegateAddConnection(Connection connection)
                              throws BackendException
Description copied from class: AbstractConnectionFactory
Subclasses should add the connection to the list of connections. This (parent) class will inform listeners that it has been added.

Specified by:
delegateAddConnection in class AbstractConnectionFactory
Throws:
BackendException

delegateRemoveConnection

protected void delegateRemoveConnection(Connection connection)
                                 throws BackendException
Description copied from class: AbstractConnectionFactory
Subclasses should remove the connection from the connection list. This (parent) class will inform listeners that the connection has been removed.

Specified by:
delegateRemoveConnection in class AbstractConnectionFactory
Parameters:
connection - The connection to remove. Never null.
Throws:
BackendException
See Also:
AbstractConnectionFactory.fireConnectionRemoved(ConnectionGUID)

delegateConnectionChanged

protected void delegateConnectionChanged(Connection connection)
                                  throws BackendException
Description copied from class: AbstractConnectionFactory
Subclasses should rememeber the new connection data.

Specified by:
delegateConnectionChanged in class AbstractConnectionFactory
Parameters:
connection - The connection that changed.
Throws:
BackendException

getDescription

public String getDescription()
Description copied from interface: ConnectionFactory
Get a description of the type of connections this factory handles. THe description should be suitable for use as a tooltip.

Specified by:
getDescription in interface ConnectionFactory
Specified by:
getDescription in class AbstractConnectionFactory
Returns:
A descrioption of the connections this factory provides.

getName

public String getName()
Description copied from interface: ConnectionFactory
The connection factory should provide a short name for the type of connections the factory handles. This should be suitable for use as an item on a menu.

Specified by:
getName in interface ConnectionFactory
Specified by:
getName in class AbstractConnectionFactory
Returns:
The name for the connection factory.

getIcon

public ImageIcon getIcon()
Description copied from interface: ConnectionFactory
The factory can provide an icon to represent the connection type it handles.

Specified by:
getIcon in interface ConnectionFactory
Specified by:
getIcon in class AbstractConnectionFactory
Returns:
The icon to use. Null if hte factory does not have an icon.

getEditor

public ConnectionEditor getEditor()
Description copied from class: AbstractConnectionFactory
Subclasses should provide an editor for the type of connection it handles. If a connection is added or changed the editor should call the fireXXX methods on this class to inform connection factory listeners that the list of connections has changed.

Specified by:
getEditor in interface ConnectionFactory
Specified by:
getEditor in class AbstractConnectionFactory
Returns:
An editor.
See Also:
AbstractConnectionFactory.fireConnectionAdded(Connection), AbstractConnectionFactory.fireConnectionChanged(Connection)


Copyright © 2011. All Rights Reserved.