info.magnolia.module.rssaggregator.paragraphs
Class AbstractFeedModel
java.lang.Object
info.magnolia.module.templating.RenderingModelImpl
info.magnolia.module.rssaggregator.paragraphs.AbstractFeedModel
- All Implemented Interfaces:
- info.magnolia.module.templating.RenderingModel
- Direct Known Subclasses:
- CombinedFeedModel, FeedListModel
public abstract class AbstractFeedModel
- extends info.magnolia.module.templating.RenderingModelImpl
Base class for rendering models.
- Version:
- $Id:$
- Author:
- had
Fields inherited from class info.magnolia.module.templating.RenderingModelImpl |
content, definition, parentModel |
Constructor Summary |
AbstractFeedModel(info.magnolia.cms.core.Content content,
info.magnolia.module.templating.RenderableDefinition definition,
info.magnolia.module.templating.RenderingModel parent)
|
Methods inherited from class info.magnolia.module.templating.RenderingModelImpl |
execute, getContent, getDef, getDefinition, getParent, getRoot |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ORDER_BY_PUBLICATION_DATE
public static final String ORDER_BY_PUBLICATION_DATE
- See Also:
- Constant Field Values
ORDER_BY_TITLE_NAME
public static final String ORDER_BY_TITLE_NAME
- See Also:
- Constant Field Values
SORT_ASCENDING
public static final String SORT_ASCENDING
- See Also:
- Constant Field Values
SORT_DESCENDING
public static final String SORT_DESCENDING
- See Also:
- Constant Field Values
AbstractFeedModel
public AbstractFeedModel(info.magnolia.cms.core.Content content,
info.magnolia.module.templating.RenderableDefinition definition,
info.magnolia.module.templating.RenderingModel parent)
- Parameters:
content
- definition
- parent
-
convertPubDate
public Date convertPubDate(Object timestamp)
- This can get sometimes confusing. Freemarker will not create date from the java long time stamp format so we need to convert it to date first.
Depending on circumstances (whether coming from node or from node wrapper) the time stamp will be passed in as a String or as a Long object
- Parameters:
timestamp
-
- Returns:
getContextPath
public String getContextPath()
Copyright © 2011 Magnolia International Ltd.. All Rights Reserved.