Class EmailConnector
- java.lang.Object
-
- org.apache.manifoldcf.core.connector.BaseConnector
-
- org.apache.manifoldcf.crawler.notifications.BaseNotificationConnector
-
- org.apache.manifoldcf.crawler.notifications.email.EmailConnector
-
- All Implemented Interfaces:
org.apache.manifoldcf.core.interfaces.IConnector,org.apache.manifoldcf.crawler.interfaces.INotificationConnector
public class EmailConnector extends org.apache.manifoldcf.crawler.notifications.BaseNotificationConnector
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classEmailConnector.CheckConnectionThreadClass to check the connection.protected static classEmailConnector.CloseSessionThreadClass to close the session.protected static classEmailConnector.ConnectThreadClass to set up connection.protected static classEmailConnector.SendThreadClass to send email.
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Stringpasswordprotected java.lang.StringportStringprotected java.util.Propertiespropertiesprotected java.lang.Stringserverprotected EmailSessionsessionprotected static longSESSION_EXPIRATION_MILLISECONDSprotected longsessionExpirationprotected java.lang.Stringusername
-
Constructor Summary
Constructors Constructor Description EmailConnector()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static voidaddFindParameterNode(org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String findParameterName, java.lang.String findParameterValue)protected static voidaddNodeValue(org.apache.manifoldcf.core.interfaces.SpecificationNode ds, java.lang.String nodeType, java.lang.String value)protected static voidaddRecord(java.util.Map<java.lang.String,java.lang.Object> paramMap, java.lang.String nodeType, java.lang.String toValue, java.lang.String fromValue, java.lang.String subjectValue, java.lang.String bodyValue)java.lang.Stringcheck()Test the connection.protected voidcheckConnection()voidconnect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)Connect.voiddisconnect()Close the connection.protected static voidfillInMessageTab(java.util.Map<java.lang.String,java.lang.Object> paramMap, org.apache.manifoldcf.core.interfaces.Specification ds)Fill in Velocity context for Metadata tab.protected voidfinalizeConnection()protected static voidgatherRecord(org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String seqPrefix, org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, java.lang.String nodeType)protected voidgetSession()protected static voidhandleMessagingException(javax.mail.MessagingException e, java.lang.String context)Handle Messaging exceptions in a consistent global mannervoidnotifyOfJobEnd(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job end.voidnotifyOfJobStopErrorAbort(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job stop due to error abort.voidnotifyOfJobStopManualAbort(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job stop due to manual abort.voidnotifyOfJobStopManualPause(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job stop due to manual pause.voidnotifyOfJobStopRestart(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job stop due to restart.voidnotifyOfJobStopSchedulePause(org.apache.manifoldcf.core.interfaces.Specification spec)Notify of job stop due to schedule pause.voidoutputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String tabName)voidoutputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.util.List<java.lang.String> tabsArray)Output the configuration header section.protected voidoutputMessageTab(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String tabName, int connectionSequenceNumber, int actualSequenceNumber)Take care of "Message" tab.voidoutputSpecificationBody(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber, int actualSequenceNumber, java.lang.String tabName)Output the specification body section.voidoutputSpecificationHeader(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber, java.util.List<java.lang.String> tabsArray)Output the specification header section.voidpoll()This method is periodically called for all connectors that are connected but not in active use.java.lang.StringprocessConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, org.apache.manifoldcf.core.interfaces.ConfigParams parameters)Process a configuration post.protected java.lang.StringprocessMessageTab(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber)java.lang.StringprocessSpecificationPost(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber)Process a specification post.protected static voidremoveNodes(org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String nodeTypeName)protected static voidremoveNodes(org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String nodeTypeName)protected voidsendMail(org.apache.manifoldcf.core.interfaces.Specification spec, java.lang.String nodeType)voidviewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters)View configuration.voidviewSpecification(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber)View specification.-
Methods inherited from class org.apache.manifoldcf.crawler.notifications.BaseNotificationConnector
getFormCheckJavascriptMethodName, getFormPresaveCheckJavascriptMethodName, notifyOfJobStop, requestInfo
-
Methods inherited from class org.apache.manifoldcf.core.connector.BaseConnector
clearThreadContext, deinstall, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfiguration
-
-
-
-
Field Detail
-
SESSION_EXPIRATION_MILLISECONDS
protected static final long SESSION_EXPIRATION_MILLISECONDS
- See Also:
- Constant Field Values
-
sessionExpiration
protected long sessionExpiration
-
server
protected java.lang.String server
-
portString
protected java.lang.String portString
-
username
protected java.lang.String username
-
password
protected java.lang.String password
-
properties
protected java.util.Properties properties
-
session
protected EmailSession session
-
-
Method Detail
-
connect
public void connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
Connect.- Specified by:
connectin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
connectin classorg.apache.manifoldcf.core.connector.BaseConnector- Parameters:
configParameters- is the set of configuration parameters, which in this case describe the root directory.
-
disconnect
public void disconnect() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionClose the connection. Call this before discarding this instance of the repository connector.- Specified by:
disconnectin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
disconnectin classorg.apache.manifoldcf.core.connector.BaseConnector- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
poll
public void poll() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionThis method is periodically called for all connectors that are connected but not in active use.- Specified by:
pollin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
pollin classorg.apache.manifoldcf.core.connector.BaseConnector- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
check
public java.lang.String check() throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionTest the connection. Returns a string describing the connection integrity.- Specified by:
checkin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
checkin classorg.apache.manifoldcf.core.connector.BaseConnector- Returns:
- the connection's status as a displayable string.
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
checkConnection
protected void checkConnection() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
getSession
protected void getSession() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
finalizeConnection
protected void finalizeConnection()
-
notifyOfJobStopErrorAbort
public void notifyOfJobStopErrorAbort(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job stop due to error abort.- Specified by:
notifyOfJobStopErrorAbortin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobStopErrorAbortin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
notifyOfJobStopManualAbort
public void notifyOfJobStopManualAbort(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job stop due to manual abort.- Specified by:
notifyOfJobStopManualAbortin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobStopManualAbortin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
notifyOfJobStopManualPause
public void notifyOfJobStopManualPause(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job stop due to manual pause.- Specified by:
notifyOfJobStopManualPausein interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobStopManualPausein classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
notifyOfJobStopSchedulePause
public void notifyOfJobStopSchedulePause(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job stop due to schedule pause.- Specified by:
notifyOfJobStopSchedulePausein interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobStopSchedulePausein classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
notifyOfJobStopRestart
public void notifyOfJobStopRestart(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job stop due to restart.- Specified by:
notifyOfJobStopRestartin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobStopRestartin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
notifyOfJobEnd
public void notifyOfJobEnd(org.apache.manifoldcf.core.interfaces.Specification spec) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionNotify of job end.- Specified by:
notifyOfJobEndin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
notifyOfJobEndin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
spec- is the notification specification.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
sendMail
protected void sendMail(org.apache.manifoldcf.core.interfaces.Specification spec, java.lang.String nodeType) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
outputConfigurationHeader
public void outputConfigurationHeader(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.util.List<java.lang.String> tabsArray) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionOutput the configuration header section. This method is called in the head section of the connector's configuration page. Its purpose is to add the required tabs to the list, and to output any javascript methods that might be needed by the configuration editing HTML. The connector does not need to be connected for this method to be called.- Specified by:
outputConfigurationHeaderin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
outputConfigurationHeaderin classorg.apache.manifoldcf.core.connector.BaseConnector- Parameters:
threadContext- is the local thread context.out- is the output to which any HTML should be sent.locale- is the desired locale.parameters- are the configuration parameters, as they currently exist, for this connection being configured.tabsArray- is an array of tab names. Add to this array any tab names that are specific to the connector.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
outputConfigurationBody
public void outputConfigurationBody(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String tabName) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOException- Specified by:
outputConfigurationBodyin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
outputConfigurationBodyin classorg.apache.manifoldcf.core.connector.BaseConnector- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
processConfigurationPost
public java.lang.String processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, org.apache.manifoldcf.core.interfaces.ConfigParams parameters) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionProcess a configuration post. This method is called at the start of the connector's configuration page, whenever there is a possibility that form data for a connection has been posted. Its purpose is to gather form information and modify the configuration parameters accordingly. The name of the posted form is always "editconnection". The connector does not need to be connected for this method to be called.- Overrides:
processConfigurationPostin classorg.apache.manifoldcf.core.connector.BaseConnector- Parameters:
threadContext- is the local thread context.variableContext- is the set of variables available from the post, including binary file post information.parameters- are the configuration parameters, as they currently exist, for this connection being configured.- Returns:
- null if all is well, or a string error message if there is an error that should prevent saving of the connection (and cause a redirection to an error page).
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
viewConfiguration
public void viewConfiguration(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext, org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.ConfigParams parameters) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionView configuration. This method is called in the body section of the connector's view configuration page. Its purpose is to present the connection information to the user. The coder can presume that the HTML that is output from this configuration will be within appropriate <html> and <body> tags.- Specified by:
viewConfigurationin interfaceorg.apache.manifoldcf.core.interfaces.IConnector- Overrides:
viewConfigurationin classorg.apache.manifoldcf.core.connector.BaseConnector- Parameters:
threadContext- is the local thread context.out- is the output to which any HTML should be sent.parameters- are the configuration parameters, as they currently exist, for this connection being configured.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
outputSpecificationHeader
public void outputSpecificationHeader(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber, java.util.List<java.lang.String> tabsArray) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionOutput the specification header section. This method is called in the head section of a job page which has selected a repository connection of the current type. Its purpose is to add the required tabs to the list, and to output any javascript methods that might be needed by the job editing HTML. The connector will be connected before this method can be called.- Specified by:
outputSpecificationHeaderin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
outputSpecificationHeaderin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
out- is the output to which any HTML should be sent.locale- is the locale the output is preferred to be in.ds- is the current document specification for this job.connectionSequenceNumber- is the unique number of this connection within the job.tabsArray- is an array of tab names. Add to this array any tab names that are specific to the connector.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
outputSpecificationBody
public void outputSpecificationBody(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber, int actualSequenceNumber, java.lang.String tabName) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionOutput the specification body section. This method is called in the body section of a job page which has selected a repository connection of the current type. Its purpose is to present the required form elements for editing. The coder can presume that the HTML that is output from this configuration will be within appropriate <html>, <body>, and <form> tags. The name of the form is always "editjob". The connector will be connected before this method can be called.- Specified by:
outputSpecificationBodyin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
outputSpecificationBodyin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
out- is the output to which any HTML should be sent.locale- is the locale the output is preferred to be in.ds- is the current document specification for this job.connectionSequenceNumber- is the unique number of this connection within the job.actualSequenceNumber- is the connection within the job that has currently been selected.tabName- is the current tab name. (actualSequenceNumber, tabName) form a unique tuple within the job.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
outputMessageTab
protected void outputMessageTab(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String tabName, int connectionSequenceNumber, int actualSequenceNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionTake care of "Message" tab.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
fillInMessageTab
protected static void fillInMessageTab(java.util.Map<java.lang.String,java.lang.Object> paramMap, org.apache.manifoldcf.core.interfaces.Specification ds)Fill in Velocity context for Metadata tab.
-
addRecord
protected static void addRecord(java.util.Map<java.lang.String,java.lang.Object> paramMap, java.lang.String nodeType, java.lang.String toValue, java.lang.String fromValue, java.lang.String subjectValue, java.lang.String bodyValue)
-
processSpecificationPost
public java.lang.String processSpecificationPost(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionProcess a specification post. This method is called at the start of job's edit or view page, whenever there is a possibility that form data for a connection has been posted. Its purpose is to gather form information and modify the document specification accordingly. The name of the posted form is always "editjob". The connector will be connected before this method can be called.- Specified by:
processSpecificationPostin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
processSpecificationPostin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
variableContext- contains the post data, including binary file-upload information.locale- is the locale the output is preferred to be in.ds- is the current document specification for this job.connectionSequenceNumber- is the unique number of this connection within the job.- Returns:
- null if all is well, or a string error message if there is an error that should prevent saving of the job (and cause a redirection to an error page).
- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
processMessageTab
protected java.lang.String processMessageTab(org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFException
-
gatherRecord
protected static void gatherRecord(org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String seqPrefix, org.apache.manifoldcf.core.interfaces.IPostParameters variableContext, java.lang.String nodeType)
-
viewSpecification
public void viewSpecification(org.apache.manifoldcf.core.interfaces.IHTTPOutput out, java.util.Locale locale, org.apache.manifoldcf.core.interfaces.Specification ds, int connectionSequenceNumber) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOExceptionView specification. This method is called in the body section of a job's view page. Its purpose is to present the document specification information to the user. The coder can presume that the HTML that is output from this configuration will be within appropriate <html> and <body>tags. The connector will be connected before this method can be called.- Specified by:
viewSpecificationin interfaceorg.apache.manifoldcf.crawler.interfaces.INotificationConnector- Overrides:
viewSpecificationin classorg.apache.manifoldcf.crawler.notifications.BaseNotificationConnector- Parameters:
out- is the output to which any HTML should be sent.locale- is the locale the output is preferred to be in.ds- is the current document specification for this job.connectionSequenceNumber- is the unique number of this connection within the job.- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOException
-
addFindParameterNode
protected static void addFindParameterNode(org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String findParameterName, java.lang.String findParameterValue)
-
removeNodes
protected static void removeNodes(org.apache.manifoldcf.core.interfaces.ConfigParams parameters, java.lang.String nodeTypeName)
-
removeNodes
protected static void removeNodes(org.apache.manifoldcf.core.interfaces.Specification ds, java.lang.String nodeTypeName)
-
addNodeValue
protected static void addNodeValue(org.apache.manifoldcf.core.interfaces.SpecificationNode ds, java.lang.String nodeType, java.lang.String value)
-
handleMessagingException
protected static void handleMessagingException(javax.mail.MessagingException e, java.lang.String context) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruptionHandle Messaging exceptions in a consistent global manner- Throws:
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption
-
-