org.sakaiproject.search.component.adapter.contenthosting
Class ContentHostingContentProducer

java.lang.Object
  extended by org.sakaiproject.search.component.adapter.contenthosting.ContentHostingContentProducer
All Implemented Interfaces:
EntityContentProducer, StoredDigestContentProducer

public class ContentHostingContentProducer
extends Object
implements EntityContentProducer, StoredDigestContentProducer


Constructor Summary
ContentHostingContentProducer()
           
 
Method Summary
 void addDigester(ContentDigester digester)
           
 boolean canRead(String ref)
           
 Integer getAction(org.sakaiproject.event.api.Event event)
           
 String getContainer(String reference)
           
 String getContent(String ref)
           
 String getContent(String ref, int minWordLenght)
           
 org.sakaiproject.content.api.ContentHostingService getContentHostingService()
           
 Reader getContentReader(String ref)
           
 List<String> getCustomProperties()
           
 Map<String,String[]> getCustomProperties(String ref)
           
 String getCustomRDF(String ref)
           
 ContentDigester getDefaultDigester()
           
 ContentDigester getDigester(org.sakaiproject.content.api.ContentResource cr)
           
 int getDigesterSizeLimit()
           
 org.sakaiproject.entity.api.EntityManager getEntityManager()
           
 String getId(String reference)
           
 int getReaderSizeLimit()
           
 SearchIndexBuilder getSearchIndexBuilder()
           
 SearchService getSearchService()
           
 org.sakaiproject.component.api.ServerConfigurationService getServerConfigurationService()
           
 Iterator<String> getSiteContentIterator(String context)
           
 String getSiteId(String resourceName)
           
 org.sakaiproject.site.api.SiteService getSiteService()
           
 String getSubType(String reference)
           
 String getTitle(String ref)
           
 String getTool()
           
 String getType(String reference)
           
 String getUrl(String ref)
           
 void init()
           
 boolean isContentFromReader(String ref)
           
 boolean isForIndex(String ref)
           
 boolean matches(org.sakaiproject.event.api.Event event)
           
 boolean matches(String ref)
           
 void removeDigester(ContentDigester digester)
           
 void setContentHostingService(org.sakaiproject.content.api.ContentHostingService contentHostingService)
           
 void setCustomProperties(List<String> customProperties)
           
 void setDefaultDigester(ContentDigester defaultDigester)
           
 void setDigesterSizeLimit(int digesterSizeLimit)
           
 void setEntityManager(org.sakaiproject.entity.api.EntityManager entityManager)
           
 void setReaderSizeLimit(int readerSizeLimit)
           
 void setSearchIndexBuilder(SearchIndexBuilder searchIndexBuilder)
           
 void setSearchService(SearchService searchService)
           
 void setServerConfigurationService(org.sakaiproject.component.api.ServerConfigurationService serverConfigurationService)
           
 void setSiteService(org.sakaiproject.site.api.SiteService siteService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentHostingContentProducer

public ContentHostingContentProducer()
Method Detail

init

public void init()

addDigester

public void addDigester(ContentDigester digester)

removeDigester

public void removeDigester(ContentDigester digester)

isContentFromReader

public boolean isContentFromReader(String ref)
Specified by:
isContentFromReader in interface EntityContentProducer

getContentReader

public Reader getContentReader(String ref)
Specified by:
getContentReader in interface EntityContentProducer

getContent

public String getContent(String ref)
Specified by:
getContent in interface EntityContentProducer

getContent

public String getContent(String ref,
                         int minWordLenght)

getDigester

public ContentDigester getDigester(org.sakaiproject.content.api.ContentResource cr)

getTitle

public String getTitle(String ref)
Specified by:
getTitle in interface EntityContentProducer

matches

public boolean matches(String ref)
Specified by:
matches in interface EntityContentProducer

getAction

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

matches

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

getTool

public String getTool()
Specified by:
getTool in interface EntityContentProducer

getUrl

public String getUrl(String ref)
Specified by:
getUrl in interface EntityContentProducer

getSiteId

public String getSiteId(String resourceName)
Specified by:
getSiteId in interface EntityContentProducer

getSiteContentIterator

public Iterator<String> getSiteContentIterator(String context)
Specified by:
getSiteContentIterator in interface EntityContentProducer

getReaderSizeLimit

public int getReaderSizeLimit()
Returns:
Returns the readerSizeLimit.

setReaderSizeLimit

public void setReaderSizeLimit(int readerSizeLimit)
Parameters:
readerSizeLimit - The readerSizeLimit to set.

getDefaultDigester

public ContentDigester getDefaultDigester()
Returns:
Returns the defaultDigester.

setDefaultDigester

public void setDefaultDigester(ContentDigester defaultDigester)
Parameters:
defaultDigester - The defaultDigester to set.

isForIndex

public boolean isForIndex(String ref)
Specified by:
isForIndex in interface EntityContentProducer

canRead

public boolean canRead(String ref)
Specified by:
canRead in interface EntityContentProducer

getCustomProperties

public Map<String,String[]> getCustomProperties(String ref)
Specified by:
getCustomProperties in interface EntityContentProducer

getCustomRDF

public String getCustomRDF(String ref)
Specified by:
getCustomRDF in interface EntityContentProducer

getDigesterSizeLimit

public int getDigesterSizeLimit()
Returns:
Returns the digesterSizeLimit.

setDigesterSizeLimit

public void setDigesterSizeLimit(int digesterSizeLimit)
Parameters:
digesterSizeLimit - The digesterSizeLimit to set.

getId

public String getId(String reference)
Specified by:
getId in interface EntityContentProducer

getSubType

public String getSubType(String reference)
Specified by:
getSubType in interface EntityContentProducer

getType

public String getType(String reference)
Specified by:
getType in interface EntityContentProducer

getContainer

public String getContainer(String reference)
Specified by:
getContainer in interface EntityContentProducer

getCustomProperties

public List<String> getCustomProperties()
Returns:
the customProperties

setCustomProperties

public void setCustomProperties(List<String> customProperties)
Parameters:
customProperties - the customProperties to set

getContentHostingService

public org.sakaiproject.content.api.ContentHostingService getContentHostingService()
Returns:
the contentHostingService

setContentHostingService

public void setContentHostingService(org.sakaiproject.content.api.ContentHostingService contentHostingService)
Parameters:
contentHostingService - the contentHostingService to set

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 SearchIndexBuilder getSearchIndexBuilder()
Returns:
the searchIndexBuilder

setSearchIndexBuilder

public void setSearchIndexBuilder(SearchIndexBuilder searchIndexBuilder)
Parameters:
searchIndexBuilder - the searchIndexBuilder to set

getSearchService

public SearchService getSearchService()
Returns:
the searchService

setSearchService

public void setSearchService(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

getSiteService

public org.sakaiproject.site.api.SiteService getSiteService()
Returns:
the siteService

setSiteService

public void setSiteService(org.sakaiproject.site.api.SiteService siteService)
Parameters:
siteService - the siteService to set


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