info.magnolia.module.rssaggregator.templates.components
Class FeedStatisticsModel<RD extends info.magnolia.rendering.template.TemplateDefinition>

java.lang.Object
  extended by info.magnolia.rendering.model.RenderingModelImpl<RD>
      extended by info.magnolia.module.rssaggregator.templates.components.AbstractFeedModel<info.magnolia.rendering.template.TemplateDefinition>
          extended by info.magnolia.module.rssaggregator.templates.components.FeedStatisticsModel<RD>
Type Parameters:
RD - Definition type.
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>

public class FeedStatisticsModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
extends AbstractFeedModel<info.magnolia.rendering.template.TemplateDefinition>

FeedStatisticsModel.

Author:
lfischer

Field Summary
 
Fields inherited from class info.magnolia.module.rssaggregator.templates.components.AbstractFeedModel
FEEDS_NODE, log, MAX_RESULTS, ORDER_BY_PUBLICATION_DATE, ORDER_BY_TITLE_NAME, SORT_ASCENDING, SORT_DESCENDING, templatingFunctions
 
Fields inherited from class info.magnolia.rendering.model.RenderingModelImpl
content, contentMap, definition, parentModel
 
Fields inherited from interface info.magnolia.rendering.model.RenderingModel
SKIP_RENDERING
 
Constructor Summary
FeedStatisticsModel(javax.jcr.Node content, RD definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
           
 
Method Summary
 String execute()
           
 Collection<info.magnolia.cms.util.ContentWrapper> getItems()
          Select statistic items.
 
Methods inherited from class info.magnolia.module.rssaggregator.templates.components.AbstractFeedModel
convertPubDate, getContextPath, getFeedProperty, getFeedTitle, getPlanetItems, runQuery
 
Methods inherited from class info.magnolia.rendering.model.RenderingModelImpl
getContent, getDef, getDefinition, getNode, getParent, getRoot
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.magnolia.rendering.model.RenderingModel
getContent, getDefinition, getNode, getParent, getRoot
 

Constructor Detail

FeedStatisticsModel

public FeedStatisticsModel(javax.jcr.Node content,
                           RD definition,
                           info.magnolia.rendering.model.RenderingModel<?> parent,
                           info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
Method Detail

execute

public String execute()
Specified by:
execute in interface info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>
Overrides:
execute in class info.magnolia.rendering.model.RenderingModelImpl<info.magnolia.rendering.template.TemplateDefinition>

getItems

public Collection<info.magnolia.cms.util.ContentWrapper> getItems()
Select statistic items.

Returns:
Nodes from selected statistic ordered by postCount descending.


Copyright © 2014 Magnolia International Ltd.. All Rights Reserved.