public class SharedDriveConnector
extends org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
Modifier and Type | Class and Description |
---|---|
protected class |
SharedDriveConnector.ProcessDocumentsFilter
This is the filter class that actually receives the files in batches.
|
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
_rcsid |
static java.lang.String |
ACTIVITY_ACCESS |
static java.lang.String |
ATTRIBUTE_FILESPEC |
static java.lang.String |
ATTRIBUTE_INDEXABLE |
static java.lang.String |
ATTRIBUTE_MATCH |
static java.lang.String |
ATTRIBUTE_PATH |
static java.lang.String |
ATTRIBUTE_REPLACE |
static java.lang.String |
ATTRIBUTE_TOKEN |
static java.lang.String |
ATTRIBUTE_TYPE |
static java.lang.String |
ATTRIBUTE_VALUE |
static java.lang.String |
NODE_ACCESS |
static java.lang.String |
NODE_EXCLUDE |
static java.lang.String |
NODE_FILEMAP |
static java.lang.String |
NODE_INCLUDE |
static java.lang.String |
NODE_MAXLENGTH |
static java.lang.String |
NODE_PARENTFOLDERACCESS |
static java.lang.String |
NODE_PARENTFOLDERSECURITY |
static java.lang.String |
NODE_PATHMAP |
static java.lang.String |
NODE_PATHNAMEATTRIBUTE |
static java.lang.String |
NODE_SECURITY |
static java.lang.String |
NODE_SHAREACCESS |
static java.lang.String |
NODE_SHARESECURITY |
static java.lang.String |
NODE_STARTPOINT |
static java.lang.String |
NODE_URIMAP |
static java.lang.String |
PROPERTY_JCIFS_USE_NTLM_V1 |
static java.lang.String |
VALUE_DIRECTORY |
static java.lang.String |
VALUE_FILE |
currentContext, params
GLOBAL_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 |
---|
SharedDriveConnector()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected static void |
addSecuritySet(java.lang.StringBuilder description,
boolean enabled,
java.lang.String[] allowTokens,
java.lang.String[] denyTokens) |
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()
Check status of connection.
|
protected boolean |
checkInclude(boolean isDirectory,
java.lang.String fileName,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check if a file or directory should be included, given a document specification.
|
protected static boolean |
checkIncludeFile(long fileLength,
java.lang.String fileName,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification,
org.apache.manifoldcf.crawler.interfaces.IFingerprintActivity activities)
Check if a file's stats are OK for inclusion.
|
protected boolean |
checkIngest(java.io.File localFile,
java.lang.String fileName,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification,
org.apache.manifoldcf.crawler.interfaces.IFingerprintActivity activities)
Check if a file should be ingested, given a document specification and a local copy of the
file.
|
protected static boolean |
checkMatch(java.lang.String sourceMatch,
int sourceIndex,
java.lang.String match)
Check a match between two strings with wildcards.
|
protected boolean |
checkNeedFileData(java.lang.String fileName,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification)
Check to see whether we need the contents of the file for anything.
|
void |
connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
Connect.
|
protected void |
convertACEs(java.util.List<java.lang.String> allowList,
java.util.List<java.lang.String> denyList,
jcifs.ACE[] aces) |
protected static java.lang.String |
convertToURI(java.lang.String documentIdentifier,
MatchMap fileMap,
MatchMap uriMap)
Convert a document identifier to a URI.
|
void |
disconnect()
Close the connection.
|
protected static boolean |
equivalentIOExceptions(java.io.IOException e1,
java.io.IOException e2)
Check if two IOExceptions are equivalent
|
protected static boolean |
equivalentSmbExceptions(jcifs.smb.SmbException e1,
jcifs.smb.SmbException e2)
Check if two SmbExceptions are equivalent
|
protected static boolean |
fileExists(jcifs.smb.SmbFile file)
Check for file/directory existence
|
protected static boolean |
fileIsDirectory(jcifs.smb.SmbFile file)
Check if file is a directory
|
protected static long |
fileLastModified(jcifs.smb.SmbFile file)
Get last modified date for file
|
protected static long |
fileLength(jcifs.smb.SmbFile file)
Get file length
|
protected static jcifs.smb.SmbFile[] |
fileListFiles(jcifs.smb.SmbFile file,
jcifs.smb.SmbFileFilter filter)
List files
|
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[] |
getChildFolderNames(java.lang.String folder)
given a smb uri, return all children directories
|
protected static java.lang.String |
getFileCanonicalPath(jcifs.smb.SmbFile file)
Get canonical path
|
protected static java.io.InputStream |
getFileInputStream(jcifs.smb.SmbFile file)
Get input stream for file
|
protected static jcifs.ACE[] |
getFileSecurity(jcifs.smb.SmbFile file,
boolean useSIDs)
Get file security
|
protected boolean |
getFileSecuritySet(java.util.List<java.lang.String> allowList,
java.util.List<java.lang.String> denyList,
jcifs.smb.SmbFile file,
java.lang.String[] forced) |
protected static jcifs.ACE[] |
getFileShareSecurity(jcifs.smb.SmbFile file,
boolean useSIDs)
Get share security
|
protected boolean |
getFileShareSecuritySet(java.util.List<java.lang.String> allowList,
java.util.List<java.lang.String> denyList,
jcifs.smb.SmbFile file,
java.lang.String[] forced) |
protected static int |
getFileType(jcifs.smb.SmbFile file)
Get file type
|
protected static java.lang.String[] |
getForcedAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
Grab forced acl out of document specification.
|
protected static java.lang.String[] |
getForcedParentFolderAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
Grab forced parent folder acls out of document specification.
|
protected static java.lang.String[] |
getForcedShareAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
Grab forced share acls out of document specification.
|
protected void |
getSession()
Establish a "session".
|
jcifs.smb.SmbFile[] |
getShareNames(java.lang.String serverURI)
given a server uri, return all shares
|
protected static void |
handleIOException(java.lang.String documentIdentifier,
java.io.IOException e) |
protected static java.lang.String |
mapExtensionToMimeType(java.lang.String fileName)
Map an extension to a mime type
|
protected java.lang.String |
mapToIdentifier(java.lang.String path)
Map a "path" specification to a full identifier.
|
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 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 void |
processSMBException(jcifs.smb.SmbException se,
java.lang.String documentIdentifier,
java.lang.String activity,
java.lang.String operation) |
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 |
setDocumentSecurity(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd,
java.lang.String[] shareAllow,
java.lang.String[] shareDeny,
java.lang.String[] parentAllow,
java.lang.String[] parentDeny,
java.lang.String[] allow,
java.lang.String[] deny) |
protected static void |
setPathMetadata(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd,
java.lang.String pathAttributeName,
java.lang.String pathAttributeValue) |
void |
setThreadContext(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext)
Set thread context.
|
java.lang.String |
validateFolderName(java.lang.String folder)
Given a folder path, determine if the folder is in fact legal and accessible (and is a folder).
|
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.
|
protected boolean |
wouldFileBeIncluded(java.lang.String fileName,
org.apache.manifoldcf.core.interfaces.Specification documentSpecification,
boolean pretendIndexable)
Pretend that a file is either indexable or not, and return whether or not it would be ingested.
|
getConnectorModel, getFormCheckJavascriptMethodName, getFormPresaveCheckJavascriptMethodName, getMaxDocumentRequest, getRelationshipTypes
clearThreadContext, deinstall, getConfiguration, install, isConnected, outputConfigurationBody, outputConfigurationHeader, outputConfigurationHeader, pack, packFixedList, packList, packList, poll, processConfigurationPost, unpack, unpackFixedList, unpackList, viewConfiguration
public static final java.lang.String _rcsid
public static final java.lang.String ACTIVITY_ACCESS
public static final java.lang.String NODE_STARTPOINT
public static final java.lang.String NODE_INCLUDE
public static final java.lang.String NODE_EXCLUDE
public static final java.lang.String NODE_PATHNAMEATTRIBUTE
public static final java.lang.String NODE_PATHMAP
public static final java.lang.String NODE_FILEMAP
public static final java.lang.String NODE_URIMAP
public static final java.lang.String NODE_SHAREACCESS
public static final java.lang.String NODE_SHARESECURITY
public static final java.lang.String NODE_PARENTFOLDERACCESS
public static final java.lang.String NODE_PARENTFOLDERSECURITY
public static final java.lang.String NODE_MAXLENGTH
public static final java.lang.String NODE_ACCESS
public static final java.lang.String NODE_SECURITY
public static final java.lang.String ATTRIBUTE_PATH
public static final java.lang.String ATTRIBUTE_TYPE
public static final java.lang.String ATTRIBUTE_INDEXABLE
public static final java.lang.String ATTRIBUTE_FILESPEC
public static final java.lang.String ATTRIBUTE_VALUE
public static final java.lang.String ATTRIBUTE_TOKEN
public static final java.lang.String ATTRIBUTE_MATCH
public static final java.lang.String ATTRIBUTE_REPLACE
public static final java.lang.String VALUE_DIRECTORY
public static final java.lang.String VALUE_FILE
public static final java.lang.String PROPERTY_JCIFS_USE_NTLM_V1
public void setThreadContext(org.apache.manifoldcf.core.interfaces.IThreadContext threadContext) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
setThreadContext
in interface org.apache.manifoldcf.core.interfaces.IConnector
setThreadContext
in class org.apache.manifoldcf.core.connector.BaseConnector
org.apache.manifoldcf.core.interfaces.ManifoldCFException
protected void getSession() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFException
public java.lang.String[] getActivitiesList()
getActivitiesList
in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnector
getActivitiesList
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
public void disconnect() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
disconnect
in interface org.apache.manifoldcf.core.interfaces.IConnector
disconnect
in class org.apache.manifoldcf.core.connector.BaseConnector
org.apache.manifoldcf.core.interfaces.ManifoldCFException
public void connect(org.apache.manifoldcf.core.interfaces.ConfigParams configParameters)
connect
in interface org.apache.manifoldcf.core.interfaces.IConnector
connect
in class org.apache.manifoldcf.core.connector.BaseConnector
configParameters
- is the set of configuration parameters, which
in this case describe the root directory.public java.lang.String[] getBinNames(java.lang.String documentIdentifier)
getBinNames
in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnector
getBinNames
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
documentIdentifier
- is the document identifier.protected static java.lang.String convertToURI(java.lang.String documentIdentifier, MatchMap fileMap, MatchMap uriMap) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
documentIdentifier
- is the document identifier.org.apache.manifoldcf.core.interfaces.ManifoldCFException
public 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.IRepositoryConnector
requestInfo
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
output
- 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.ManifoldCFException
public 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.IRepositoryConnector
addSeedDocuments
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
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.IRepositoryConnector
processDocuments
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
protected static void handleIOException(java.lang.String documentIdentifier, java.io.IOException e) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
protected static java.lang.String mapExtensionToMimeType(java.lang.String fileName)
protected static void addSecuritySet(java.lang.StringBuilder description, boolean enabled, java.lang.String[] allowTokens, java.lang.String[] denyTokens)
protected boolean getFileSecuritySet(java.util.List<java.lang.String> allowList, java.util.List<java.lang.String> denyList, jcifs.smb.SmbFile file, java.lang.String[] forced) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOException
org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
protected boolean getFileShareSecuritySet(java.util.List<java.lang.String> allowList, java.util.List<java.lang.String> denyList, jcifs.smb.SmbFile file, java.lang.String[] forced) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, java.io.IOException
org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
protected void convertACEs(java.util.List<java.lang.String> allowList, java.util.List<java.lang.String> denyList, jcifs.ACE[] aces)
protected static void processSMBException(jcifs.smb.SmbException se, java.lang.String documentIdentifier, java.lang.String activity, java.lang.String operation) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
protected static void setDocumentSecurity(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, java.lang.String[] shareAllow, java.lang.String[] shareDeny, java.lang.String[] parentAllow, java.lang.String[] parentDeny, java.lang.String[] allow, java.lang.String[] deny)
protected static void setPathMetadata(org.apache.manifoldcf.agents.interfaces.RepositoryDocument rd, java.lang.String pathAttributeName, java.lang.String pathAttributeValue) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.core.interfaces.ManifoldCFException
public java.lang.String check() throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
check
in interface org.apache.manifoldcf.core.interfaces.IConnector
check
in class org.apache.manifoldcf.core.connector.BaseConnector
org.apache.manifoldcf.core.interfaces.ManifoldCFException
protected static boolean checkIncludeFile(long fileLength, java.lang.String fileName, org.apache.manifoldcf.core.interfaces.Specification documentSpecification, org.apache.manifoldcf.crawler.interfaces.IFingerprintActivity activities) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
protected boolean checkInclude(boolean isDirectory, java.lang.String fileName, org.apache.manifoldcf.core.interfaces.Specification documentSpecification) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
isDirectory
- is true if the file is a directory.fileName
- is the canonical file name.documentSpecification
- is the specification.org.apache.manifoldcf.core.interfaces.ManifoldCFException
protected boolean wouldFileBeIncluded(java.lang.String fileName, org.apache.manifoldcf.core.interfaces.Specification documentSpecification, boolean pretendIndexable) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
fileName
- is the canonical file name.documentSpecification
- is the specification.pretendIndexable
- should be set to true if the document's contents would be fingerprinted as "indexable",
or false otherwise.org.apache.manifoldcf.core.interfaces.ManifoldCFException
protected boolean checkNeedFileData(java.lang.String fileName, org.apache.manifoldcf.core.interfaces.Specification documentSpecification) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
fileName
- is the name of the file.documentSpecification
- is the document specification.org.apache.manifoldcf.core.interfaces.ManifoldCFException
protected boolean checkIngest(java.io.File localFile, java.lang.String fileName, org.apache.manifoldcf.core.interfaces.Specification documentSpecification, org.apache.manifoldcf.crawler.interfaces.IFingerprintActivity activities) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException, org.apache.manifoldcf.agents.interfaces.ServiceInterruption
localFile
- is the file.fileName
- is the JCIFS file name.documentSpecification
- is the specification.activities
- are the activities available to determine indexability.org.apache.manifoldcf.core.interfaces.ManifoldCFException
org.apache.manifoldcf.agents.interfaces.ServiceInterruption
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 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[] getForcedAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
spec
- is the document specification.protected static java.lang.String[] getForcedShareAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
spec
- is the document specification.protected static java.lang.String[] getForcedParentFolderAcls(org.apache.manifoldcf.core.interfaces.Specification spec)
spec
- is the document specification.protected java.lang.String mapToIdentifier(java.lang.String path) throws java.net.MalformedURLException, java.net.UnknownHostException
java.net.MalformedURLException
java.net.UnknownHostException
protected static java.lang.String getFileCanonicalPath(jcifs.smb.SmbFile file)
protected static boolean fileExists(jcifs.smb.SmbFile file) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static boolean fileIsDirectory(jcifs.smb.SmbFile file) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static long fileLastModified(jcifs.smb.SmbFile file) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static long fileLength(jcifs.smb.SmbFile file) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static jcifs.smb.SmbFile[] fileListFiles(jcifs.smb.SmbFile file, jcifs.smb.SmbFileFilter filter) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static java.io.InputStream getFileInputStream(jcifs.smb.SmbFile file) throws java.io.IOException
java.io.IOException
protected static jcifs.ACE[] getFileSecurity(jcifs.smb.SmbFile file, boolean useSIDs) throws java.io.IOException
java.io.IOException
protected static jcifs.ACE[] getFileShareSecurity(jcifs.smb.SmbFile file, boolean useSIDs) throws java.io.IOException
java.io.IOException
protected static int getFileType(jcifs.smb.SmbFile file) throws jcifs.smb.SmbException
jcifs.smb.SmbException
protected static boolean equivalentSmbExceptions(jcifs.smb.SmbException e1, jcifs.smb.SmbException e2)
protected static boolean equivalentIOExceptions(java.io.IOException e1, java.io.IOException e2)
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.IOException
outputConfigurationHeader
in interface org.apache.manifoldcf.core.interfaces.IConnector
outputConfigurationHeader
in class org.apache.manifoldcf.core.connector.BaseConnector
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.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.ManifoldCFException
java.io.IOException
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
outputConfigurationBody
in interface org.apache.manifoldcf.core.interfaces.IConnector
outputConfigurationBody
in class org.apache.manifoldcf.core.connector.BaseConnector
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.tabName
- is the current tab name.org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
public 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.IConnector
processConfigurationPost
in class org.apache.manifoldcf.core.connector.BaseConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
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.IOException
viewConfiguration
in interface org.apache.manifoldcf.core.interfaces.IConnector
viewConfiguration
in class org.apache.manifoldcf.core.connector.BaseConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
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.IOException
outputSpecificationHeader
in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnector
outputSpecificationHeader
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
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.IOException
outputSpecificationBody
in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnector
outputSpecificationBody
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
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.IRepositoryConnector
processSpecificationPost
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
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.IOException
viewSpecification
in interface org.apache.manifoldcf.crawler.interfaces.IRepositoryConnector
viewSpecification
in class org.apache.manifoldcf.crawler.connectors.BaseRepositoryConnector
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.org.apache.manifoldcf.core.interfaces.ManifoldCFException
java.io.IOException
public jcifs.smb.SmbFile[] getShareNames(java.lang.String serverURI) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
serverURI
- -org.apache.manifoldcf.core.interfaces.ManifoldCFException
public java.lang.String validateFolderName(java.lang.String folder) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
folder
- is the relative folder from the network rootorg.apache.manifoldcf.core.interfaces.ManifoldCFException
public java.lang.String[] getChildFolderNames(java.lang.String folder) throws org.apache.manifoldcf.core.interfaces.ManifoldCFException
folder
- is the relative folder from the network rootorg.apache.manifoldcf.core.interfaces.ManifoldCFException