org.sakaiproject.search.component.adapter.message
Class MessageContentProducer

java.lang.Object
  extended by org.sakaiproject.search.component.adapter.message.MessageContentProducer
All Implemented Interfaces:
org.sakaiproject.search.api.EntityContentProducer

public class MessageContentProducer
extends Object
implements org.sakaiproject.search.api.EntityContentProducer

Author:
ieb

Constructor Summary
MessageContentProducer()
           
 
Method Summary
 boolean canRead(String reference)
           
 Integer getAction(org.sakaiproject.event.api.Event event)
           
 List getAddEvents()
           
 String getContainer(String reference)
           
 String getContent(String reference)
          
 Reader getContentReader(String reference)
          
 Map getCustomProperties(String ref)
           
 String getCustomRDF(String ref)
           
 org.sakaiproject.entity.api.EntityManager getEntityManager()
           
 String getId(String reference)
           
 org.sakaiproject.message.api.MessageService getMessageService()
           
 List getRemoveEvents()
           
 org.sakaiproject.search.api.SearchIndexBuilder getSearchIndexBuilder()
           
 org.sakaiproject.search.api.SearchService getSearchService()
           
 org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
           
 List getSiteContent(String context)
           
 Iterator getSiteContentIterator(String context)
           
 String getSiteId(String resourceName)
           
 String getSubType(String reference)
           
 String getTitle(String reference)
           
 String getTool()
           
 String getToolName()
           
 String getType(String reference)
           
 String getUrl(String reference)
           
 void init()
           
 boolean isContentFromReader(String reference)
          
 boolean isForIndex(String reference)
           
 boolean matches(org.sakaiproject.event.api.Event event)
           
 boolean matches(String reference)
           
 void setAddEvents(List addEvents)
           
 void setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager)
           
 void setMessageService(org.sakaiproject.message.api.MessageService messageService)
           
 void setRemoveEvents(List removeEvents)
           
 void setSearchIndexBuilder(org.sakaiproject.search.api.SearchIndexBuilder searchIndexBuilder)
           
 void setSearchService(org.sakaiproject.search.api.SearchService searchService)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
           
 void setSiteService(org.sakaiproject.site.api.SiteService siteService)
           
 void setToolName(String toolName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageContentProducer

public MessageContentProducer()
Method Detail

init

public void init()

isContentFromReader

public boolean isContentFromReader(String reference)

Specified by:
isContentFromReader in interface org.sakaiproject.search.api.EntityContentProducer

getContentReader

public Reader getContentReader(String reference)

Specified by:
getContentReader in interface org.sakaiproject.search.api.EntityContentProducer

getContent

public String getContent(String reference)

Specified by:
getContent in interface org.sakaiproject.search.api.EntityContentProducer

getTitle

public String getTitle(String reference)
Specified by:
getTitle in interface org.sakaiproject.search.api.EntityContentProducer

getUrl

public String getUrl(String reference)
Specified by:
getUrl in interface org.sakaiproject.search.api.EntityContentProducer

matches

public boolean matches(String reference)
Specified by:
matches in interface org.sakaiproject.search.api.EntityContentProducer

getAction

public Integer getAction(org.sakaiproject.event.api.Event event)
Specified by:
getAction in interface org.sakaiproject.search.api.EntityContentProducer

matches

public boolean matches(org.sakaiproject.event.api.Event event)
Specified by:
matches in interface org.sakaiproject.search.api.EntityContentProducer

getTool

public String getTool()
Specified by:
getTool in interface org.sakaiproject.search.api.EntityContentProducer

getAddEvents

public List getAddEvents()
Returns:
Returns the addEvents.

setAddEvents

public void setAddEvents(List addEvents)
Parameters:
addEvents - The addEvents to set.

getMessageService

public org.sakaiproject.message.api.MessageService getMessageService()
Returns:
Returns the messageService.

setMessageService

public void setMessageService(org.sakaiproject.message.api.MessageService messageService)
Parameters:
messageService - The messageService to set.

getToolName

public String getToolName()
Returns:
Returns the toolName.

setToolName

public void setToolName(String toolName)
Parameters:
toolName - The toolName to set.

getRemoveEvents

public List getRemoveEvents()
Returns:
Returns the removeEvents.

setRemoveEvents

public void setRemoveEvents(List removeEvents)
Parameters:
removeEvents - The removeEvents to set.

getSiteId

public String getSiteId(String resourceName)
Specified by:
getSiteId in interface org.sakaiproject.search.api.EntityContentProducer

getSiteContent

public List getSiteContent(String context)

getSiteContentIterator

public Iterator getSiteContentIterator(String context)
Specified by:
getSiteContentIterator in interface org.sakaiproject.search.api.EntityContentProducer

isForIndex

public boolean isForIndex(String reference)
Specified by:
isForIndex in interface org.sakaiproject.search.api.EntityContentProducer

canRead

public boolean canRead(String reference)
Specified by:
canRead in interface org.sakaiproject.search.api.EntityContentProducer

getCustomProperties

public Map getCustomProperties(String ref)
Specified by:
getCustomProperties in interface org.sakaiproject.search.api.EntityContentProducer

getCustomRDF

public String getCustomRDF(String ref)
Specified by:
getCustomRDF in interface org.sakaiproject.search.api.EntityContentProducer

getId

public String getId(String reference)
Specified by:
getId in interface org.sakaiproject.search.api.EntityContentProducer

getSubType

public String getSubType(String reference)
Specified by:
getSubType in interface org.sakaiproject.search.api.EntityContentProducer

getType

public String getType(String reference)
Specified by:
getType in interface org.sakaiproject.search.api.EntityContentProducer

getContainer

public String getContainer(String reference)
Specified by:
getContainer in interface org.sakaiproject.search.api.EntityContentProducer

getEntityManager

public org.sakaiproject.entity.api.EntityManager getEntityManager()
Returns:
the entityManager

setEntityManager

public void setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager)
Parameters:
entityManager - the entityManager to set

getSearchIndexBuilder

public org.sakaiproject.search.api.SearchIndexBuilder getSearchIndexBuilder()
Returns:
the searchIndexBuilder

setSearchIndexBuilder

public void setSearchIndexBuilder(org.sakaiproject.search.api.SearchIndexBuilder searchIndexBuilder)
Parameters:
searchIndexBuilder - the searchIndexBuilder to set

getSearchService

public org.sakaiproject.search.api.SearchService getSearchService()
Returns:
the searchService

setSearchService

public void setSearchService(org.sakaiproject.search.api.SearchService searchService)
Parameters:
searchService - the searchService to set

getServerConfigurationService

public org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
Returns:
the serverConfigurationService

setServerConfigurationService

public void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
Parameters:
serverConfigurationService - the serverConfigurationService to set

setSiteService

public void setSiteService(org.sakaiproject.site.api.SiteService siteService)


Copyright © 2003-2012 Sakai Project. All Rights Reserved.