public interface IRepositoryConnector extends IConnector
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
GLOBAL_DENY_TOKEN
This is the global deny token.
|
static int |
JOBMODE_CONTINUOUS |
static int |
JOBMODE_ONCEONLY |
static int |
MODEL_ADD
Supply at least the documents that have been added since the specified start time.
|
static int |
MODEL_ADD_CHANGE
Supply at least the documents that have been added or changed within the specified time range.
|
static int |
MODEL_ADD_CHANGE_DELETE
Supply at least the documents that have been added, changed, or deleted within the specified time range.
|
static int |
MODEL_ALL
This is the legacy ManifoldCF catch-all crawling model.
|
static int |
MODEL_CHAINED_ADD
Like MODEL_ADD, except considering document discovery
|
static int |
MODEL_CHAINED_ADD_CHANGE
Like MODEL_ADD_CHANGE, except considering document discovery
|
static int |
MODEL_CHAINED_ADD_CHANGE_DELETE
Like MODEL_ADD_CHANGE_DELETE, except considering document discovery
|
static int |
MODEL_PARTIAL
This indicates that the seeds are never complete; the previous seeds are lost and cannot be retrieved.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addSeedDocuments(ISeedingActivity activities,
Specification spec,
java.lang.String lastSeedVersion,
long seedTime,
int jobMode)
Queue "seed" documents.
|
java.lang.String[] |
getActivitiesList()
Return the list of activities that this connector supports (i.e.
|
java.lang.String[] |
getBinNames(java.lang.String documentIdentifier)
Get the bin name strings for a document identifier.
|
int |
getConnectorModel()
Tell the world what model this connector uses for addSeedDocuments().
|
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.
|
int |
getMaxDocumentRequest()
Get the maximum number of documents to amalgamate together into one batch, for this connector.
|
java.lang.String[] |
getRelationshipTypes()
Return the list of relationship types that this connector recognizes.
|
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.
|
void |
processDocuments(java.lang.String[] documentIdentifiers,
IExistingVersions statuses,
Specification spec,
IProcessActivity activities,
int jobMode,
boolean usesDefaultAuthority)
Process a set of documents.
|
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, outputConfigurationHeader, poll, processConfigurationPost, setThreadContext, viewConfiguration
static final java.lang.String _rcsid
static final int MODEL_ALL
static final int MODEL_PARTIAL
static final int MODEL_ADD
static final int MODEL_ADD_CHANGE
static final int MODEL_ADD_CHANGE_DELETE
static final int MODEL_CHAINED_ADD
static final int MODEL_CHAINED_ADD_CHANGE
static final int MODEL_CHAINED_ADD_CHANGE_DELETE
static final int JOBMODE_ONCEONLY
static final int JOBMODE_CONTINUOUS
static final java.lang.String GLOBAL_DENY_TOKEN
int getConnectorModel()
java.lang.String[] getActivitiesList()
java.lang.String[] getRelationshipTypes()
java.lang.String[] getBinNames(java.lang.String documentIdentifier)
documentIdentifier
- is the document identifier.boolean requestInfo(Configuration output, java.lang.String command) throws ManifoldCFException
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
java.lang.String addSeedDocuments(ISeedingActivity activities, Specification spec, java.lang.String lastSeedVersion, long seedTime, int jobMode) throws ManifoldCFException, ServiceInterruption
activities
- is the interface this method should use to perform whatever framework actions are desired.spec
- is a document specification (that comes from the job).seedTime
- is the end of the time range of documents to consider, exclusive.lastSeedVersion
- is the last seeding version string for this job, or null if the job has no previous seeding version string.jobMode
- is an integer describing how the job is being run, whether continuous or once-only.ManifoldCFException
ServiceInterruption
void processDocuments(java.lang.String[] documentIdentifiers, IExistingVersions statuses, Specification spec, IProcessActivity activities, int jobMode, boolean usesDefaultAuthority) throws ManifoldCFException, ServiceInterruption
documentIdentifiers
- is the set of document identifiers to process.statuses
- are the currently-stored document versions for each document in the set of document identifiers
passed in above.activities
- is the interface this method should use to queue up new document references
and ingest documents.jobMode
- is an integer describing how the job is being run, whether continuous or once-only.usesDefaultAuthority
- will be true only if the authority in use for these documents is the default one.ManifoldCFException
ServiceInterruption
int getMaxDocumentRequest()
java.lang.String getFormCheckJavascriptMethodName(int connectionSequenceNumber)
connectionSequenceNumber
- is the unique number of this connection within the job.java.lang.String getFormPresaveCheckJavascriptMethodName(int connectionSequenceNumber)
connectionSequenceNumber
- is the unique number of this connection within the job.void outputSpecificationHeader(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber, java.util.List<java.lang.String> tabsArray) throws ManifoldCFException, java.io.IOException
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
void outputSpecificationBody(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber, int actualSequenceNumber, java.lang.String tabName) throws ManifoldCFException, java.io.IOException
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
java.lang.String processSpecificationPost(IPostParameters variableContext, java.util.Locale locale, Specification ds, int connectionSequenceNumber) throws ManifoldCFException
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
void viewSpecification(IHTTPOutput out, java.util.Locale locale, Specification ds, int connectionSequenceNumber) throws ManifoldCFException, java.io.IOException
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