info.magnolia.module.rssaggregator.templates.components
Class PlanetFeedModel<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.PlanetFeedModel<RD>
Type Parameters:
RD - Definition type.
All Implemented Interfaces:
info.magnolia.rendering.model.RenderingModel<info.magnolia.rendering.template.TemplateDefinition>

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

PlanetFeedModel.

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
PlanetFeedModel(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 getDescription(String entryDescription, Integer abbreviation)
           
 String getFeedTitle(String feedLink)
          Retrieve the title attribute of an individual feed subscription.
 String getHackergotchi(String feedLink)
           
 Collection<javax.jcr.Node> getItems()
           
 PagerUtil getPager()
           
protected  void sort(Collection<javax.jcr.Node> listItems)
           
 
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

PlanetFeedModel

@Inject
public PlanetFeedModel(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>

getPager

public PagerUtil getPager()
                   throws javax.jcr.RepositoryException
Throws:
javax.jcr.RepositoryException

getItems

public Collection<javax.jcr.Node> getItems()

sort

protected void sort(Collection<javax.jcr.Node> listItems)

getDescription

public String getDescription(String entryDescription,
                             Integer abbreviation)

getHackergotchi

public String getHackergotchi(String feedLink)

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.