<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
<!--
/**********************************************************************************
 * $URL:  $
 * $Id:  $
 ***********************************************************************************
 *
 * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
 *
 * Licensed under the Educational Community License, Version 1.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.opensource.org/licenses/ecl1.php
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 **********************************************************************************/
-->
<beans>
 
 
  <bean id="emailMessageAdapter" 
    class="org.sakaiproject.search.component.adapter.message.MessageContentProducer"
    singleton="true"
    init-method="init" >
    <property name="toolName" ><value>email</value></property>
    <property name="addEvents" >
      <list>
        <value>mail.new</value>
        <value>mail.revise.own</value>
        <value>mail.revise.any</value>
      </list>
    </property>
    <property name="removeEvents" >
      <list>
        <value>mail.delete.own</value>
        <value>mail.delete.any</value>
      </list>
    </property>
    <property name="messageService" ><ref bean="org.sakaiproject.mailarchive.api.MailArchiveService"/></property>
  </bean>
  
  <bean id="discussionMessageAdapter" 
    class="org.sakaiproject.search.component.adapter.message.MessageContentProducer"
    singleton="true"
    init-method="init" >
    <property name="toolName" ><value>discussion</value></property>
    <property name="addEvents" >
      <list>
        <value>disc.new</value>
        <value>disc.revise.own</value>
        <value>disc.revise.any</value>
      </list>
    </property>
    <property name="removeEvents" >
      <list>
        <value>disc.delete.own</value>
        <value>disc.delete.any</value>
      </list>
    </property>
    <property name="messageService" ><ref bean="org.sakaiproject.discussion.api.DiscussionService"/></property>
  </bean>
  
  <bean id="chatMessageAdapter" 
    class="org.sakaiproject.search.component.adapter.message.MessageContentProducer"
    singleton="true"
    init-method="init" >
    <property name="toolName" ><value>chat</value></property>
    <property name="addEvents" >
      <list>
        <value>chat.new</value>
        <value>chat.revise.own</value>
        <value>chat.revise.any</value>
      </list>
    </property>
    <property name="removeEvents" >
      <list>
        <value>chat.delete.own</value>
        <value>chat.delete.any</value>
      </list>
    </property>
    <property name="messageService" ><ref bean="org.sakaiproject.chat.api.ChatService"/></property>
  </bean>
  <bean id="announcementMessageAdapter" 
    class="org.sakaiproject.search.component.adapter.message.MessageContentProducer"
    singleton="true"
    init-method="init" >
    <property name="toolName" ><value>announcement</value></property>
    <property name="addEvents" >
      <list>
        <value>annc.new</value>
        <value>annc.revise.own</value>
        <value>annc.revise.any</value>
      </list>
    </property>
    <property name="removeEvents" >
      <list>
        <value>annc.delete.own</value>
        <value>annc.delete.any</value>
      </list>
    </property>
    <property name="messageService" ><ref bean="org.sakaiproject.announcement.api.AnnouncementService"/></property>
  </bean>
  
</beans>
