java.lang.Object
com.semanticcms.core.servlet.View
com.semanticcms.news.view.NewsView
- All Implemented Interfaces:
Comparable<View>
SemanticCMS view of all news in the current page and all children.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.semanticcms.core.servlet.View
View.Group
-
Field Summary
Fields inherited from class com.semanticcms.core.servlet.View
TITLE_SEPARATOR
-
Method Summary
Modifier and TypeMethodDescription<__ extends FlowContent<__>>
voiddoView
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) boolean
getAllowRobots
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) News entries are not displayed on their page, but rather on their news view.getDescription
(Page page) Description required by RSS channel.getGroup()
getKeywords
(Page page) getLastModified
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) The last modified time of news view is the pubDate of the most recent news entry.getLinks
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) getName()
getTitle
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) boolean
isApplicable
(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) Methods inherited from class com.semanticcms.core.servlet.View
compareTo, configureResources, equals, getAppliesGlobally, getAuthors, getCanonicalUrl, getCopyright, getLinkCssClass, getLinkId, getLinkParams, getScripts, hashCode, isDefault, toString
-
Field Details
-
NAME
- See Also:
-
-
Method Details
-
getGroup
-
getDisplay
- Specified by:
getDisplay
in classView
-
getName
-
isApplicable
public boolean isApplicable(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException - Overrides:
isApplicable
in classView
- Throws:
ServletException
IOException
-
getLastModified
public ReadableInstant getLastModified(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException The last modified time of news view is the pubDate of the most recent news entry.- Overrides:
getLastModified
in classView
- Throws:
ServletException
IOException
-
getTitle
public String getTitle(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) -
getDescription
Description required by RSS channel.- Specified by:
getDescription
in classView
-
getKeywords
- Specified by:
getKeywords
in classView
-
getLinks
public Collection<Link> getLinks(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException - Overrides:
getLinks
in classView
- Throws:
ServletException
IOException
-
getAllowRobots
public boolean getAllowRobots(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, Page page) throws ServletException, IOException News entries are not displayed on their page, but rather on their news view.If the page does not have any direct robots-enabled news (child news doesn't count), then robots will be excluded. This is to reduce the chances of duplicate content when a parent page also includes child page news.
- Specified by:
getAllowRobots
in classView
- Throws:
ServletException
IOException
-
doView
public <__ extends FlowContent<__>> void doView(ServletContext servletContext, HttpServletRequest request, HttpServletResponse response, __ flow, Page page) throws ServletException, IOException, SkipPageException - Specified by:
doView
in classView
- Throws:
ServletException
IOException
SkipPageException
-