|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.manifoldcf.core.database.BaseTable
org.apache.manifoldcf.agents.outputconnection.OutputConnectionManager
public class OutputConnectionManager
This class is the manager of the outputconnection description. Inside, a database table is managed, with appropriate caching. Note well: The database handle is instantiated here using the DBInterfaceFactory. This is acceptable because the actual database that this table is located in is fixed.
| Nested Class Summary | |
|---|---|
protected static class |
OutputConnectionManager.OutputConnectionDescription
This is the object description for an output connection object. |
protected static class |
OutputConnectionManager.OutputConnectionExecutor
This is the executor object for locating output connection objects. |
| Field Summary | |
|---|---|
static java.lang.String |
_rcsid
|
protected static java.lang.String |
classNameField
|
protected static java.lang.String |
configField
|
protected static java.lang.String |
descriptionField
|
protected static java.lang.String |
maxCountField
|
protected static java.lang.String |
nameField
|
protected static java.util.Random |
random
|
| Fields inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
dbInterface, tableName |
| Constructor Summary | |
|---|---|
OutputConnectionManager(IThreadContext threadContext,
IDBInterface database)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
checkConnectorExists(java.lang.String name)
Check if underlying connector exists. |
IOutputConnection |
create()
Create a new output connection object. |
void |
deinstall()
Uninstall the manager. |
void |
delete(java.lang.String name)
Delete an output connection. |
void |
exportConfiguration(java.io.OutputStream os)
Export configuration |
java.lang.String[] |
findConnectionsForConnector(java.lang.String className)
Get a list of output connections that share the same connector. |
IOutputConnection[] |
getAllConnections()
Obtain a list of the output connections, ordered by name. |
java.lang.String |
getConnectionNameColumn()
Return the name column. |
protected static java.lang.String |
getOutputConnectionKey(java.lang.String connectionName)
Construct a key which represents an individual output connection. |
protected void |
getOutputConnectionsChunk(OutputConnection[] rval,
java.util.Map returnIndex,
java.lang.String idList,
java.util.ArrayList params)
Read a chunk of output connections. |
protected static java.lang.String |
getOutputConnectionsKey()
Construct a key which represents the general list of output connectors. |
protected OutputConnection[] |
getOutputConnectionsMultiple(java.lang.String[] connectionNames)
Fetch multiple output connections at a single time. |
void |
importConfiguration(java.io.InputStream is)
Import configuration |
void |
install()
Install the manager. |
IOutputConnection |
load(java.lang.String name)
Load an output connection by name. |
IOutputConnection[] |
loadMultiple(java.lang.String[] names)
Load multiple output connections by name. |
boolean |
save(IOutputConnection object)
Save an output connection object. |
| Methods inherited from class org.apache.manifoldcf.core.database.BaseTable |
|---|
addTableIndex, analyzeTable, beginTransaction, constructDistinctOnClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getTableIndexes, getTableName, getTableSchema, getTransactionID, makeTableKey, noteModifications, performAddIndex, performAlter, performCreate, performDelete, performDrop, performInsert, performLock, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.manifoldcf.agents.interfaces.IOutputConnectionManager |
|---|
getTableName |
| Field Detail |
|---|
public static final java.lang.String _rcsid
protected static final java.lang.String nameField
protected static final java.lang.String descriptionField
protected static final java.lang.String classNameField
protected static final java.lang.String maxCountField
protected static final java.lang.String configField
protected static java.util.Random random
| Constructor Detail |
|---|
public OutputConnectionManager(IThreadContext threadContext,
IDBInterface database)
throws ManifoldCFException
threadContext - is the thread context.
ManifoldCFException| Method Detail |
|---|
public void install()
throws ManifoldCFException
install in interface IOutputConnectionManagerManifoldCFException
public void deinstall()
throws ManifoldCFException
deinstall in interface IOutputConnectionManagerManifoldCFException
public void exportConfiguration(java.io.OutputStream os)
throws java.io.IOException,
ManifoldCFException
exportConfiguration in interface IOutputConnectionManagerjava.io.IOException
ManifoldCFException
public void importConfiguration(java.io.InputStream is)
throws java.io.IOException,
ManifoldCFException
importConfiguration in interface IOutputConnectionManagerjava.io.IOException
ManifoldCFException
public IOutputConnection[] getAllConnections()
throws ManifoldCFException
getAllConnections in interface IOutputConnectionManagerManifoldCFException
public IOutputConnection load(java.lang.String name)
throws ManifoldCFException
load in interface IOutputConnectionManagername - is the name of the output connection.
ManifoldCFException
public IOutputConnection[] loadMultiple(java.lang.String[] names)
throws ManifoldCFException
loadMultiple in interface IOutputConnectionManagernames - are the names to load.
ManifoldCFException
public IOutputConnection create()
throws ManifoldCFException
create in interface IOutputConnectionManagerManifoldCFException
public boolean save(IOutputConnection object)
throws ManifoldCFException
save in interface IOutputConnectionManagerobject - is the object to save.
ManifoldCFException
public void delete(java.lang.String name)
throws ManifoldCFException
delete in interface IOutputConnectionManagername - is the name of the connection to delete. If the
name does not exist, no error is returned.
ManifoldCFException
public java.lang.String[] findConnectionsForConnector(java.lang.String className)
throws ManifoldCFException
findConnectionsForConnector in interface IOutputConnectionManagerclassName - is the class name of the connector.
ManifoldCFException
public boolean checkConnectorExists(java.lang.String name)
throws ManifoldCFException
checkConnectorExists in interface IOutputConnectionManagername - is the name of the connection to check.
ManifoldCFExceptionpublic java.lang.String getConnectionNameColumn()
getConnectionNameColumn in interface IOutputConnectionManagerprotected static java.lang.String getOutputConnectionsKey()
protected static java.lang.String getOutputConnectionKey(java.lang.String connectionName)
connectionName - is the name of the connector.
protected OutputConnection[] getOutputConnectionsMultiple(java.lang.String[] connectionNames)
throws ManifoldCFException
connectionNames - are a list of connection names.
ManifoldCFException
protected void getOutputConnectionsChunk(OutputConnection[] rval,
java.util.Map returnIndex,
java.lang.String idList,
java.util.ArrayList params)
throws ManifoldCFException
rval - is the place to put the read policies.returnIndex - is a map from the object id (resource id) and the rval index.idList - is the list of id's.params - is the set of parameters.
ManifoldCFException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||