Class ConnectorFactory<T extends IConnector>
- java.lang.Object
-
- org.apache.manifoldcf.core.interfaces.ConnectorFactory<T>
-
- Direct Known Subclasses:
AuthorityConnectorFactory,MappingConnectorFactory,NotificationConnectorFactory,OutputConnectorFactory,RepositoryConnectorFactory,TransformationConnectorFactory
public abstract class ConnectorFactory<T extends IConnector> extends java.lang.ObjectThis is the base factory class for all IConnector objects.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String_rcsid
-
Constructor Summary
Constructors Modifier Constructor Description protectedConnectorFactory()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voiddeinstallThis(IThreadContext threadContext, java.lang.String className)Uninstall connector.protected TgetThisConnector(IThreadContext threadContext, java.lang.String className)Get a connector instance.protected TgetThisConnectorNoCheck(java.lang.String className)Get a connector instance, without checking for installed connector.protected TgetThisConnectorRaw(java.lang.String className)Instantiate a connector, but return null if the class is not found.protected voidinstallThis(IThreadContext threadContext, java.lang.String className)Install connector.protected abstract booleanisInstalled(IThreadContext tc, java.lang.String className)Override this method to hook into a connector manager.protected voidoutputThisConfigurationBody(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.lang.String tabName)Output the configuration body section.protected voidoutputThisConfigurationHeader(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.util.ArrayList tabsArray)Output the configuration header section.protected java.lang.StringprocessThisConfigurationPost(IThreadContext threadContext, java.lang.String className, IPostParameters variableContext, java.util.Locale locale, ConfigParams configParams)Process configuration post data for a connector.protected voidviewThisConfiguration(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams configParams)View connector configuration.
-
-
-
Field Detail
-
_rcsid
public static final java.lang.String _rcsid
- See Also:
- Constant Field Values
-
-
Method Detail
-
isInstalled
protected abstract boolean isInstalled(IThreadContext tc, java.lang.String className) throws ManifoldCFException
Override this method to hook into a connector manager.- Throws:
ManifoldCFException
-
installThis
protected void installThis(IThreadContext threadContext, java.lang.String className) throws ManifoldCFException
Install connector.- Parameters:
className- is the class name.- Throws:
ManifoldCFException
-
deinstallThis
protected void deinstallThis(IThreadContext threadContext, java.lang.String className) throws ManifoldCFException
Uninstall connector.- Parameters:
className- is the class name.- Throws:
ManifoldCFException
-
outputThisConfigurationHeader
protected void outputThisConfigurationHeader(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.util.ArrayList tabsArray) throws ManifoldCFException, java.io.IOException
Output the configuration header section.- Throws:
ManifoldCFExceptionjava.io.IOException
-
outputThisConfigurationBody
protected void outputThisConfigurationBody(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.lang.String tabName) throws ManifoldCFException, java.io.IOException
Output the configuration body section.- Throws:
ManifoldCFExceptionjava.io.IOException
-
processThisConfigurationPost
protected java.lang.String processThisConfigurationPost(IThreadContext threadContext, java.lang.String className, IPostParameters variableContext, java.util.Locale locale, ConfigParams configParams) throws ManifoldCFException
Process configuration post data for a connector.- Throws:
ManifoldCFException
-
viewThisConfiguration
protected void viewThisConfiguration(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams configParams) throws ManifoldCFException, java.io.IOException
View connector configuration.- Throws:
ManifoldCFExceptionjava.io.IOException
-
getThisConnectorNoCheck
protected T getThisConnectorNoCheck(java.lang.String className) throws ManifoldCFException
Get a connector instance, without checking for installed connector.- Parameters:
className- is the class name.- Returns:
- the instance.
- Throws:
ManifoldCFException
-
getThisConnector
protected T getThisConnector(IThreadContext threadContext, java.lang.String className) throws ManifoldCFException
Get a connector instance.- Parameters:
className- is the class name.- Returns:
- the instance.
- Throws:
ManifoldCFException
-
getThisConnectorRaw
protected T getThisConnectorRaw(java.lang.String className) throws ManifoldCFException
Instantiate a connector, but return null if the class is not found.- Throws:
ManifoldCFException
-
-