Difference between revisions of "Atlassian Confluence Application Bundle (Aspire 2)"

From wiki.searchtechnologies.com
Jump to: navigation, search

For Information on Aspire 3.1 Click Here

Line 6: Line 6:
|appBundleName=Confluence Connector
|appBundleName=Confluence Connector
|typeFlags=scheduled, group-expansion
|typeFlags=scheduled, group-expansion

Latest revision as of 23:39, 8 December 2015

Atlassian Confluence Application Bundle (Aspire 2)
AppBundle Name  Confluence Connector
Maven Coordinates  com.searchtechnologies.aspire:app-confluence-connector
Versions  2.2.2
Type Flags  scheduled, group-expansion
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.

The Confluence Connector performs full and incremental scans over a Confluence directory and will extract security, metadata, and content from each object scanned. The connector allows you to select whether you wish to index folders in the results, and if you wish to scan sub-folder content. 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 stopped, paused 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.


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

General Application Configuration

Property Type Default Description
snapshotDir string ${aspire.home}/snapshots The directory for snapshot files to be stored.
disableTextExtract boolean false By 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 int 15m The 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 boolean false When 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.
debug Boolean false Controls whether debugging is enabled for the application. Debug messages will be written to the log files.

Confluence Specific Configuration

Element Type Default Description
confluenceVersion string V3.5 Indicates the Confluence version that will be crawled.
cacheTimeout string 180000 Time that the cache memory will be alive.
numOfSnapshotBackups string 10 Number of snapshots that will be stored as backups.
groupPrefixSeparator string | Prefix used to separate users and groups on ACL's file.
confluencePublicAcl string confluence-public-acl ACL that will be used to indicate that a page have public access.
defaultConfluenceUrl string Confluence instance to crawl,
defaultDomain string The domain to connect to Confluence.
defaultUsername string The username to connect to Confluence.
defaultPassword string The password to connect to Confluence.
ssoAuthentication boolean false Check this if your confluence authentication is managed by a Single Sign On engine and it uses a cookie based authentication mechanism.
ssoServer string The full URL where we are going to do the request to authenticate.
ssoCookie string The name of the authentication cookie the system should look for.
useGE boolean false Check this if you want to use group expansion.
useLDAPCache boolean false Check this if you want to use an external server to perform group expansion (Group Expansion Manager is required).
externalGroupServerPath select Indicates the path of the component that gets the external groups from LDAP.

Configuration Example

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

<application config="com.searchtechnologies.aspire:app-confluence-connector">
    <property name="confluenceVersion">v5</property>
    <property name="generalConfiguration">false</property>
    <property name="cacheTimeout">180000</property>
    <property name="numOfSnapshotBackups">10</property>
    <property name="groupPrefixSeparator">|</property>
    <property name="confluencePublicAcl">confluence-public-acl</property>
    <property name="defaultConfluenceUrl"/>
    <property name="defaultDomain"/>
    <property name="defaultUsername"/>
    <property name="defaultPassword"/>
    <property name="ssoAuthentication">false</property>
    <property name="snapshotDir">${dist.data.dir}/${app.name}/snapshots</property>
    <property name="disableTextExtract">false</property>
    <property name="workflowReloadPeriod">15s</property>
    <property name="workflowErrorTolerant">false</property>
    <property name="debug">false</property>
    <property name="useGE">false</property>
    <property name="useLDAPCache">false</property>
    <property name="externalGroupServerPath"/>

Source Configuration

Scanner Control Configuration

The following table describes the list of attributes that the AspireObject of the incoming scanner job requires to correctly execute and control the flow of a scan process.

Element Type Options Description
@action string start, stop, pause, resume, abort Control command to tell the scanner which operation to perform. Use start option to launch a new crawl.
@actionProperties string full, incremental When a start @action is received, it will tell the scanner to either run a full or an incremental crawl.
@normalizedCSName string Unique identifier name for the content source that will be crawled.
displayName string Display or friendly name for the content source that will be crawled.

Header Example

  <doc action="start" actionProperties="full" actionType="manual" crawlId="0" dbId="0" jobNumber="0" normalizedCSName="FeedOne_Connector"
   scheduleId="0" scheduler="##AspireSystemScheduler##" sourceName="ContentSourceName">

All configuration properties described in this section are relative to /doc/connectorSource of the AspireObject of the incoming Job.

Element Type Default Description
url string none The url to the Confluence server.
domain string none The domain to the Confluence server.
username string none The name of the user that is going to be used for the crawl
password string none The password of the user.
pluginEnabled boolean Indicates if the plugin is installed in the Confluence server.
includeAttachments boolean Indicates if attachments should be included in the crawl.
includeComments boolean Indicates if comments should be included in the crawl.
anonymousAccessAllowed boolean Indicates if anonymous access allowed on this instance of Confluence.
indexContainers boolean true if folders (as well as files) should be indexed.
scanRecursively boolean Indicates whether the child containers should be scanned or not.
fileNamePatterns/include/@pattern regex none Optional. A 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.
fileNamePatterns/exclude/@pattern regex none Optional. A 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.

Scanner Configuration Example

<doc action="start" actionProperties="full" normalizedCSName="confluence">
      <include pattern=".*place.*"/>
      <exclude pattern=".*people.*"/>

