Class MappingConnectorFactory
- java.lang.Object
-
- org.apache.manifoldcf.core.interfaces.ConnectorFactory<IMappingConnector>
-
- org.apache.manifoldcf.authorities.interfaces.MappingConnectorFactory
-
public class MappingConnectorFactory extends ConnectorFactory<IMappingConnector>
This class manages a pool of mapping connectors.
-
-
Field Summary
Fields Modifier and Type Field Description protected static MappingConnectorFactorythisFactory-
Fields inherited from class org.apache.manifoldcf.core.interfaces.ConnectorFactory
_rcsid
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedMappingConnectorFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voiddeinstall(IThreadContext threadContext, java.lang.String className)Uninstall connector.static IMappingConnectorgetConnectorNoCheck(java.lang.String className)Get a mapping connector instance, but do NOT check if class is installed first!static voidinstall(IThreadContext threadContext, java.lang.String className)Install connector.protected booleanisInstalled(IThreadContext tc, java.lang.String className)Override this method to hook into a connector manager.static voidoutputConfigurationBody(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.lang.String tabName)Output the configuration body section.static voidoutputConfigurationHeader(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams parameters, java.util.ArrayList tabsArray)Output the configuration header section.static java.lang.StringprocessConfigurationPost(IThreadContext threadContext, java.lang.String className, IPostParameters variableContext, java.util.Locale locale, ConfigParams configParams)Process configuration post data for a connector.static voidviewConfiguration(IThreadContext threadContext, java.lang.String className, IHTTPOutput out, java.util.Locale locale, ConfigParams configParams)View connector configuration.-
Methods inherited from class org.apache.manifoldcf.core.interfaces.ConnectorFactory
deinstallThis, getThisConnector, getThisConnectorNoCheck, getThisConnectorRaw, installThis, outputThisConfigurationBody, outputThisConfigurationHeader, processThisConfigurationPost, viewThisConfiguration
-
-
-
-
Field Detail
-
thisFactory
protected static final MappingConnectorFactory thisFactory
-
-
Method Detail
-
isInstalled
protected boolean isInstalled(IThreadContext tc, java.lang.String className) throws ManifoldCFException
Description copied from class:ConnectorFactoryOverride this method to hook into a connector manager.- Specified by:
isInstalledin classConnectorFactory<IMappingConnector>- Throws:
ManifoldCFException
-
install
public static void install(IThreadContext threadContext, java.lang.String className) throws ManifoldCFException
Install connector.- Parameters:
className- is the class name.- Throws:
ManifoldCFException
-
deinstall
public static void deinstall(IThreadContext threadContext, java.lang.String className) throws ManifoldCFException
Uninstall connector.- Parameters:
className- is the class name.- Throws:
ManifoldCFException
-
outputConfigurationHeader
public static void outputConfigurationHeader(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
-
outputConfigurationBody
public static void outputConfigurationBody(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
-
processConfigurationPost
public static java.lang.String processConfigurationPost(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
-
viewConfiguration
public static void viewConfiguration(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
-
getConnectorNoCheck
public static IMappingConnector getConnectorNoCheck(java.lang.String className) throws ManifoldCFException
Get a mapping connector instance, but do NOT check if class is installed first!- Parameters:
className- is the class name.- Returns:
- the instance.
- Throws:
ManifoldCFException
-
-