java.lang.Object
com.semanticcms.core.model.Node
com.semanticcms.core.model.Element
com.semanticcms.news.model.News
- All Implemented Interfaces:
Freezable<Node>
,Comparable<News>
Models one news entry.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
Ordered by pubDate desc, page.Gets the allowRobots setting.getBook()
protected String
getLabel()
getTitle()
getView()
boolean
isHidden()
News elements are not part of the content directly, so are hidden from tree views.void
setAllowRobots
(Boolean allowRobots) Sets allow robots while making sure not frozen.void
Sets the book while making sure not frozen.void
setDescription
(String description) Sets the description while making sure not frozen.void
setElement
(String element) Sets the element while making sure not frozen.void
setPubDate
(ReadableDateTime pubDate) Sets the published date while making sure not frozen.void
setTargetPage
(String targetPage) Sets the target page while making sure not frozen.void
Sets the title while making sure not frozen.void
Sets the view while making sure not frozen.Methods inherited from class com.semanticcms.core.model.Element
addChildElement, equals, generateIdPrefix, getElementIdTemplate, getElementRef, getId, getPage, getParentElement, hashCode, isValidId, setId
Methods inherited from class com.semanticcms.core.model.Node
addPageLink, appendLabel, checkNotFrozen, findChildElement, findChildElement, findTopLevelElements, freeze, getBody, getChildElements, getPageLinks, getProperty, requireChildElement, requireChildElement, setBody, setProperty, toString
-
Constructor Details
-
News
public News()
-
-
Method Details
-
compareTo
Ordered by pubDate desc, page.- Specified by:
compareTo
in interfaceComparable<News>
-
getLabel
-
isHidden
public boolean isHidden()News elements are not part of the content directly, so are hidden from tree views. -
getBook
-
setBook
Sets the book while making sure not frozen. -
getTargetPage
-
setTargetPage
Sets the target page while making sure not frozen. -
getElement
-
setElement
Sets the element while making sure not frozen. -
getView
-
setView
Sets the view while making sure not frozen. -
getTitle
-
setTitle
Sets the title while making sure not frozen. -
getDescription
-
setDescription
Sets the description while making sure not frozen. -
getPubDate
-
setPubDate
Sets the published date while making sure not frozen. -
getAllowRobots
Gets the allowRobots setting.- null (The default) - Inherit setting from page
- true - Robots allowed
- false - Robots not allowed
-
setAllowRobots
Sets allow robots while making sure not frozen. -
getDefaultIdPrefix
- Specified by:
getDefaultIdPrefix
in classElement
-