info.magnolia.module.rssaggregator.templates.components
Class PlanetFeedModel<RD extends info.magnolia.rendering.template.TemplateDefinition>
java.lang.Object
info.magnolia.rendering.model.RenderingModelImpl<RD>
info.magnolia.module.rssaggregator.templates.components.AbstractFeedModel<info.magnolia.rendering.template.TemplateDefinition>
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
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)
|
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 |
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)
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)
- Retrieve an author's Hackergotchi image if available.
- Parameters:
feedLink
- Link to the feed where the settings are fetched.
- Returns:
- Link to the Hackergotchi image stored in DMS or null.
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.