public abstract class AbstractPresentationArticle extends Object implements PresentationArticle
PresentationArticle
,
Serialized FormCOM_ESCENIC_PRESENTATION_INTERNAL
Constructor and Description |
---|
AbstractPresentationArticle() |
Modifier and Type | Method and Description |
---|---|
String |
getActivatedDate()
Returns the date this content item was activated.
|
String |
getActivatedDate(Locale locale)
Returns a formatted String of the activation date.
|
String |
getActivatedDate(String formated)
Returns a formatted String of the activation date.
|
int |
getArticleId()
Returns the database id of this content item.
|
int |
getArticlesCount()
Returns the number of content items related to this content item.
|
int |
getArticlesCount(Set pArticleTypes)
Returns the content item count of content items of the specified types
that are related to this content item.
|
Person |
getAuthor()
Returns the author of this content item.
|
int |
getAuthorsCount()
Returns the number of authors responsible for this content item.
|
String |
getCreatedDate()
Returns the date this content item was created.
|
String |
getCreatedDate(Locale locale)
Returns a formatted String of the activation date.
|
String |
getCreatedDate(String formated)
Returns a formatted String of the creation date.
|
String |
getExpireDate()
Returns the date on which this content item expired/will expire.
|
String |
getExpireDate(Locale locale)
Returns a formatted date of when this content item is due to expire.
|
String |
getExpireDate(String formated)
Returns a formatted date of when this content item is due to expire
The date will be formatted using the specified format using the server's locale.
|
String |
getFirstPublishedDate()
Returns the date on which this content item was first published.
|
String |
getFirstPublishedDate(Locale locale)
Returns a formatted date of when this content item was first published
The date will be formatted using
DateFormat.SHORT and the supplied locale. |
String |
getFirstPublishedDate(String formated)
Returns a formatted date of when this content item was first published
The date will be formatted using the specified format using the server's locale.
|
String |
getLastModifiedDate()
Returns the date on which this content item was last modified.
|
String |
getLastModifiedDate(Locale locale)
Returns a formatted date of when this content item was last modified
The date will be formatted using
DateFormat.SHORT and the supplied locale. |
String |
getLastModifiedDate(String formated)
Returns a formatted date of when this content item was last modified.
|
int |
getPersonsCount()
Returns the number of persons related to this content item.
|
String |
getPreviewToken()
Returns the preview token
|
String |
getPublishedDate()
Returns the date on which this content item was last published.
|
String |
getPublishedDate(Locale locale)
Returns a formatted date of when this content item was last published
The date will be formatted using
DateFormat.SHORT and the supplied locale. |
String |
getPublishedDate(String formated)
Returns a formatted date of when this content item was last published
The date will be formatted using the specified format using the server's locale.
|
Section[] |
getSections()
Returns the sections this content item belongs to.
|
String |
getStateChangedDate()
Returns the date on which the state of this content item last changed.
|
String |
getStateChangedDate(Locale locale)
Returns a formatted date of when this content item's state was updated
The date will be formatted using
DateFormat.SHORT and the supplied locale. |
String |
getStateChangedDate(String formated)
Returns a formatted date of when this content item's state was updated
The date will be formatted using the specified format using the server's locale.
|
boolean |
isPreview()
Checks whether the presentation article is a preview or not
returns true if the presentation article is a preview
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getActivatedDate, getActivatedDateAsDate, getAgreementInfo, getArticles, getArticles, getArticleTypeName, getAuthors, getCreatedDate, getCreatedDateAsDate, getExpireDate, getExpireDateAsDate, getFieldElement, getFieldElementDefaultValue, getFieldNames, getFields, getFirstPublishedDate, getFirstPublishedDateAsDate, getHomeSection, getInlineElements, getLastModifiedDate, getLastModifiedDateAsDate, getOwnerHomeSection, getOwnerUrl, getPersons, getPriority, getProfilePersons, getPublication, getPublicationId, getPublishedDate, getPublishedDateAsDate, getRelatedElements, getRelatedElements, getRelativeURI, getRelativeUrl, getSectionsList, getSource, getSourceId, getStateChangedDate, getStateChangedDateAsDate, getStateName, getTags, getTitle, getUrl, inSection, inSection, isAgreementRequired, isLive, isOwner
getHashKey, getId
getId
public String getActivatedDate()
PresentationArticle
DateFormat.SHORT
).getActivatedDate
in interface PresentationArticle
public String getPreviewToken()
PresentationArticle
getPreviewToken
in interface PresentationArticle
public boolean isPreview()
PresentationArticle
isPreview
in interface PresentationArticle
true
if the current content item is preview, false
if not.public String getActivatedDate(String formated)
PresentationArticle
PresentationArticle.getActivatedDate()
instead.getActivatedDate
in interface PresentationArticle
formated
- how the date will be formated. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getActivatedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getActivatedDate()
instead.getActivatedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getCreatedDate()
PresentationArticle
DateFormat.SHORT
).getCreatedDate
in interface PresentationArticle
public String getCreatedDate(String formated)
PresentationArticle
PresentationArticle.getCreatedDate()
instead.getCreatedDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getCreatedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getCreatedDate()
instead.getCreatedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getExpireDate()
PresentationArticle
DateFormat.SHORT
).getExpireDate
in interface PresentationArticle
public String getExpireDate(String formated)
PresentationArticle
PresentationArticle.getExpireDate()
instead.getExpireDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getExpireDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getExpireDate()
instead.getExpireDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getFirstPublishedDate()
PresentationArticle
DateFormat.SHORT
).getFirstPublishedDate
in interface PresentationArticle
public String getFirstPublishedDate(String formated)
PresentationArticle
PresentationArticle.getFirstPublishedDate()
instead.getFirstPublishedDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getFirstPublishedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getFirstPublishedDate()
instead.getFirstPublishedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getLastModifiedDate()
PresentationArticle
DateFormat.SHORT
).getLastModifiedDate
in interface PresentationArticle
public String getLastModifiedDate(String formated)
PresentationArticle
PresentationArticle.getLastModifiedDate()
instead.getLastModifiedDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getLastModifiedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getLastModifiedDate()
instead.getLastModifiedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getPublishedDate()
PresentationArticle
DateFormat.SHORT
).
The first time a content item is published, this property is set automatically. Subsequently, the property is never automatically updated - its value only changes if it is explicitly modified.
getPublishedDate
in interface PresentationArticle
public String getPublishedDate(String formated)
PresentationArticle
PresentationArticle.getPublishedDate()
instead.getPublishedDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getPublishedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getPublishedDate()
instead.getPublishedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public String getStateChangedDate()
PresentationArticle
DateFormat.SHORT
).getStateChangedDate
in interface PresentationArticle
public String getStateChangedDate(String formated)
PresentationArticle
PresentationArticle.getStateChangedDate()
instead.getStateChangedDate
in interface PresentationArticle
formated
- how the date will be formatted. The parameter is defined by SimpleDateFormat
E.G: "yyyy-MM-dd'T'HH:mm:ss.SSSZ".
If you do not supply a value (null
), the date is formatted specified by DateFormat.SHORT
.public String getStateChangedDate(Locale locale)
PresentationArticle
DateFormat.SHORT
and the supplied locale.
This property is not accessible from JSTL. Use the PresentationArticle.getStateChangedDate()
instead.getStateChangedDate
in interface PresentationArticle
locale
- in which locale the date will be resolved.
If you do not supply a value (null
), the date is resolved with the server's default locale.public int getArticleId()
PresentationArticle
getArticleId
in interface PresentationArticle
public Person getAuthor()
PresentationArticle
getAuthor
in interface PresentationArticle
public int getAuthorsCount()
PresentationArticle
getAuthorsCount
in interface PresentationArticle
public Section[] getSections()
PresentationArticle
getSections
in interface PresentationArticle
Section
this content item belongs to.public int getPersonsCount()
PresentationArticle
getPersonsCount
in interface PresentationArticle
public int getArticlesCount()
PresentationArticle
getArticlesCount
in interface PresentationArticle
public int getArticlesCount(Set pArticleTypes)
PresentationArticle
getArticlesCount
in interface PresentationArticle
pArticleTypes
- this is a Set of named content item types to get the count from.© 1998- 2021 Escenic AS