public class SharePointRepository
extends org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
| Modifier and Type | Class and Description |
|---|---|
protected static class |
SharePointRepository.ExecuteMethodThread |
protected class |
SharePointRepository.FileStream |
protected class |
SharePointRepository.ListItemStream |
protected static class |
SharePointRepository.MetadataInformation
Metadata information gleaned from document paths and specification.
|
protected class |
SharePointRepository.SystemMetadataDescription
Class that tracks paths associated with id's, and the name
of the metadata attribute to use for the path.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
ACTIVITY_FETCH |
protected static java.lang.String[] |
attachmentDataNames |
protected static java.lang.String[] |
fileStreamDataNames |
protected static java.lang.String[] |
listItemStreamDataNames |
protected static long |
sessionExpirationInterval |
static java.lang.String |
wsddPathProperty |
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 |
|---|
SharePointRepository()
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.
|
java.lang.String |
check()
Test the connection.
|
protected boolean |
checkIncludeFile(java.lang.String filePath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a file should be included.
|
protected boolean |
checkIncludeLibrary(java.lang.String libraryPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a library should be included, given a document specification.
|
protected boolean |
checkIncludeList(java.lang.String listPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a list should be included, given a document specification.
|
protected boolean |
checkIncludeListItem(java.lang.String itemPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a list item should be included.
|
protected boolean |
checkIncludeListItemAttachment(java.lang.String attachmentPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a list item attachment should be included.
|
protected boolean |
checkIncludeSite(java.lang.String sitePath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a site should be included, given a document specification.
|
protected static boolean |
checkMatch(java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match)
Check a match between two strings with wildcards.
|
protected static boolean |
checkPartialPathMatch(java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int requiredExtraPathSections)
Check for a partial path match between two strings with wildcards.
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
Connect.
|
static java.lang.String |
decodePath(java.lang.String relPath)
Given a path that is /-separated, and otherwise encoded, decode properly to convert to
unencoded form.
|
void |
disconnect()
Close the connection.
|
static java.lang.String |
encodePath(java.lang.String relPath)
Given a path that is /-separated, and otherwise unencoded, encode properly for an actual
URI
|
protected void |
expireSession() |
protected void |
fetchAndIndexFile(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String documentIdentifier,
java.lang.String version,
java.lang.String fileUrl,
java.lang.String fetchUrl,
java.lang.String[] accessTokens,
java.lang.String[] denyTokens,
java.util.Date createdDate,
java.util.Date modifiedDate,
java.util.Map<java.lang.String,java.lang.String> metadataValues,
java.lang.String guid,
SharePointRepository.SystemMetadataDescription sDesc)
Method that fetches and indexes a file fetched from a SharePoint URL, with appropriate error handling
etc.
|
protected static void |
fillInAuthorityTypeTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters) |
protected static void |
fillInMetadataTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
Fill in metadata tab
|
protected static void |
fillInPathsTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
Fill in paths tab
|
protected static void |
fillInSecurityTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
Fill in security tab
|
protected static void |
fillInServerTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters) |
protected void |
fillInTransientMetadataInfo(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
int connectionSequenceNumber)
Fill in transient metadata info
|
protected void |
fillInTransientPathsInfo(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
int connectionSequenceNumber)
Fill in the transient portion of the Paths tab
|
protected static java.lang.String[] |
getAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
Grab forced acl out of document specification.
|
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.util.List<NameValue> |
getDocLibsBySite(java.lang.String parentSite)
Gets a list of document libraries of the given parent site
|
protected java.lang.String[] |
getInterestingFieldSetSorted(SharePointRepository.MetadataInformation metadataInfo,
java.lang.String[] allFields) |
java.util.Map<java.lang.String,java.lang.String> |
getLibFieldList(java.lang.String parentSite,
java.lang.String docLibrary)
Gets a list of field names of the given document library or list.
|
java.util.Map<java.lang.String,java.lang.String> |
getListFieldList(java.lang.String parentSite,
java.lang.String listName)
Gets a list of field names of the given document library or list.
|
java.util.List<NameValue> |
getListsBySite(java.lang.String parentSite)
Gets a list of lists of the given parent site
|
int |
getMaxDocumentRequest()
Get the maximum number of documents to amalgamate together into one batch, for this connector.
|
protected SharePointRepository.MetadataInformation |
getMetadataSpecification(java.lang.String filePath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Get a file or item's metadata specification, given a path and a document specification.
|
protected void |
getSession()
Set up a session
|
java.util.List<NameValue> |
getSites(java.lang.String parentSite)
Gets a list of sites/subsites of the given parent site
|
protected static void |
handleIOException(java.io.IOException e,
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 java.lang.String |
mapExtensionToMimeType(java.lang.String fileName)
Map an extension to a mime type
|
protected static java.lang.String |
mapToFileName(java.lang.String fileName)
Map document identifier to file name
|
protected static int |
matchSubPath(java.lang.String subPath,
java.lang.String fullPath)
Match a sub-path.
|
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 void |
packDate(java.lang.StringBuilder sb,
java.util.Date dateValue) |
static java.lang.String |
pathItemDecode(java.lang.String pathItem)
Decode a path item.
|
static java.lang.String |
pathItemEncode(java.lang.String pathItem)
Encode a path item.
|
void |
poll()
This method is periodically called for all connectors that are connected but not
in active use.
|
protected static boolean |
processCheck(boolean caseSensitive,
java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int matchIndex)
Recursive worker method for checkMatch.
|
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.
|
protected static boolean |
processPartialPathCheck(boolean caseSensitive,
java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int matchIndex,
int requiredExtraPathSections)
Recursive worker method for checkPartialPathMatch.
|
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.
|
boolean |
requestInfo(org.apache.manifoldcf.core.interfaces.Configuration output,
java.lang.String command)
Request arbitrary connector information.
|
protected static void |
setDataACLs(org.apache.manifoldcf.agents.interfaces.RepositoryDocument data,
java.lang.String[] acls,
java.lang.String[] denyAcls) |
protected static void |
setPathAttribute(org.apache.manifoldcf.agents.interfaces.RepositoryDocument data,
SharePointRepository.SystemMetadataDescription sDesc,
java.lang.String documentIdentifier) |
protected static int |
unpackDate(java.lang.String value,
int index,
java.util.Date theDate) |
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.
|
getConnectorModel, 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 wsddPathProperty
public static final java.lang.String ACTIVITY_FETCH
protected static final long sessionExpirationInterval
protected static final java.lang.String[] attachmentDataNames
protected static final java.lang.String[] fileStreamDataNames
protected static final java.lang.String[] listItemStreamDataNames
protected void getSession()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected void expireSession()
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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 configParameters)
connect in interface org.apache.manifoldcf.core.interfaces.IConnectorconnect in class org.apache.manifoldcf.core.connector.BaseConnectorconfigParameters - is the set of configuration parameters, which
in this case describe the root directory.public 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 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 int getMaxDocumentRequest()
getMaxDocumentRequest in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnectorgetMaxDocumentRequest in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnectorpublic 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 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 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.ServiceInterruptionpublic 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 packDate(java.lang.StringBuilder sb,
java.util.Date dateValue)
protected static int unpackDate(java.lang.String value,
int index,
java.util.Date theDate)
protected java.lang.String[] getInterestingFieldSetSorted(SharePointRepository.MetadataInformation metadataInfo, java.lang.String[] allFields)
protected void fetchAndIndexFile(org.apache.manifoldcf.crawler.interfaces.IProcessActivity activities,
java.lang.String documentIdentifier,
java.lang.String version,
java.lang.String fileUrl,
java.lang.String fetchUrl,
java.lang.String[] accessTokens,
java.lang.String[] denyTokens,
java.util.Date createdDate,
java.util.Date modifiedDate,
java.util.Map<java.lang.String,java.lang.String> metadataValues,
java.lang.String guid,
SharePointRepository.SystemMetadataDescription sDesc)
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 void handleIOException(java.io.IOException e,
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 java.lang.String mapExtensionToMimeType(java.lang.String fileName)
protected static java.lang.String mapToFileName(java.lang.String fileName)
protected static void setDataACLs(org.apache.manifoldcf.agents.interfaces.RepositoryDocument data,
java.lang.String[] acls,
java.lang.String[] denyAcls)
protected static void setPathAttribute(org.apache.manifoldcf.agents.interfaces.RepositoryDocument data,
SharePointRepository.SystemMetadataDescription sDesc,
java.lang.String documentIdentifier)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.IOExceptionprotected static void fillInAuthorityTypeTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionprotected static void fillInServerTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.ConfigParams parameters)
throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic 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.IOExceptionprotected static void fillInMetadataTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
protected void fillInTransientMetadataInfo(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
int connectionSequenceNumber)
protected static void fillInPathsTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
protected void fillInTransientPathsInfo(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
int connectionSequenceNumber)
protected static void fillInSecurityTab(java.util.Map<java.lang.String,java.lang.Object> velocityContext,
org.apache.manifoldcf.core.interfaces.IHTTPOutput out,
org.apache.manifoldcf.core.interfaces.Specification ds)
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.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 java.util.Map<java.lang.String,java.lang.String> getLibFieldList(java.lang.String parentSite,
java.lang.String docLibrary)
throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption,
org.apache.manifoldcf.core.interfaces.ManifoldCFException
parentSite - - parent site pathdocLibrary - nameorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.util.Map<java.lang.String,java.lang.String> getListFieldList(java.lang.String parentSite,
java.lang.String listName)
throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption,
org.apache.manifoldcf.core.interfaces.ManifoldCFException
parentSite - - parent site pathlistName - nameorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.util.List<NameValue> getSites(java.lang.String parentSite) throws org.apache.manifoldcf.agents.interfaces.ServiceInterruption, org.apache.manifoldcf.core.interfaces.ManifoldCFException
parentSite - the unencoded parent site path to search for subsites, empty for root.org.apache.manifoldcf.agents.interfaces.ServiceInterruptionorg.apache.manifoldcf.core.interfaces.ManifoldCFExceptionpublic java.util.List<NameValue> getDocLibsBySite(java.lang.String parentSite) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
parentSite - the unencoded parent site to search for libraries, empty for root.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionpublic java.util.List<NameValue> getListsBySite(java.lang.String parentSite) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
parentSite - the unencoded parent site to search for lists, empty for root.org.apache.manifoldcf.core.interfaces.ManifoldCFExceptionorg.apache.manifoldcf.agents.interfaces.ServiceInterruptionprotected boolean checkIncludeLibrary(java.lang.String libraryPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
libraryPath - is the unencoded canonical library name (including site path from root site), without any starting slash.documentSpecification - is the specification.protected boolean checkIncludeList(java.lang.String listPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
listPath - is the unencoded canonical list name (including site path from root site), without any starting slash.documentSpecification - is the specification.protected boolean checkIncludeSite(java.lang.String sitePath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
sitePath - is the unencoded canonical site path name from the root site level, without any starting slash.documentSpecification - is the specification.protected SharePointRepository.MetadataInformation getMetadataSpecification(java.lang.String filePath, org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
filePath - is the unencoded path to a file or item, including sites and library/list, beneath the root site.documentSpecification - is the document specification.protected boolean checkIncludeFile(java.lang.String filePath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
filePath - is the path to the file, including sites and library, beneath the root site.documentSpecification - is the document specification.protected boolean checkIncludeListItemAttachment(java.lang.String attachmentPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
attachmentPath - is the path to the attachment, including sites and list name, beneath the root site.documentSpecification - is the document specification.protected boolean checkIncludeListItem(java.lang.String itemPath,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
itemPath - is the path to the item, including sites and list name, beneath the root site.documentSpecification - is the document specification.protected static int matchSubPath(java.lang.String subPath,
java.lang.String fullPath)
subPath - is the sub path.fullPath - is the full path.protected static boolean checkPartialPathMatch(java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int requiredExtraPathSections)
protected static boolean processPartialPathCheck(boolean caseSensitive,
java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int matchIndex,
int requiredExtraPathSections)
caseSensitive - is true if file names are case sensitive.sourceMatch - is the source string (w/o wildcards)sourceIndex - is the current point in the source string.match - is the match string (w/wildcards)matchIndex - is the current point in the match string.protected static boolean checkMatch(java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match)
sourceMatch - is the expanded string (no wildcards)sourceIndex - is the starting point in the expanded string.match - is the wildcard-based string.protected static boolean processCheck(boolean caseSensitive,
java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match,
int matchIndex)
caseSensitive - is true if file names are case sensitive.sourceMatch - is the source string (w/o wildcards)sourceIndex - is the current point in the source string.match - is the match string (w/wildcards)matchIndex - is the current point in the match string.protected static java.lang.String[] getAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
spec - is the document specification.public static java.lang.String pathItemDecode(java.lang.String pathItem)
public static java.lang.String pathItemEncode(java.lang.String pathItem)
public static java.lang.String decodePath(java.lang.String relPath)
public static java.lang.String encodePath(java.lang.String relPath)