The Group Expansion Router component is configured as a pipeline stage. It takes a single group expansion request and and then does the following:
Group Expansion Router | |
---|---|
Factory Name | com.searchtechnologies.aspire:aspire-simple-group-expander |
subType | router |
Inputs | A Job containing a group expansion request |
Outputs | A Job containing a group expansion result |
Add expansion routes to the group expansion request using the addExpanders(AspireObject doc, List<String> expanderComponents) method. The request will then have the following form:
<doc type="groupExpansion"> <username dn="CN=Steve Denny,CN=Users,DC=search,DC=local">Steve Denny</username> <groupExpander> <expanders> <route>/SharePointConnector</route> <route>/DocumentumConnector</route> </expanders> </groupExpander> </doc>
Element | Type | Default | Description |
---|---|---|---|
expanders/route | String | Default routes for group expansion, if routes are not be specified on the request (optional & multiples allowed). | |
defaultPipelineManager | string | The name of a pipeline manager that will be added (if specified) to the given routes before the job is published. This allows the routes to be specified as top level components or applications only, with the actual request being routed to a pipeline manager under that (optional). | |
timeout | int | 15000 (=15s) | The timeout applied when waiting for the routed jobs to complete. Expansion results received after this time will not be added to the result returned. |
The Group Expansion Router publishes requests to a pipeline manager on the onGroupExpansion event, so you must configure a branch for the onGroupExpansion event. However, as routing is used to direct the jobs, the pipeline may not contain any functional stages.
<branches> <branch event="onGroupExpansion" pipelineManager="pipelineManager" pipeline="dummyPipeline" /> </branches>
<component name="expansionRouter" factoryName="aspire-simple-group-expander" subType="router"> <defaultPipelineManager>GroupExpansionPipelineManager</defaultPipelineManager> <debug>true</debug> <branches> <branch event="onGroupExpansion" pipeline="dummy-for-routing" pipelineManager="."/> </branches> </component>
<component name="expansionRouter" factoryName="aspire-simple-group-expander " subType="router"> <expanders> <route>/SharePointConnector</route> <route>/DocumentumConnector</route> </expanders> <defaultPipelineManager>GroupExpansionPipelineManager</defaultPipelineManager> <debug>true</debug> <branches> <branch event="onGroupExpansion" pipeline="dummy-for-routing" pipelineManager="."/> </branches> </component>