fr.paris.lutece.portal.service.search
Class SponsoredLinksSearchService

java.lang.Object
  extended by fr.paris.lutece.portal.service.search.SponsoredLinksSearchService
All Implemented Interfaces:
ISponsoredLinksSearchService

public class SponsoredLinksSearchService
extends Object
implements ISponsoredLinksSearchService

Default sponsored links search service implementation


Constructor Summary
SponsoredLinksSearchService()
          Default constructor.
 
Method Summary
 String getHtmlCode(String strRequest, Locale locale)
          Call a ISponsoredLinks service to compute the request and returns the result as html code.
 boolean isAvailable()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SponsoredLinksSearchService

public SponsoredLinksSearchService()
Default constructor. Gets the sponsoredLinksService from the sponsoredlinks plugin If the service is missing, sets available to false

Method Detail

getHtmlCode

public String getHtmlCode(String strRequest,
                          Locale locale)
Call a ISponsoredLinks service to compute the request and returns the result as html code. Returns an empty string "" if the service is not available or if no result was found

Specified by:
getHtmlCode in interface ISponsoredLinksSearchService
Parameters:
strRequest - the request to compute
locale - The locale
Returns:
the html code of the computed request

isAvailable

public boolean isAvailable()

Specified by:
isAvailable in interface ISponsoredLinksSearchService
Returns:
if a SponsoredLinks service is loaded


Copyright © 2014 Mairie de Paris. All Rights Reserved.