org.apache.manifoldcf.authorities.interfaces
Interface IAuthorityConnectionManager

All Known Implementing Classes:
AuthorityConnectionManager

public interface IAuthorityConnectionManager

This interface describes the functionality in the authority connection manager. The authority connection manager manages the definitions of individual connections, and allows them to be defined, edited, and removed.


Method Summary
 IAuthorityConnection create()
          Create a new authority connection object.
 void deinstall()
          Uninstall the manager.
 void delete(java.lang.String name)
          Delete an authority connection.
 void exportConfiguration(java.io.OutputStream os)
          Export configuration
 IAuthorityConnection[] getAllConnections()
          Obtain a list of the authority connections, ordered by name.
 java.lang.String getAuthorityNameColumn()
          Get the authority connection name column.
 java.lang.String getTableName()
          Get the authority connection table name.
 void importConfiguration(java.io.InputStream is)
          Import configuration
 void install()
          Install the manager.
 IAuthorityConnection load(java.lang.String name)
          Load a authority connection by name.
 boolean save(IAuthorityConnection object)
          Save an authority connection object.
 

Method Detail

install

void install()
             throws ManifoldCFException
Install the manager.

Throws:
ManifoldCFException

deinstall

void deinstall()
               throws ManifoldCFException
Uninstall the manager.

Throws:
ManifoldCFException

exportConfiguration

void exportConfiguration(java.io.OutputStream os)
                         throws java.io.IOException,
                                ManifoldCFException
Export configuration

Throws:
java.io.IOException
ManifoldCFException

importConfiguration

void importConfiguration(java.io.InputStream is)
                         throws java.io.IOException,
                                ManifoldCFException
Import configuration

Throws:
java.io.IOException
ManifoldCFException

getAllConnections

IAuthorityConnection[] getAllConnections()
                                         throws ManifoldCFException
Obtain a list of the authority connections, ordered by name.

Returns:
an array of connection objects.
Throws:
ManifoldCFException

load

IAuthorityConnection load(java.lang.String name)
                          throws ManifoldCFException
Load a authority connection by name.

Parameters:
name - is the name of the authority connection.
Returns:
the loaded connection object, or null if not found.
Throws:
ManifoldCFException

create

IAuthorityConnection create()
                            throws ManifoldCFException
Create a new authority connection object.

Returns:
the new object.
Throws:
ManifoldCFException

save

boolean save(IAuthorityConnection object)
             throws ManifoldCFException
Save an authority connection object.

Parameters:
object - is the object to save.
Returns:
true if the object was created, false otherwise.
Throws:
ManifoldCFException

delete

void delete(java.lang.String name)
            throws ManifoldCFException
Delete an authority connection.

Parameters:
name - is the name of the connection to delete. If the name does not exist, no error is returned.
Throws:
ManifoldCFException

getTableName

java.lang.String getTableName()
Get the authority connection table name.

Returns:
the table name.

getAuthorityNameColumn

java.lang.String getAuthorityNameColumn()
Get the authority connection name column.

Returns:
the name column.