pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.core.site.search
Class SearchSiteConfiguration

java.lang.Object
  extended by org.torweg.pulse.configuration.AbstractConfigBean
      extended by org.torweg.pulse.component.core.site.search.SearchSiteConfiguration
All Implemented Interfaces:
java.io.Serializable, ConfigBean

public class SearchSiteConfiguration
extends AbstractConfigBean

configures the site-wide search.

Version:
$Revision: 1459 $
Author:
Thomas Weber
See Also:
Serialized Form

Constructor Summary
SearchSiteConfiguration()
           
 
Method Summary
 long getFailuresTimeFactor()
          returns the time factor for failures to expire (default = 1 day).
 int getPagingMaxQuickNavLinks()
          returns the max number of quick navigation links (default = 10).
 int getPagingMaxResults()
          returns the max results for searches before paging starts (default = 25).
 int getSuggestionsMaxResults()
          returns the max results for suggestions (default = 5).
 long getSuggestionsPenaltyInterval()
          returns the penalty interval, i.e. the minimum interval between two subsequent recurrences without being considered a flooding attack (default = 3000ms).
 long getSuggestionsTimeFactor()
          returns the time factor for suggestions to expire (default = 1 day).
 void init(org.jdom.Element conf)
          initialises the ConfigBean.
 
Methods inherited from class org.torweg.pulse.configuration.AbstractConfigBean
buildClass, buildInstance, lastModified, setLastModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchSiteConfiguration

public SearchSiteConfiguration()
Method Detail

init

public void init(org.jdom.Element conf)
initialises the ConfigBean.

Parameters:
conf - the configuration XML as a JDOM element
See Also:
ConfigBean.init(org.jdom.Element)

getSuggestionsMaxResults

public final int getSuggestionsMaxResults()
returns the max results for suggestions (default = 5).

Returns:
the max results for suggestions

getSuggestionsTimeFactor

public final long getSuggestionsTimeFactor()
returns the time factor for suggestions to expire (default = 1 day).

Returns:
the time factor for suggestions

getSuggestionsPenaltyInterval

public final long getSuggestionsPenaltyInterval()
returns the penalty interval, i.e. the minimum interval between two subsequent recurrences without being considered a flooding attack (default = 3000ms).

Returns:
the penalty interval

getFailuresTimeFactor

public final long getFailuresTimeFactor()
returns the time factor for failures to expire (default = 1 day).

Returns:
the time factor for failures

getPagingMaxResults

public final int getPagingMaxResults()
returns the max results for searches before paging starts (default = 25).

Returns:
the max results for searches before paging starts

getPagingMaxQuickNavLinks

public final int getPagingMaxQuickNavLinks()
returns the max number of quick navigation links (default = 10).

Returns:
the max number of quick navigation links