<?xml version="1.0" encoding="ISO-8859-1"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd http://www.exoplatform.org/xml/ns/kernel_1_2.xsd"
  xmlns="http://www.exoplatform.org/xml/ns/kernel_1_2.xsd">
  <external-component-plugins>
   <target-component>org.exoplatform.services.scheduler.JobSchedulerService</target-component>
    <component-plugin>
      <name>RecountActiveUserJob</name>
      <set-method>addPeriodJob</set-method>
      <type>org.exoplatform.forum.service.conf.RecountActiveUserPeriodJob</type>
      <description>add a RecountActiveUser job to the JobSchedulerService</description>
      <init-params>
        <properties-param>
          <name>job.info</name>
          <description>save the monitor data  periodically</description>
          <property name="jobName" value="RecountActiveUserJob"/>
          <property name="groupName" value="KnowlegedSuite"/>
          <property name="job" value="org.exoplatform.forum.service.conf.RecountActiveUserJob"/>
          <property name="repeatCount" value="0"/>
          <property name="period" value="7200000"/> <!-- 2 hours-->    
          <property name="startTime" value="+0"/>
          <property name="endTime" value=""/>               
        </properties-param>
        <properties-param>
          <name>RecountActiveUser.info</name>
          <description></description>
          <property name="lastPost" value="15"/> <!-- users are active if have last posts in 15 day -->
        </properties-param>
      </init-params>
    </component-plugin>
    
    <component-plugin>
      <name>LoginJob</name>
      <set-method>addPeriodJob</set-method>
      <type>org.exoplatform.services.scheduler.PeriodJob</type>
      <description>update logged in user information to forum service</description>
      <init-params>
        <properties-param>
          <name>job.info</name>
          <description>save the monitor data  periodically</description>
          <property name="jobName" value="LoginJob"/>
          <property name="groupName" value="KnowlegedSuite"/>
          <property name="job" value="org.exoplatform.forum.service.conf.LoginJob"/>
          <property name="repeatCount" value="0"/>
          <property name="period" value="120000"/> <!-- 2 mins-->    
          <property name="startTime" value="+0"/>
          <property name="endTime" value=""/>               
        </properties-param>        
      </init-params>
    </component-plugin>
    
    <!-- 
    <component-plugin>
      <name>UpdateDataJob</name>
      <set-method>addPeriodJob</set-method>
      <type>org.exoplatform.services.scheduler.PeriodJob</type>
      <description>update topic count and post count to forum service</description>
      <init-params>
        <properties-param>
          <name>job.info</name>
          <description>save the monitor data  periodically</description>
          <property name="jobName" value="UpdateDataJob"/>
          <property name="groupName" value="KnowledgeSuite-forum"/>
          <property name="job" value="org.exoplatform.forum.service.conf.UpdateDataJob"/>
          <property name="repeatCount" value="1"/>
          <property name="period" value="30000"/>    
          <property name="startTime" value="+0"/>
          <property name="endTime" value=""/>               
        </properties-param>        
      </init-params>
    </component-plugin>
    -->
  </external-component-plugins>  
  
  
  <external-component-plugins>
    <target-component>org.exoplatform.services.listener.ListenerService</target-component>
    <component-plugin>
      <name>exo.core.security.ConversationRegistry.register</name>
      <set-method>addListener</set-method>
      <type>org.exoplatform.forum.service.AuthenticationLoginListener</type>
      <description>increase number of online users</description>      
    </component-plugin>       
    <component-plugin>
      <name>exo.core.security.ConversationRegistry.unregister</name>
      <set-method>addListener</set-method>
      <type>org.exoplatform.forum.service.AuthenticationLogoutListener</type>
      <description>decrease number of online users</description>      
    </component-plugin>       
  </external-component-plugins>    
</configuration>