Note: To launch a crawl, the job should be sent (processed/enqueued) to the "/ConfluenceConnector/Main" pipeline.


  <snapshotUrl>002 http://myConfluenceServer:8090/display/ds/Welcome+to+Confluence</snapshotUrl>
  <title>Welcome to Confluence</title>
  <connectorSpecific type="confluence"/>
    <parentAcl access="allow" domain="77E1C5F668C465B2ADC241BF95884C0D" entity="group" fullname="77E1C5F668C465B2ADC241BF95884C0D\77E1C5F668C465B2ADC241BF95884C0D|confluence-prefix|confluence-users" name="77E1C5F668C465B2ADC241BF95884C0D|confluence-prefix|confluence-users" scope="global"/>
    <parentAcl access="allow" domain="77E1C5F668C465B2ADC241BF95884C0D" entity="group" fullname="77E1C5F668C465B2ADC241BF95884C0D\77E1C5F668C465B2ADC241BF95884C0D|confluence-prefix|confluence-administrators" name="77E1C5F668C465B2ADC241BF95884C0D|confluence-prefix|confluence-administrators" scope="global"/>
    <item id="523D98F4DB3124D58501A819A72BDBDE" level="2" name="Welcome+to+Confluence" type="aspire/page" url="http://myConfluenceServer:8090/display/ds/Welcome+to+Confluence">
        <ancestor id="C303FAC5F06BF5C8A9885CC249C08656" level="1" name="displayds" parent="true" type="aspire/space" url="http://myConfluenceServer:8090/display/ds"/>
        <ancestor id="7059F8EF9439865D97808D4415B22D6E" level="0" name="confluence" type="aspire/root" url="http://myConfluenceServer:8090/"/>
  <created>Wed Jul 24 15:13:32 CST 2013</created>
  <modified>Tue Mar 25 09:54:39 CST 2014</modified>
  <originalContent><p style="text-align: center;">&nbsp;</p><p><span style="color: rgb(153,153,153);"><br /></span></p><h2><ac:image><ri:attachment ri:filename="welcome.png" /></ac:image><br />&nbsp; <span style="color: rgb(128,128,128);">With Confluence it is easy to create, edit and share content with your team. Choose a topic below to start learning how.</span></h2><h2><span style="color: rgb(0,0,128);"><br /></span></h2><ol><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="What is Confluence? (step 1 of 9)" /><ac:link-body>What is Confluence?<br /><br /></ac:link-body></ac:link></span></li><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="A quick look at the editor (step 2 of 9)" /><ac:plain-text-link-body><![CDATA[A quick look at the editor]]></ac:plain-text-link-body></ac:link><br />&nbsp;</span></li><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="Let's edit this page (step 3 of 9)" /><ac:plain-text-link-body><![CDATA[Let's edit this page]]></ac:plain-text-link-body></ac:link><br /><br /></span></li><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="Prettify the page with an image (step 4 of 9)" /><ac:link-body>Prettify the page with an image<br /><br /></ac:link-body></ac:link></span></li><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="Get serious with a table (step 5 of 9)" /><ac:link-body>Get serious with a table<br /></ac:link-body></ac:link></span><span style="color: rgb(0,0,128);">&nbsp;</span></li><li><span style="color: rgb(0,0,128);"><ac:link><ri:page ri:content-title="Lay out your page (step 6 of 9)" /><ac:plain-text-link-body><![CDATA[Lay out your page]]></ac:plain-text-link-body></ac:link>&nbsp;<br /><br /></span></li><li><ac:link><ri:page ri:content-title="Learn the wonders of autoconvert (step 7 of 9)" /><ac:plain-text-link-body><![CDATA[Learn the wonders of autoconvert]]></ac:plain-text-link-body></ac:link>&nbsp;<br /><br /></li><li><ac:link><ri:page ri:content-title="Tell people what you think in a comment (step 8 of 9)" /><ac:plain-text-link-body><![CDATA[Tell people what you think in a comment]]></ac:plain-text-link-body></ac:link>&nbsp;<br /><br /></li><li><ac:link><ri:page ri:content-title="Share your page with a team member (step 9 of 9)" /><ac:plain-text-link-body><![CDATA[Share your page with a team member]]></ac:plain-text-link-body></ac:link></li></ol><p><span style="color: rgb(128,128,128);"><br /></span></p><p><span style="color: rgb(128,128,128);"><br /></span></p><p><span style="color: rgb(128,128,128);"><br /></span></p><p><span style="color: rgb(128,128,128);"><br /></span></p><p><span style="color: rgb(128,128,128);"><br /></span></p><p style="text-align: right;">&nbsp; &nbsp; &nbsp;&nbsp;</p></originalContent>
  <content> &nbsp;           &nbsp;  With Confluence it is easy to create, edit and share content with your team. Choose a topic below to start learning how.           What is Confluence? (step 1 of 9) What is Confluence?         A quick look at the editor (step 2 of 9) <![CDATA[A quick look at the editor]]>   &nbsp;     Let's edit this page (step 3 of 9) <![CDATA[Let's edit this page]]>         Prettify the page with an image (step 4 of 9) Prettify the page with an image         Get serious with a table (step 5 of 9) Get serious with a table     &nbsp;     Lay out your page (step 6 of 9) <![CDATA[Lay out your page]]>  &nbsp;      Learn the wonders of autoconvert (step 7 of 9) <![CDATA[Learn the wonders of autoconvert]]>  &nbsp;     Tell people what you think in a comment (step 8 of 9) <![CDATA[Tell people what you think in a comment]]>  &nbsp;     Share your page with a team member (step 9 of 9) <![CDATA[Share your page with a team member]]>                              &nbsp; &nbsp; &nbsp;&nbsp; </content>