public class TagCloudOnTagsGenerator extends AbstractTagCloudGenerator
Modifier and Type | Class and Description |
---|---|
private class |
TagCloudOnTagsGenerator.TagTagCloudItem
Class representing an item of tag cloud
|
AbstractTagCloudGenerator.ItemOccurrenceComparator, AbstractTagCloudGenerator.TagCloudItem
Modifier and Type | Field and Description |
---|---|
protected TagProviderExtensionPoint |
_tagExtPt
|
_cacheManager, _context, _resolver, _solrClient, _solrClientProvider, OCCURRENCE_COMPARATOR
manager
objectModel, parameters, resolver, source
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
Constructor and Description |
---|
TagCloudOnTagsGenerator() |
Modifier and Type | Method and Description |
---|---|
private void |
_addTagQuery(Collection<Query> queries,
String tagName) |
private List<Tag> |
_getTags(String siteName,
String[] tagArray) |
protected void |
_saxAdditionalAttributes(AbstractTagCloudGenerator.TagCloudItem item,
AttributesImpl attrs)
Sax additional attributes for item
|
protected Query |
getQuery(String siteName,
String language,
String tagName,
String[] contentTypes,
String[] pages)
Get the query
|
protected List<AbstractTagCloudGenerator.TagCloudItem> |
getTagCloudItems(String siteName,
String lang,
CompositeMetadata serviceParameters)
Get the tag cloud items
|
void |
service(ServiceManager serviceManager) |
_addContentTypeQuery, _addPagesQuery, _getFontSize, _saxContentTypeCriteria, _saxFormParameters, _saxSitemapCriteria, build, contextualize, generate, saxTagCloudItem
dispose
recycle, setup
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setConsumer
protected TagProviderExtensionPoint _tagExtPt
public TagCloudOnTagsGenerator()
public void service(ServiceManager serviceManager) throws ServiceException
service
in interface Serviceable
service
in class AbstractTagCloudGenerator
ServiceException
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 void _saxAdditionalAttributes(AbstractTagCloudGenerator.TagCloudItem item, AttributesImpl attrs) throws SAXException
AbstractTagCloudGenerator
_saxAdditionalAttributes
in class AbstractTagCloudGenerator
item
- The tag cloud itemattrs
- The attributesSAXException
- if an error occurs while saxingprotected Query getQuery(String siteName, String language, String tagName, String[] contentTypes, String[] pages)
siteName
- The site name.language
- The current language.tagName
- The tag namecontentTypes
- The content typespages
- The pagesIllegalArgumentException
- If the search field is invalidprivate void _addTagQuery(Collection<Query> queries, String tagName)