Class SponsoredLinksSearchService
java.lang.Object
fr.paris.lutece.portal.service.search.SponsoredLinksSearchService
- All Implemented Interfaces:
ISponsoredLinksSearchService
Default sponsored links search service implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHtmlCode(String strRequest, Locale locale) Call a ISponsoredLinks service to compute the request and returns the result as html code.boolean
-
Constructor Details
-
SponsoredLinksSearchService
public SponsoredLinksSearchService()Default constructor. Gets the sponsoredLinksService from the sponsoredlinks plugin If the service is missing, sets available to false
-
-
Method Details
-
getHtmlCode
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:
getHtmlCodein interfaceISponsoredLinksSearchService- Parameters:
strRequest- the request to computelocale- The locale- Returns:
- the html code of the computed request
-
isAvailable
public boolean isAvailable()- Specified by:
isAvailablein interfaceISponsoredLinksSearchService- Returns:
- if a SponsoredLinks service is loaded
-