The Socialcast Group Expansion accepts group expansion request containing a username and provides a list of groups to which the user belongs in a group expansion result.

This component uses the Restful API from Socialcast to fetch user group information. All group information is cached, so further group expansion requests won't make unnecessary calls to the Socialcast server.

This component is based on the Simple Group Expander

On this page:

 

Related pages:

Socialcast Scanner

Socialcast Endpoints


Configuration


ElementTypeDefaultDescription
usernamestring Username used to authenticate against Socialcast.
passwordstringN/APassword used to authenticate against Socialcast.
urlstring The Socialcast url used to authenticate.
pageSizeint25The number of elements per page.
maxRetriesint5The number of maximum retries for the connection before it throws error.
timeOutint10000 (10sec)The number of milliseconds for timeout of the connection.

Example Configurations


Configuration
<!--Group Expansion -->
<component name="GroupExpansionScheduler" subType="default" factoryName="aspire-scheduler">
  <debug>${debug}</debug>
  <schedules>
	<schedule name="GECache" enabled="true">
	  <cron>${geSchedule}</cron>
	  <event>onGECache</event>
	  <job>
		<![CDATA[
	   <doc actionProperties="cacheGroups">
		 <routingTable>
		   <SocialcastConnector>
			 <properties>
			   <connectorSource>
				 <domain>${url}</domain>
				 <url>${url}/</url>
				 <username>${username}</username>
				 <password>${password}</password>
			   </connectorSource>
			 </properties>
		   </SocialcastConnector>
		 </routingTable>
		 <displayName>Socialcast connector</displayName>
		</doc>
		]]>
	  </job>
	</schedule>
  </schedules>
  <branches>
	<branch event="onGECache" pipelineManager="Main"/>
  </branches>  
</component>
<component name="GroupExpansionPipelineManager" subType="pipeline" factoryName="aspire-application">
  <debug>${debug}</debug>
  <gatherStatistics>${debug}</gatherStatistics>
  <pipelines>
	<pipeline name="group-expansion-pipeline" default="true">
	  <stages>
		<stage component="IncomingJobDebug"/>
		<stage component="SocialcastGroupExpander"/>
	  </stages>
	</pipeline>
  </pipelines>
  <components>
	<component name="IncomingJobDebug" subType="jobLogger" factoryName="aspire-tools">
	  <debug>${debug}</debug>
	  <logFile>log/${app.name}/GroupExpansionPipelineManager/incoming.jobs</logFile>
	</component>
	<component name="SocialcastGroupExpander" subType="expansionClient" factoryName="aspire-simple-group-expander">
	  <debug>${debug}</debug>
	  <server>../Main/SocialcastScanner</server>
	</component>
  </components>
</component>



 

  • No labels