Package org.ametys.web.indexing
Interface SiteIndexer
- All Known Implementing Classes:
SolrSiteIndexer
public interface SiteIndexer
Component indexing a
Site
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Index a site in all workspacesvoid
Index a site in a specific workspace.void
indexSite
(String siteName, String workspaceName, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.void
indexSite
(String siteName, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.void
Index a site in all workspacesvoid
indexSite
(Site site, ContainerProgressionTracker progressionTracker) Index a site in a specific workspace.void
indexSitemap
(String siteName, String sitemapName) Index a sitemap in all workpacesvoid
indexSitemap
(String siteName, String sitemapName, String workspaceName) Index a sitemap in a specific workspace.void
indexSitemap
(Sitemap sitemap) Index a sitemap in all workpacesvoid
unindexSite
(String siteName) Unindex a site in all workspacesvoid
unindexSite
(String siteName, String workspaceName) Unindex a site in a specific workspace.void
unindexSitemap
(String siteName, String sitemapName) Unindex a sitemap in all workpacesvoid
unindexSitemap
(String siteName, String sitemapName, String workspaceName) Unindex a sitemap in a specific workspace.
-
Field Details
-
ROLE
The component role.
-
-
Method Details
-
indexSite
Index a site in all workspaces- Parameters:
site
- the site to index.- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSite
Index a site in a specific workspace.- Parameters:
site
- the site to index.progressionTracker
- The progression of the indexation- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSite
Index a site in all workspaces- Parameters:
siteName
- the name of the site to index.- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSite
Index a site in a specific workspace.- Parameters:
siteName
- the name of the site to index.workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSite
void indexSite(String siteName, String workspaceName, ContainerProgressionTracker progressionTracker) throws IndexingException Index a site in a specific workspace.- Parameters:
siteName
- the name of the site to index.workspaceName
- The workspace name.progressionTracker
- A progression tracker- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSite
void indexSite(String siteName, String workspaceName, org.apache.solr.client.solrj.SolrClient solrClient, ContainerProgressionTracker progressionTracker) throws IndexingException Index a site in a specific workspace.- Parameters:
siteName
- the name of the site to index.workspaceName
- The workspace name.solrClient
- The solr client to useprogressionTracker
- The progression of the indexation- Throws:
IndexingException
- If an error occurs while indexing the site.
-
indexSitemap
Index a sitemap in all workpaces- Parameters:
sitemap
- the sitemap to index.- Throws:
IndexingException
- If an error occurs while indexing the sitemap.
-
indexSitemap
Index a sitemap in all workpaces- Parameters:
siteName
- the site name.sitemapName
- the name of the sitemap to index.- Throws:
IndexingException
- If an error occurs while indexing the sitemap.
-
indexSitemap
void indexSitemap(String siteName, String sitemapName, String workspaceName) throws IndexingException Index a sitemap in a specific workspace.- Parameters:
siteName
- the site name.sitemapName
- the name of the sitemap to index.workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs while indexing the sitemap.
-
unindexSite
Unindex a site in a specific workspace.- Parameters:
siteName
- the name of site to unindex.workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs while unindexing the site.
-
unindexSite
Unindex a site in all workspaces- Parameters:
siteName
- the name of site to unindex.- Throws:
IndexingException
- If an error occurs while unindexing the site.
-
unindexSitemap
Unindex a sitemap in all workpaces- Parameters:
siteName
- the site name.sitemapName
- the name of the sitemap to index.- Throws:
IndexingException
- If an error occurs while unindexing the sitemap.
-
unindexSitemap
void unindexSitemap(String siteName, String sitemapName, String workspaceName) throws IndexingException Unindex a sitemap in a specific workspace.- Parameters:
siteName
- the site name.sitemapName
- the name of the sitemap to index.workspaceName
- The workspace name.- Throws:
IndexingException
- If an error occurs while unindexing the sitemap.
-