public class TagCloudOnWordsGenerator extends AbstractTagCloudGenerator
Modifier and Type | Class and Description |
---|---|
private class |
TagCloudOnWordsGenerator.WordTagCloudItem |
AbstractTagCloudGenerator.ItemOccurrenceComparator, AbstractTagCloudGenerator.TagCloudItem
_cacheManager, _context, _resolver, _solrClient, _solrClientProvider, OCCURRENCE_COMPARATOR
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
TagCloudOnWordsGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_addTextFieldQuery(Collection<Query> queries,
String language,
String keyword) |
protected Query |
getQuery(String siteName,
String language,
String keyword,
String[] contentTypes,
String[] pages)
Get the query
|
protected List<AbstractTagCloudGenerator.TagCloudItem> |
getTagCloudItems(String siteName,
String lang,
CompositeMetadata serviceParameters)
Get the tag cloud items
|
_addContentTypeQuery, _addPagesQuery, _getFontSize, _saxAdditionalAttributes, _saxContentTypeCriteria, _saxFormParameters, _saxSitemapCriteria, build, contextualize, generate, saxTagCloudItem, service
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
public TagCloudOnWordsGenerator()
protected List<AbstractTagCloudGenerator.TagCloudItem> getTagCloudItems(String siteName, String lang, CompositeMetadata serviceParameters) throws IOException, ProcessingException
AbstractTagCloudGenerator
getTagCloudItems
in class AbstractTagCloudGenerator
siteName
- The site namelang
- The languageserviceParameters
- The service parametersIOException
- if an error occurs when manipulating filesProcessingException
- if an error occurs during the retrieving of the tag cloud itemsprotected Query getQuery(String siteName, String language, String keyword, String[] contentTypes, String[] pages) throws IllegalArgumentException
siteName
- The site name.language
- The current language.keyword
- The key wordcontentTypes
- The content typespages
- The pagesIllegalArgumentException
- If the search field is invalidprivate void _addTextFieldQuery(Collection<Query> queries, String language, String keyword) throws IllegalArgumentException
IllegalArgumentException