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 TypeMethodDescriptionintOrdered by pubDate desc, page.Gets the allowRobots setting.getBook()protected StringgetLabel()getTitle()getView()booleanisHidden()News elements are not part of the content directly, so are hidden from tree views.voidsetAllowRobots(Boolean allowRobots) Sets allow robots while making sure not frozen.voidSets the book while making sure not frozen.voidsetDescription(String description) Sets the description while making sure not frozen.voidsetElement(String element) Sets the element while making sure not frozen.voidsetPubDate(ZonedDateTime pubDate) Sets the published date while making sure not frozen.voidsetTargetPage(String targetPage) Sets the target page while making sure not frozen.voidSets the title while making sure not frozen.voidSets 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, setIdMethods 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:
compareToin 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 pagetrue- Robots allowedfalse- Robots not allowed
-
setAllowRobots
Sets allow robots while making sure not frozen. -
getDefaultIdPrefix
- Specified by:
getDefaultIdPrefixin classElement
-
