public abstract class BaseNotificationConnector extends BaseConnector implements INotificationConnector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
currentContext, params
Constructor and Description |
---|
BaseNotificationConnector() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFormCheckJavascriptMethodName(int connectionSequenceNumber)
Obtain the name of the form check javascript method to call.
|
java.lang.String |
getFormPresaveCheckJavascriptMethodName(int connectionSequenceNumber)
Obtain the name of the form presave check javascript method to call.
|
void |
notifyOfJobEnd(Specification spec)
Notify of job end.
|
void |
notifyOfJobStop(Specification spec)
Notify of job stop.
|
void |
notifyOfJobStopErrorAbort(Specification spec)
Notify of job stop due to error abort.
|
void |
notifyOfJobStopManualAbort(Specification spec)
Notify of job stop due to manual abort.
|
void |
notifyOfJobStopManualPause(Specification spec)
Notify of job stop due to manual pause.
|
void |
notifyOfJobStopRestart(Specification spec)
Notify of job stop due to restart.
|
void |
notifyOfJobStopSchedulePause(Specification spec)
Notify of job stop due to schedule pause.
|
void |
outputSpecificationBody(IHTTPOutput out,
java.util.Locale locale,
Specification ds,
int connectionSequenceNumber,
int actualSequenceNumber,
java.lang.String tabName)
Output the specification body section.
|
void |
outputSpecificationHeader(IHTTPOutput out,
java.util.Locale locale,
Specification ds,
int connectionSequenceNumber,
java.util.List<java.lang.String> tabsArray)
Output the specification header section.
|
java.lang.String |
processSpecificationPost(IPostParameters variableContext,
java.util.Locale locale,
Specification ds,
int connectionSequenceNumber)
Process a specification post.
|
boolean |
requestInfo(Configuration output,
java.lang.String command)
Request arbitrary connector information.
|
void |
viewSpecification(IHTTPOutput out,
java.util.Locale locale,
Specification ds,
int connectionSequenceNumber)
View specification.
|
check, clearThreadContext, connect, deinstall, disconnect, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfiguration, viewConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
check, clearThreadContext, connect, deinstall, disconnect, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, poll, processConfigurationPost, setThreadContext, viewConfiguration
public static final java.lang.String _rcsid
public boolean requestInfo(Configuration output, java.lang.String command) throws ManifoldCFException
requestInfo
in interface INotificationConnector
output
- is the response object, to be filled in by this method.command
- is the command, which is taken directly from the API request.ManifoldCFException
public void notifyOfJobStopErrorAbort(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobStopErrorAbort
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobStopManualAbort(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobStopManualAbort
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobStopManualPause(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobStopManualPause
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobStopSchedulePause(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobStopSchedulePause
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobStopRestart(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobStopRestart
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobStop(Specification spec) throws ManifoldCFException, ServiceInterruption
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public void notifyOfJobEnd(Specification spec) throws ManifoldCFException, ServiceInterruption
notifyOfJobEnd
in interface INotificationConnector
spec
- is the notification specification.ManifoldCFException
ServiceInterruption
public java.lang.String getFormCheckJavascriptMethodName(int connectionSequenceNumber)
getFormCheckJavascriptMethodName
in interface INotificationConnector
connectionSequenceNumber
- is the unique number of this connection within the job.public java.lang.String getFormPresaveCheckJavascriptMethodName(int connectionSequenceNumber)
getFormPresaveCheckJavascriptMethodName
in interface INotificationConnector
connectionSequenceNumber
- is the unique number of this connection within the job.public void outputSpecificationHeader(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber, java.util.List<java.lang.String> tabsArray) throws ManifoldCFException, java.io.IOException
outputSpecificationHeader
in interface INotificationConnector
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.ManifoldCFException
java.io.IOException
public void outputSpecificationBody(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber, int actualSequenceNumber, java.lang.String tabName) throws ManifoldCFException, java.io.IOException
outputSpecificationBody
in interface INotificationConnector
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.ManifoldCFException
java.io.IOException
public java.lang.String processSpecificationPost(IPostParameters variableContext, java.util.Locale locale, Specification ds, int connectionSequenceNumber) throws ManifoldCFException
processSpecificationPost
in interface INotificationConnector
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.ManifoldCFException
public void viewSpecification(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber) throws ManifoldCFException, java.io.IOException
viewSpecification
in interface INotificationConnector
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.ManifoldCFException
java.io.IOException