Class MappingConnectorManager
- java.lang.Object
-
- org.apache.manifoldcf.core.database.BaseTable
-
- org.apache.manifoldcf.authorities.mapconnmgr.MappingConnectorManager
-
- All Implemented Interfaces:
IMappingConnectorManager
public class MappingConnectorManager extends BaseTable implements IMappingConnectorManager
This is the implementation of that authority connector manager.
mapconnectorsField Type Description description VARCHAR(255) classname VARCHAR(255) Primary Key
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsidprotected static java.lang.StringclassNameFieldprotected static java.lang.StringdescriptionFieldprotected IThreadContextthreadContext-
Fields inherited from class org.apache.manifoldcf.core.database.BaseTable
dbInterface, tableName
-
-
Constructor Summary
Constructors Constructor Description MappingConnectorManager(IThreadContext threadContext, IDBInterface database)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddeinstall()Uninstall.protected java.lang.StringgetCacheKey()Get the cache key for the connector manager table.IResultSetgetConnectors()Get ordered list of connectors.java.lang.StringgetDescription(java.lang.String className)Get a description given a class name.voidinstall()Install or upgrade.booleanisInstalled(java.lang.String className)Check if a particular connector is installed or not.voidregisterConnector(java.lang.String description, java.lang.String className)Register a new connector.voidremoveConnector(java.lang.String className)Remove a connector.voidunregisterConnector(java.lang.String className)Unregister a connector.-
Methods inherited from class org.apache.manifoldcf.core.database.BaseTable
addTableIndex, analyzeTable, beginTransaction, buildConjunctionClause, constructCountClause, constructDistinctOnClause, constructDoubleCastClause, constructOffsetLimitClause, constructRegexpClause, constructSubstringClause, endTransaction, findConjunctionClauseMax, getDatabaseCacheKey, getDBInterface, getMaxInClause, getMaxOrClause, getSleepAmt, getTableIndexes, getTableName, getTableSchema, getTransactionID, getWindowedReportMaxRows, makeTableKey, noteModifications, performAddIndex, performAlter, performCommit, performCreate, performDelete, performDrop, performInsert, performModification, performQuery, performQuery, performRemoveIndex, performUpdate, prepareRowForSave, readRow, reindexTable, signalRollback, sleepFor
-
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
descriptionField
protected static final java.lang.String descriptionField
- See Also:
- Constant Field Values
-
classNameField
protected static final java.lang.String classNameField
- See Also:
- Constant Field Values
-
threadContext
protected IThreadContext threadContext
-
-
Constructor Detail
-
MappingConnectorManager
public MappingConnectorManager(IThreadContext threadContext, IDBInterface database) throws ManifoldCFException
Constructor.- Parameters:
threadContext- is the thread context.database- is the database handle.- Throws:
ManifoldCFException
-
-
Method Detail
-
install
public void install() throws ManifoldCFExceptionInstall or upgrade.- Specified by:
installin interfaceIMappingConnectorManager- Throws:
ManifoldCFException
-
deinstall
public void deinstall() throws ManifoldCFExceptionUninstall. This also unregisters all connectors.- Specified by:
deinstallin interfaceIMappingConnectorManager- Throws:
ManifoldCFException
-
registerConnector
public void registerConnector(java.lang.String description, java.lang.String className) throws ManifoldCFExceptionRegister a new connector. The connector's install method will also be called.- Specified by:
registerConnectorin interfaceIMappingConnectorManager- Parameters:
description- is the description to use in the UI.className- is the class name.- Throws:
ManifoldCFException
-
unregisterConnector
public void unregisterConnector(java.lang.String className) throws ManifoldCFExceptionUnregister a connector. The connector's deinstall method will also be called.- Specified by:
unregisterConnectorin interfaceIMappingConnectorManager- Parameters:
className- is the class name of the connector to unregister.- Throws:
ManifoldCFException
-
removeConnector
public void removeConnector(java.lang.String className) throws ManifoldCFExceptionRemove a connector. Call this when the connector cannot be instantiated.- Specified by:
removeConnectorin interfaceIMappingConnectorManager- Parameters:
className- is the connector class to remove.- Throws:
ManifoldCFException
-
getConnectors
public IResultSet getConnectors() throws ManifoldCFException
Get ordered list of connectors.- Specified by:
getConnectorsin interfaceIMappingConnectorManager- Returns:
- a resultset with the columns "description" and "classname". These will be ordered by description.
- Throws:
ManifoldCFException
-
getDescription
public java.lang.String getDescription(java.lang.String className) throws ManifoldCFExceptionGet a description given a class name.- Specified by:
getDescriptionin interfaceIMappingConnectorManager- Parameters:
className- is the class name.- Returns:
- the description, or null if the class is not registered.
- Throws:
ManifoldCFException
-
isInstalled
public boolean isInstalled(java.lang.String className) throws ManifoldCFExceptionCheck if a particular connector is installed or not.- Specified by:
isInstalledin interfaceIMappingConnectorManager- Parameters:
className- is the class name of the connector.- Returns:
- true if installed, false otherwise.
- Throws:
ManifoldCFException
-
getCacheKey
protected java.lang.String getCacheKey()
Get the cache key for the connector manager table.- Returns:
- the cache key
-
-