Class SitemapServiceMain
java.lang.Object
com.endurancetrio.business.common.service.SitemapServiceMain
- All Implemented Interfaces:
SitemapService
The
SitemapServiceMain builds the sitemap entries for the static pages and for every
event and published article, each in both language variants.-
Constructor Summary
ConstructorsConstructorDescriptionSitemapServiceMain(ArticleRepository articleRepository, EventRepository eventRepository) -
Method Summary
Modifier and TypeMethodDescriptiongetSitemapEntries(String baseUrl) Returns everySitemapEntryof the sitemap, covering the static pages and all events and published articles, each in both language variants.
-
Constructor Details
-
SitemapServiceMain
@Autowired public SitemapServiceMain(ArticleRepository articleRepository, EventRepository eventRepository)
-
-
Method Details
-
getSitemapEntries
Description copied from interface:SitemapServiceReturns everySitemapEntryof the sitemap, covering the static pages and all events and published articles, each in both language variants.- Specified by:
getSitemapEntriesin interfaceSitemapService- Parameters:
baseUrl- the normalized site base URL (without a trailing slash)- Returns:
- the sitemap entries
-