public class FilenetConnector
extends org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
| Modifier and Type | Class and Description |
|---|---|
protected class |
FilenetConnector.CheckConnectionThread |
protected class |
FilenetConnector.DestroySessionThread |
protected class |
FilenetConnector.GetChildFoldersThread |
protected class |
FilenetConnector.GetDocumentClassesInfoThread |
protected class |
FilenetConnector.GetDocumentClassesMetadataFieldsInfoThread |
protected class |
FilenetConnector.GetDocumentContentCountThread |
protected class |
FilenetConnector.GetDocumentContentsThread |
protected class |
FilenetConnector.GetDocumentInformationThread |
protected class |
FilenetConnector.GetMatchingObjectIdsThread |
protected class |
FilenetConnector.GetSessionThread |
protected static class |
FilenetConnector.SpecInfo |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
ACTIVITY_FETCH |
static java.lang.String |
CONFIG_PARAM_FILENETDOMAIN |
static java.lang.String |
CONFIG_PARAM_FILENETDOMAIN_OLD |
static java.lang.String |
CONFIG_PARAM_OBJECTSTORE |
static java.lang.String |
CONFIG_PARAM_PASSWORD |
static java.lang.String |
CONFIG_PARAM_SERVERHOSTNAME |
static java.lang.String |
CONFIG_PARAM_SERVERPORT |
static java.lang.String |
CONFIG_PARAM_SERVERPROTOCOL |
static java.lang.String |
CONFIG_PARAM_SERVERWSILOCATION |
static java.lang.String |
CONFIG_PARAM_URLHOSTNAME |
static java.lang.String |
CONFIG_PARAM_URLLOCATION |
static java.lang.String |
CONFIG_PARAM_URLPORT |
static java.lang.String |
CONFIG_PARAM_URLPROTOCOL |
static java.lang.String |
CONFIG_PARAM_USERID |
protected java.lang.String |
docURIPrefix
Document URI protocol, server, port, and location
|
protected java.lang.String |
docUrlLocation
Document URI location
|
protected java.lang.String |
docUrlPort
Document URI port
|
protected java.lang.String |
docUrlServerName
Document URI server name
|
protected java.lang.String |
docUrlServerProtocol
Document URI server protocol
|
protected java.lang.String |
filenetDomain
Filenet domain
|
protected long |
lastSessionFetch
Time last session was created
|
protected java.lang.String |
objectStore
Object store
|
protected java.lang.String |
password
Password
|
protected java.lang.String |
serverHostname
Server host name
|
protected java.lang.String |
serverLocation
Server location
|
protected java.lang.String |
serverPort
Server port
|
protected java.lang.String |
serverProtocol
Server protocol
|
protected java.lang.String |
serverWSIURI
URI to get us to the webservices integration
|
protected IFilenet |
session
Filenet session handle.
|
static java.lang.String |
SPEC_ATTRIBUTE_ALLMETADATA |
static java.lang.String |
SPEC_ATTRIBUTE_FIELDNAME |
static java.lang.String |
SPEC_ATTRIBUTE_MATCHTYPE |
static java.lang.String |
SPEC_ATTRIBUTE_VALUE |
static java.lang.String |
SPEC_NODE_DOCUMENTCLASS |
static java.lang.String |
SPEC_NODE_FOLDER |
static java.lang.String |
SPEC_NODE_MATCH |
static java.lang.String |
SPEC_NODE_METADATAFIELD |
static java.lang.String |
SPEC_NODE_MIMETYPE |
protected static long |
timeToRelease |
protected java.lang.String |
userID
Username
|
currentContext, paramsGLOBAL_DENY_TOKEN, JOBMODE_CONTINUOUS, JOBMODE_ONCEONLY, MODEL_ADD, MODEL_ADD_CHANGE, MODEL_ADD_CHANGE_DELETE, MODEL_ALL, MODEL_CHAINED_ADD, MODEL_CHAINED_ADD_CHANGE, MODEL_CHAINED_ADD_CHANGE_DELETE, MODEL_PARTIAL| Constructor and Description |
|---|
FilenetConnector()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addSeedDocuments(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
org.apache.manifoldcf.core.interfaces.Specification spec,
java.lang.String lastSeedVersion,
long seedTime,
int jobMode)
Queue "seed" documents.
|
protected static java.lang.String |
buildTime(java.util.Calendar c,
long timeValue) |
java.lang.String |
check()
Test the connection.
|
protected void |
checkConnection()
Check connection, with appropriate retries
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams)
Connect to filenet.
|
protected static java.lang.String |
convertToURI(java.lang.String urlBase,
java.lang.String documentIdentifier,
int elementNumber,
java.lang.String documentClass)
Convert a document identifier to a URI.
|
void |
disconnect()
Disconnect from Filenet.
|
protected java.lang.String[] |
doGetChildFolders(java.lang.String[] folderPath)
Get child folder names
|
protected java.lang.Integer |
doGetDocumentContentCount(java.lang.String documentIdentifier) |
protected void |
doGetDocumentContents(java.lang.String docId,
int elementNumber,
java.lang.String tempFileName)
Get document contents
|
protected FileInfo |
doGetDocumentInformation(java.lang.String docId,
java.util.Map<java.lang.String,java.lang.Object> metadataFields)
Get document info
|
protected java.lang.String[] |
doGetMatchingObjectIds(java.lang.String sql)
Get matching object id's for a given query
|
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 string for a document identifier.
|
java.lang.String[] |
getChildFolders(java.lang.String folderName)
Get child folder names, given a starting folder name.
|
int |
getConnectorModel()
Let the crawler know the completeness of the information we are giving it.
|
DocumentClassDefinition[] |
getDocumentClassesDetails()
Get the set of available document classes, with details
|
protected DocumentClassDefinition[] |
getDocumentClassesInfo()
Get document class details, with appropriate retries
|
MetadataFieldDefinition[] |
getDocumentClassMetadataFieldsDetails(java.lang.String documentClassName)
Get the set of available metadata fields per document class
|
protected MetadataFieldDefinition[] |
getDocumentClassMetadataFieldsInfo(java.lang.String documentClassName)
Get document class metadata fields details, with appropriate retries
|
int |
getMaxDocumentRequest() |
java.lang.String[] |
getMimeTypes()
Get the set of available mime types
|
protected void |
getSession()
Get a DFC session.
|
protected static void |
handleIOException(java.io.IOException e,
java.lang.String documentIdentifier,
java.lang.String context) |
boolean |
isConnected()
This method is called to assess whether to count this connector instance should
actually be counted as being connected.
|
protected static boolean |
likeMatch(java.lang.String matchDocValue,
int matchDocPos,
java.lang.String matchValue,
int matchPos)
Match a portion of a string with SQL wildcards (%)
|
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)
Output the configuration body section.
|
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)
Output the configuration header section.
|
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)
Output the specification body section.
|
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)
Output the specification header section.
|
protected static boolean |
performMatch(java.lang.String matchType,
java.lang.String matchDocValue,
java.lang.String matchValue)
Emulate the query matching for filenet sql expressions.
|
void |
poll()
This method is periodically called for all connectors that are connected but not
in active use.
|
protected static int |
print_digit(java.lang.StringBuilder sb,
int value,
int divisor) |
protected static void |
print_int(java.lang.StringBuilder sb,
int value,
int digits) |
java.lang.String |
processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
Process a configuration post.
|
void |
processDocuments(java.lang.String[] documentIdentifiers,
org.apache.manifoldcf.crawler.interfaces.IExistingVersions statuses,
org.apache.manifoldcf.core.interfaces.Specification spec,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
int jobMode,
boolean usesDefaultAuthority)
Process a set of documents.
|
java.lang.String |
processSpecificationPost(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 java.lang.String |
quoteSQLString(java.lang.String value) |
protected void |
releaseCheck()
Release the session, if it's time.
|
boolean |
requestInfo(org.apache.manifoldcf.core.interfaces.Configuration output,
java.lang.String command)
Request arbitrary connector information.
|
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)
View configuration.
|
void |
viewSpecification(org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.Specification ds,
int connectionSequenceNumber)
View specification.
|
getFormCheckJavascriptMethodName, getFormPresaveCheckJavascriptMethodName, getRelationshipTypesclearThreadContext, deinstall, getConfiguration, install, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, processConfigurationPost, setThreadContext, unpack, unpackFixedList, unpackList, viewConfigurationpublic static final java.lang.String _rcsid
public static final java.lang.String CONFIG_PARAM_USERID
public static final java.lang.String CONFIG_PARAM_PASSWORD
public static final java.lang.String CONFIG_PARAM_FILENETDOMAIN_OLD
public static final java.lang.String CONFIG_PARAM_FILENETDOMAIN
public static final java.lang.String CONFIG_PARAM_OBJECTSTORE
public static final java.lang.String CONFIG_PARAM_SERVERPROTOCOL
public static final java.lang.String CONFIG_PARAM_SERVERHOSTNAME
public static final java.lang.String CONFIG_PARAM_SERVERPORT
public static final java.lang.String CONFIG_PARAM_SERVERWSILOCATION
public static final java.lang.String CONFIG_PARAM_URLPROTOCOL
public static final java.lang.String CONFIG_PARAM_URLHOSTNAME
public static final java.lang.String CONFIG_PARAM_URLPORT
public static final java.lang.String CONFIG_PARAM_URLLOCATION
public static final java.lang.String SPEC_NODE_FOLDER
public static final java.lang.String SPEC_NODE_MIMETYPE
public static final java.lang.String SPEC_NODE_DOCUMENTCLASS
public static final java.lang.String SPEC_NODE_METADATAFIELD
public static final java.lang.String SPEC_NODE_MATCH
public static final java.lang.String SPEC_ATTRIBUTE_VALUE
public static final java.lang.String SPEC_ATTRIBUTE_ALLMETADATA
public static final java.lang.String SPEC_ATTRIBUTE_MATCHTYPE
public static final java.lang.String SPEC_ATTRIBUTE_FIELDNAME
public static final java.lang.String ACTIVITY_FETCH
protected static final long timeToRelease
protected IFilenet session
protected long lastSessionFetch
protected java.lang.String userID
protected java.lang.String password
protected java.lang.String filenetDomain
protected java.lang.String objectStore
protected java.lang.String serverProtocol
protected java.lang.String serverHostname
protected java.lang.String serverPort
protected java.lang.String serverLocation
protected java.lang.String serverWSIURI
protected java.lang.String docUrlServerProtocol
protected java.lang.String docUrlServerName
protected java.lang.String docUrlPort
protected java.lang.String docUrlLocation
protected java.lang.String docURIPrefix
protected void getSession()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void releaseCheck()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic int getConnectorModel()
getConnectorModel in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetConnectorModel in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic java.lang.String[] getBinNames(java.lang.String documentIdentifier)
getBinNames in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetBinNames in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectordocumentIdentifier - is the document identifier.public java.lang.String[] getActivitiesList()
getActivitiesList in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetActivitiesList in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic void connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParams)
connect in interface org.apache.manifoldcf.core.interfaces.IConnectorconnect in class org.apache.manifoldcf.core.connector.BaseConnectorpublic java.lang.String check()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
check in interface org.apache.manifoldcf.core.interfaces.IConnectorcheck in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic void poll()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
poll in interface org.apache.manifoldcf.core.interfaces.IConnectorpoll in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic boolean isConnected()
isConnected in interface org.apache.manifoldcf.core.interfaces.IConnectorisConnected in class org.apache.manifoldcf.core.connector.BaseConnectorpublic void disconnect()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
disconnect in interface org.apache.manifoldcf.core.interfaces.IConnectordisconnect in class org.apache.manifoldcf.core.connector.BaseConnectororg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic boolean requestInfo(org.apache.manifoldcf.core.interfaces.Configuration output,
java.lang.String command)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
requestInfo in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorrequestInfo in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectoroutput - is the response object, to be filled in by this method.command - is the command, which is taken directly from the API request.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.lang.String[] getChildFolders(java.lang.String folderName)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
folderName - is the starting folder name.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic java.lang.String addSeedDocuments(org.apache.manifoldcf.crawler.interfaces.ISeedingActivity activities,
org.apache.manifoldcf.core.interfaces.Specification spec,
java.lang.String lastSeedVersion,
long seedTime,
int jobMode)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
addSeedDocuments in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoraddSeedDocuments in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectoractivities - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected static java.lang.String quoteSQLString(java.lang.String value)
protected static java.lang.String buildTime(java.util.Calendar c,
long timeValue)
protected static void print_int(java.lang.StringBuilder sb,
int value,
int digits)
protected static int print_digit(java.lang.StringBuilder sb,
int value,
int divisor)
public void processDocuments(java.lang.String[] documentIdentifiers,
org.apache.manifoldcf.crawler.interfaces.IExistingVersions statuses,
org.apache.manifoldcf.core.interfaces.Specification spec,
org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
int jobMode,
boolean usesDefaultAuthority)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
processDocuments in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorprocessDocuments in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectordocumentIdentifiers - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected static void handleIOException(java.io.IOException e,
java.lang.String documentIdentifier,
java.lang.String context)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected static boolean performMatch(java.lang.String matchType,
java.lang.String matchDocValue,
java.lang.String matchValue)
protected static boolean likeMatch(java.lang.String matchDocValue,
int matchDocPos,
java.lang.String matchValue,
int matchPos)
public int getMaxDocumentRequest()
getMaxDocumentRequest in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetMaxDocumentRequest in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic 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.IOException
outputConfigurationHeader in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationHeader in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.tabsArray - is an array of tab names. Add to this array any tab names that are specific to the connector.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic 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
outputConfigurationBody in interface org.apache.manifoldcf.core.interfaces.IConnectoroutputConfigurationBody in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.tabName - is the current tab name.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic java.lang.String processConfigurationPost(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext,
org.apache.manifoldcf.core.interfaces.IPostParameters variableContext,
java.util.Locale locale,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
processConfigurationPost in interface org.apache.manifoldcf.core.interfaces.IConnectorprocessConfigurationPost in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.IOException
viewConfiguration in interface org.apache.manifoldcf.core.interfaces.IConnectorviewConfiguration in class org.apache.manifoldcf.core.connector.BaseConnectorthreadContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic 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.IOException
outputSpecificationHeader in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoroutputSpecificationHeader in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic 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.IOException
outputSpecificationBody in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectoroutputSpecificationBody in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic 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.ManifoldCFException
processSpecificationPost in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorprocessSpecificationPost in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorvariableContext - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.IOException
viewSpecification in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorviewSpecification in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorout - 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.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionjava.io.IOExceptionpublic DocumentClassDefinition[] getDocumentClassesDetails() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic MetadataFieldDefinition[] getDocumentClassMetadataFieldsDetails(java.lang.String documentClassName) throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.lang.String[] getMimeTypes()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected static java.lang.String convertToURI(java.lang.String urlBase,
java.lang.String documentIdentifier,
int elementNumber,
java.lang.String documentClass)
documentIdentifier - is the document identifier.protected void checkConnection()
throws FilenetException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected DocumentClassDefinition[] getDocumentClassesInfo() throws FilenetException, org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected MetadataFieldDefinition[] getDocumentClassMetadataFieldsInfo(java.lang.String documentClassName) throws FilenetException, org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String[] doGetChildFolders(java.lang.String[] folderPath)
throws FilenetException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.String[] doGetMatchingObjectIds(java.lang.String sql)
throws FilenetException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected java.lang.Integer doGetDocumentContentCount(java.lang.String documentIdentifier)
throws FilenetException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected FileInfo doGetDocumentInformation(java.lang.String docId, java.util.Map<java.lang.String,java.lang.Object> metadataFields) throws FilenetException, org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected void doGetDocumentContents(java.lang.String docId,
int elementNumber,
java.lang.String tempFileName)
throws FilenetException,
org.apache.manifoldcf.core.interfaces.ManifoldCFException,
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
FilenetExceptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruption