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
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, info.magnolia.rendering.template.TemplateDefinition definition, info.magnolia.rendering.model.RenderingModel<?> parent, info.magnolia.templating.functions.TemplatingFunctions templatingFunctions)
           
 
Method Summary
 String execute()
           
 String getFeedTitle(String feedLink)
          Retrieve the title attribute of an individual feed subscription.
 Collection<info.magnolia.cms.util.ContentWrapper> getItems()
           
 
Methods inherited from class info.magnolia.module.rssaggregator.templates.components.AbstractFeedModel
convertPubDate, getContextPath
 
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,
                           info.magnolia.rendering.template.TemplateDefinition 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()

getFeedTitle

public String getFeedTitle(String feedLink)
Retrieve the title attribute of an individual feed subscription.

Parameters:
feedLink - Link to the feed.
Returns:
Assigned title of a feed if defined in the dialog or null.


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