public class NullPresentationArticle extends AbstractPresentationArticle
COM_ESCENIC_PRESENTATION_INTERNAL
Constructor and Description |
---|
NullPresentationArticle()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
String |
getActivatedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted String of the activation date.
|
Date |
getActivatedDateAsDate()
Deprecated.
Returns the date this content item was activated.
|
AgreementInfo |
getAgreementInfo()
Deprecated.
Returns this content item's agreement information or
null if the content item has no agreement. |
List<PresentationRelation> |
getAllRelatedObjects()
Deprecated.
|
int |
getAllRelatedObjectsCount()
Deprecated.
|
List |
getArticles()
Deprecated.
Returns all the content items related to this content item.
|
List |
getArticles(Set pArticleTypes)
Deprecated.
Returns all the content items of the specified types that is related to this content item.
|
String |
getArticleTypeName()
Deprecated.
Returns the type of this content item (as defined in the
content-type resource). |
List |
getAuthors()
Deprecated.
Returns all the authors of this content item.
|
String |
getCreatedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted String of the creation date.
|
Date |
getCreatedDateAsDate()
Deprecated.
Returns the date this content item was created.
|
String |
getExpireDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted date of when this content item is due to expire.
|
Date |
getExpireDateAsDate()
Deprecated.
Returns the date on which this content item expired/will expire.
|
String |
getFieldElement(String pKey)
Deprecated.
|
String |
getFieldElementDefaultValue(String pKey)
Deprecated.
Default value of the content item text field.
|
List<String> |
getFieldNames()
Deprecated.
Returns the names of all this content item's fields.
|
Map<String,PresentationProperty<?>> |
getFields()
Deprecated.
Returns all the fields in this content item.
|
String |
getFirstPublishedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted date of when this content item was first published
The date will be formatted using the supplied format and locale.
|
Date |
getFirstPublishedDateAsDate()
Deprecated.
Returns the date on which this content item was first published.
|
IOHashKey |
getHashKey()
Deprecated.
Returns the hash key of this object.
|
Section |
getHomeSection()
Deprecated.
Returns the home section of this content item.
|
int |
getId()
Deprecated.
Returns the id of the presentation object
|
Collection |
getImages()
Deprecated.
|
Map<String,PresentationElement> |
getInlineElements()
Deprecated.
Returns a
Map of all inline elements for this content item. |
String |
getLastModifiedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted date of when this content item was last modified.
|
Date |
getLastModifiedDateAsDate()
Deprecated.
Returns the date on which this content item was last modified.
|
int |
getLayoutId()
Deprecated.
|
Collection |
getLinks()
Deprecated.
|
Collection |
getMedia()
Deprecated.
|
Section |
getOwnerHomeSection()
Deprecated.
Returns the owner home section of this content item.
|
String |
getOwnerUrl()
Deprecated.
Returns the absolute URL of this content item in its owning home section.
|
Collection |
getPersons()
Deprecated.
Returns all the persons related to this content item.
|
boolean |
getPrinted()
Deprecated.
|
int |
getPriority()
Deprecated.
The priority of this content item.
|
List<PresentationPerson> |
getProfilePersons()
Deprecated.
Returns a list of all the persons related to this content item where the relation type is profile.
|
Publication |
getPublication()
Deprecated.
Returns the publication this content item belongs to.
|
int |
getPublicationId()
Deprecated.
Returns the database id of the publication this content item belongs to.
|
String |
getPublishedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted date of when this content item was last published
The date will be formatted using the supplied format and locale.
|
Date |
getPublishedDateAsDate()
Deprecated.
Returns the date on which this content item was last published.
|
Map<String,PresentationElement> |
getRelatedElements()
Deprecated.
Returns a Map from relation type to a
PresentationElement that holds the relations to this object. |
Set<PresentationElement> |
getRelatedElements(Set<String> pContentTypes)
Deprecated.
Returns a Set of related PresentationElements of the given content types.
|
URI |
getRelativeURI()
Deprecated.
Returns the URL of this content item relative to its section.
|
String |
getRelativeUrl()
Deprecated.
Returns the URL of this content item relative to its section.
|
List |
getSectionsList()
Deprecated.
Returns the sections this content item belongs to.
|
Timestamp |
getSortDate()
Deprecated.
|
String |
getSource()
Deprecated.
Returns the name of the external source of an imported content item.
|
String |
getSourceId()
Deprecated.
Returns the id of the external source of an imported content item.
|
String |
getStateChangedDate(String pFormat,
Locale pLocale)
Deprecated.
Returns a formatted date of when this content item's state was updated
The date will be formatted using the supplied format and locale.
|
Date |
getStateChangedDateAsDate()
Deprecated.
Returns the date on which the state of this content item last changed.
|
String |
getStateName()
Deprecated.
Returns the state of this content item.
|
List<PresentationTag> |
getTags()
Deprecated.
Returns a List of presentation tags.
|
String |
getTitle()
Deprecated.
Returns the title of this content item.
|
Topic |
getTopic()
Deprecated.
|
List |
getTopicsList()
Deprecated.
|
String |
getUrl()
Deprecated.
Returns the absolute URL of this content item.
|
boolean |
inSection(int pSectionId)
Deprecated.
Check to see if the content item is in the given section.
|
boolean |
inSection(Section pSection)
Deprecated.
Check to see if the content item is in the given section.
|
boolean |
isAgreementRequired()
Deprecated.
Returns
true if an agreement is required to view this content item,
otherwise false . |
boolean |
isLive()
Deprecated.
Returns
true if this content item is published and active and its home section is published,
otherwise false . |
boolean |
isOwner()
Deprecated.
Returns
true if this content item is in its owning publication, false if
it is a cross-published content item that is being accessed from a foreign publication. |
getActivatedDate, getActivatedDate, getActivatedDate, getArticleId, getArticlesCount, getArticlesCount, getAuthor, getAuthorsCount, getCreatedDate, getCreatedDate, getCreatedDate, getExpireDate, getExpireDate, getExpireDate, getFirstPublishedDate, getFirstPublishedDate, getFirstPublishedDate, getLastModifiedDate, getLastModifiedDate, getLastModifiedDate, getPersonsCount, getPreviewToken, getPublishedDate, getPublishedDate, getPublishedDate, getSections, getStateChangedDate, getStateChangedDate, getStateChangedDate, isPreview
public Date getActivatedDateAsDate()
PresentationArticle
public String getActivatedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getActivatedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getCreatedDateAsDate()
PresentationArticle
public String getCreatedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getCreatedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getExpireDateAsDate()
PresentationArticle
public String getExpireDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getCreatedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getFirstPublishedDateAsDate()
PresentationArticle
public String getFirstPublishedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getFirstPublishedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getLastModifiedDateAsDate()
PresentationArticle
public String getLastModifiedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getLastModifiedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getPublishedDateAsDate()
PresentationArticle
PresentationArticle.getPublishedDate()
public String getPublishedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getPublishedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 Date getStateChangedDateAsDate()
PresentationArticle
public String getStateChangedDate(String pFormat, Locale pLocale)
PresentationArticle
PresentationArticle.getStateChangedDate()
instead.pFormat
- how the date will be formatted. The given string 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
.pLocale
- 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 getArticleTypeName()
PresentationArticle
content-type
resource).public List getAuthors()
PresentationArticle
List
of neo.xredsys.api.Person
.public Section getHomeSection()
PresentationArticle
Section
sectionpublic Section getOwnerHomeSection()
PresentationArticle
public int getLayoutId()
public boolean getPrinted()
public int getPriority()
PresentationArticle
public Publication getPublication()
PresentationArticle
public int getPublicationId()
PresentationArticle
public String getRelativeUrl()
PresentationArticle
article123.ece
.public URI getRelativeURI()
PresentationArticle
article123.ece
.public List getSectionsList()
PresentationArticle
public String getSource()
PresentationArticle
source
together with
PresentationArticle.getSourceId()
uniquely identifies the original source of the content item.public String getSourceId()
PresentationArticle
sourceId
together with
PresentationArticle.getSource()
uniquely identifies the original source of the content item.public String getTitle()
PresentationArticle
public Topic getTopic()
public List getTopicsList()
public String getUrl()
PresentationArticle
public String getOwnerUrl()
PresentationArticle
PresentationArticle.getUrl()
, which returns the content item's URL in its current section.
For a cross-published content item both the section and publication components of the URL will
differ.public boolean isAgreementRequired()
PresentationArticle
true
if an agreement is required to view this content item,
otherwise false
.true
if this content item need an agreement, false
if not.public boolean isLive()
PresentationArticle
true
if this content item is published and active and its home section is published,
otherwise false
.public AgreementInfo getAgreementInfo()
PresentationArticle
null
if the content item has no agreement.public boolean inSection(int pSectionId)
PresentationArticle
pSectionId
- The sectionId to the section we will check.true
if the content item is in the section, false
otherwise.public boolean inSection(Section pSection)
PresentationArticle
pSection
- The section to check.true
if the content item is in the section, false
otherwise.@Deprecated public String getFieldElement(String pKey)
PresentationArticle
pKey
- The text field to get.public List<String> getFieldNames()
PresentationArticle
content-types.xml
, and
in upper case letters.public Map<String,PresentationProperty<?>> getFields()
PresentationArticle
Object
s representing the fields depends upon field type as follows:
Field type | Java Object |
---|---|
BASIC | String |
NUMBER | a subclass of Number |
COMPLEX | Map |
BOOLEAN | Boolean |
ENUMERATION | a String or List of Strings |
URI | URI |
LINK | Link |
DATE | Date |
SCHEDULE | PresentationSchedule |
public String getFieldElementDefaultValue(String pKey)
PresentationArticle
pKey
- The text field to get default value from.public Collection getLinks()
public Collection getImages()
public Collection getMedia()
public Collection getPersons()
PresentationArticle
persons
related to this content itempublic List getArticles()
PresentationArticle
neo.xredsys.presentation.PresentationRelationArticle
public List getArticles(Set pArticleTypes)
PresentationArticle
pArticleTypes
- this is a Set
of the named content item types.neo.xredsys.presentation.PresentationRelationArticle
public List<PresentationRelation> getAllRelatedObjects()
public int getAllRelatedObjectsCount()
public Map<String,PresentationElement> getRelatedElements()
PresentationArticle
PresentationElement
that holds the relations to this object.PresentationElement
that holds the relations to this object.public Set<PresentationElement> getRelatedElements(Set<String> pContentTypes)
PresentationArticle
pContentTypes
- the content types to search forpublic Map<String,PresentationElement> getInlineElements()
PresentationArticle
Map
of all inline elements for this content item. The key of this map represents the ID of the inline
element.Map
of all inline elements for this content item.public String getStateName()
PresentationArticle
public IOHashKey getHashKey()
PresentationObject
public boolean isOwner()
PresentationArticle
true
if this content item is in its owning publication, false
if
it is a cross-published content item that is being accessed from a foreign publication.true
if the current content item is the owner, false
if not.public Timestamp getSortDate()
public int getId()
PresentationObject
public List<PresentationTag> getTags()
PresentationArticle
public List<PresentationPerson> getProfilePersons()
PresentationArticle
© 1998- 2021 Escenic AS