The Box Connector performs full and incremental scans over a Box repository and will extract security, metadata, and content from each object scanned. Each scanned object will be tagged with one of three possible actions--add, update, or delete--and can be routed to any Aspire pipeline as desired.

The connector, once started, can be stoppedpaused or resumed via the Scheduler Component. Typically the start job will contain all information required by the job to perform the scan. When pausing or stopping, the connector will wait until all the jobs it published have completed before updating the statistics and status of the connector.

Box Application Bundle 
AppBundle Name Box Connector
Maven Coordinatescom.searchtechnologies.aspire:app-box-connector
Versions3.1
Inputs AspireObject from a content source submitter holding all the information required for a crawl.
Outputs An AspireObject containing the URL, content, ACLs and Metadata processed for each file.

 

 

Configuration

This section lists all configuration parameters available to install the Box Application Bundle and to execute crawls using the connector.

PropertyTypeDefaultDescription
snapshotDirstring${aspire.home}/snapshotsThe directory for snapshot files to be stored.
disableTextExtractbooleanfalseBy default, connectors use Apache Tika to extract text from downloaded documents. If you wish to apply special text processing to the downloaded document in the workflow, you should disable text extraction. The downloaded document is then available as a content stream.
workflowReloadPeriod integer15mThe period after which to reload the business rules. Defaults to ms, but can be suffixed with ms, s, m, h or d to indicate the required units.
workflowErrorTolerant booleanfalseWhen set, exceptions in workflow rules will only effect the execution of the rule in which the exception occurs. Subsequent rules will be executed and the job will complete the workflow sucessfully. If not set, exceptions in workflow rules will be re-thrown and the job will be moved to the error workflow.
useGE booleanfalsetrue if group expansion is going to be used.
geSchedule string0 0 0 * * ? Indicates how often the group expasion is going to fetch all the security groups.
Serverstringhttps://app.box.com The Box server Url
Server API Url stringhttps://api.box.com URL for Box API
API version string2.0The Rest API version that Box is using.
Client Id stringNoneThe client id of a content applicaton in Box.com with access to the Box account.
Client Secret stringNoneThe Client Secret of a content application in Box.com with access to the Box account
User NamestringNoneBox user account
Working Box Directorystring This folder will contain the access and refresh token files.
PageSizeinteger100Indicates the amount of documents or folders that will be returned by the Rest API get query.
Impersonate UsersbooleanfalseImpersonate each user of Box account in order to crawl all shared and private content. If unchecked, only shared content accessible by the crawling account will be crawled.
indexFolders booleanfalseIndicates if folders (as well as files) should be indexed.
scanRecursively booleantrueIndicates if subfolders should be scan.
scanExcludeItemsbooleanfalseIndicates if exclude items should be scan.
ExcludeSubFoldersstringNoneA list of folders that can be excluded from the crawling.
IncludePatternsstringNoneA regular expression pattern to evaluate file urls against; if the file name matches the pattern, the file is included by the scanner. Multiple include nodes can be added.
ExcludePatternsstringNoneA regular expression pattern to evaluate file urls against; if the file name matches the pattern, the file is excluded by the scanner. Multiple exclude nodes can be added.

 

Configuration Example

To install the application bundle, add the configuration, as follows, to the <autoStart> section of the Aspire settings.xml.

Configuration

<application config="com.searchtechnologies.aspire:aspire-box-source">

<properties>

<property name="useGE">true</property>
<property name="geGEM">/Group_Expansion_Manager</property>
<property name="geExternalGroups">&lt;externalGroups/&gt;</property>
<property name="mapUsers">false</property>
<property name="ldapAttributeServer"/>
<property name="ldapAttribute"/>
<property name="requestDomain">leave</property>
<property name="addDomain"/>
<property name="stripDomain">false</property>
<property name="generalConfiguration">false</property>
<property name="useBulk">false</property>
<property name="bulkSize">1000</property>
<property name="bulkTimeout">1000</property>
<property name="statusUpdateTime">1s</property>
<property name="statisticsUpdateTime">5s</property>
<property name="hierarchyCacheSize">5000</property>
<property name="claimSleep">1s</property>
<property name="disableTextExtract">false</property>
<property name="workflowReloadPeriod">15s</property>
<property name="workflowErrorTolerant">false</property>
<property name="extractTextMaxSize">unlimited</property>
<property name="extractTimeout">180000</property>
<property name="enable-non-text-filter">true</property>
<property name="non-text-document">true</property>
<property name="nonTextDocumentsExtensions">jpg,jpeg,gif,png,tif,mp3,mp4,mpg,mpeg,avi,mkv,wav,bmp,swf,war,rar,tgz,dll,exe,class</property>
<property name="enableFetchUrl">true</property>
<property name="fullRecovery">incremental</property>
<property name="incrementalRecovery">incremental</property>
<property name="batchSize">50</property>
<property name="batchTimeout">60000</property>
<property name="waitForSubJobs">600000</property>
<property name="scanThreads">10</property>
<property name="scanQueue">50</property>
<property name="processThreads">20</property>
<property name="processQueue">200</property>
<property name="jobQueue">30</property>
<property name="enableAuditing">true</property>
<property name="emitStartJob">true</property>
<property name="emitEndJob">true</property>
<property name="useExtendedSecurity">false</property>
<property name="lmCompatibility">0</property>
<property name="debug">false</property>
<property name="wDebug">false</property>
<property name="fdServiceUrl"/>
<property name="maxRetries">3</property>

 

</properties>

</application>



  • No labels