public class ArticleImpl extends IOObjectImpl implements Article
IOAtom.ObjectType
Modifier and Type | Field and Description |
---|---|
protected static String |
CONTENT_SUMMARIES_ELEMENT_NAME
Deprecated.
|
protected int |
homeSectionId
Deprecated.
|
protected static String |
INLINE_CONTENT_SUMMARIES_ELEMENT_NAME
Deprecated.
|
protected neo.xredsys.content.article.Article |
ioArticle
Deprecated.
|
org.apache.log4j.Category |
LOGGER
Deprecated.
|
protected com.google.common.cache.LoadingCache<String,FieldValue> |
mFieldCache
Deprecated.
|
protected gnu.trove.TIntIntHashMap |
mHomeSectionMap
Deprecated.
|
protected Set<PersonSummary> |
mPersonSummaries
Deprecated.
|
protected CacheList |
mSectionsNonVirtual
Deprecated.
|
protected CacheList |
mSectionsWithVirtual
Deprecated.
|
static String |
PERSON_SUMMARIES_ELEMENT_NAME
Deprecated.
|
protected Type |
state
Deprecated.
|
protected Map<String,String> |
strippedTextMap
Deprecated.
|
protected Type |
type
Deprecated.
|
sRefreshObjectBeforeLock
DEFAULT_RELATION_TYPE, HIDDEN_ARTICLE_PRIORITY, INLINE_RELATION_TYPE, MAIN_IN_TOPIC_PRIORITY
ID_INVALID, OBJECTTYPE_AGREEMENTINFO, OBJECTTYPE_ARTICLE, OBJECTTYPE_CATALOG, OBJECTTYPE_CATEGORY, OBJECTTYPE_ENTITY, OBJECTTYPE_FORUM, OBJECTTYPE_LAYOUT, OBJECTTYPE_MAX, OBJECTTYPE_MIN, OBJECTTYPE_PERSON, OBJECTTYPE_POOL, OBJECTTYPE_POSTING, OBJECTTYPE_PRESENTATION_FORUM, OBJECTTYPE_PRESENTATION_POSTING, OBJECTTYPE_PRESENTATION_THREAD, OBJECTTYPE_PROFILE, OBJECTTYPE_PUBLICATION, OBJECTTYPE_SECTION, OBJECTTYPE_THREAD, OBJECTTYPE_TOPIC, OBJECTTYPE_UNKNOWN, OBJECTTYPE_USERGROUP
Constructor and Description |
---|
ArticleImpl()
Deprecated.
|
ArticleImpl(neo.xredsys.content.article.Article value)
Deprecated.
|
ArticleImpl(Article article)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkLoaded()
Deprecated.
|
protected PersonSummary |
createPersonSummary(Person pPerson)
Deprecated.
|
Timestamp |
getActivateDate()
Deprecated.
Retrieves time when this article will be activated on the web.
|
AgreementInfo |
getAgreementInfo()
Deprecated.
Retrieves the agreement that belongs to this article.
|
neo.xredsys.content.type.ArticleType |
getArticleType()
Deprecated.
Retrieves the type of article.
|
Person |
getAuthor()
Deprecated.
Retrieves the author of this article.
|
Person[] |
getAuthors()
Deprecated.
Retrieves the authors of this article.
|
Map |
getCategories()
Deprecated.
returns all categories for all fields of this article.
|
Set |
getCategories(String fieldName)
Deprecated.
returns the categories for the specified field.
|
String |
getChecksum()
Deprecated.
Get the version for this object.
|
int |
getContentId()
Deprecated.
Retrieves the id of the default content (xml) of this article.
|
int |
getContentId(Type contentType)
Deprecated.
Retrieves the id of the specified content.
|
Map<String,List<ContentSummary>> |
getContentSummaries()
Deprecated.
Returns all
content summaries associated with the article. |
List<ContentSummary> |
getContentSummaries(String pRelationType)
Deprecated.
Returns a list of
content summaries associated with the article. |
Timestamp |
getCreationDate()
Deprecated.
Retrieves the date when this article was created.
|
Type |
getDefaultContentType()
Deprecated.
Retrieves the default content type for this article.
|
Map<String,String> |
getElements()
Deprecated.
Retrieves all elements belonging to this article.
|
String |
getElementText(String name)
Deprecated.
Retrieves the element text belonging to the specified element key.
|
Timestamp |
getExpireDate()
Deprecated.
Retrieves the time when this article will expire from the web.
|
FieldValue |
getField(String pKey)
Deprecated.
Returns the field value object that belongs to this key.
|
Object |
getFieldValue(String pKey)
Deprecated.
Retrieve the object that belongs to this key.
|
Timestamp |
getFirstPublished()
Deprecated.
Retrieves the date when this article was first published.
|
Section |
getHomeSection()
Deprecated.
Retrieves the section to which this article belongs.
|
int |
getHomeSectionId()
Deprecated.
Retrieves the id of the section to which this article belongs.
|
protected neo.xredsys.content.article.Article |
getIOArticle()
Deprecated.
|
Type |
getLanguage()
Deprecated.
Retrieves the language of the default (xml) content.
|
Type |
getLanguage(Type contentType)
Deprecated.
Retrieves the language of the specified content.
|
Person |
getLastEditedBy()
Deprecated.
Retrieves the most recent log entriy for the specified article.
|
Timestamp |
getLastModified()
Deprecated.
Retrieves the date when this article was last modified.
|
Layout |
getLayout()
Deprecated.
Retrieves the layout of this article.
|
int |
getLayoutId()
Deprecated.
Retrieves the layout id of this article.
|
Section |
getLocalHomeSection(int pPublicationId)
Deprecated.
Retrieves the article's homesection.
|
Set<Section> |
getLocalHomeSections()
Deprecated.
Retrieves all the local home sections to which this article belongs.
|
String |
getLocalUrl(int pPublicationId)
Deprecated.
Retrieves the local url to this article based on the given publication id.
|
Set<String> |
getLocalUrls(int pPublicationId)
Deprecated.
Retrieves the local urls to this article based on the given publication id.
|
Collection<ArticleLog> |
getLogEntries()
Deprecated.
Retrieves all log entries belonging to the specified article.
|
Type |
getOriginalState()
Deprecated.
Retrieves this article's original state.
|
int |
getOwnerPublicationId()
Deprecated.
This method returns the id of the owner publication
|
Person[] |
getPersonRoleKeepers(Type paType)
Deprecated.
Retrieves persons that have the given role on this article.
|
List<PersonSummary> |
getPersonSummaries()
Deprecated.
Returns all authors, native and foreign, to the content item.
|
Pool[] |
getPools()
Deprecated.
Retrieves all pools that this article is present in.
|
String |
getPreviewToken()
Deprecated.
Generate a token to be used when preview an article.
|
String |
getPreviewUrl()
Deprecated.
Retrieves the preview url of this article.
|
boolean |
getPrinted()
Deprecated.
Checks whether or not this article is printed.
|
int |
getPriority()
Deprecated.
Retrieves the priority of this article.
|
ProtectionDomain |
getProtectionDomain()
Deprecated.
Retrieves the
ProtectionDomain of this object. |
Set<ProtectionDomain> |
getProtectionDomains()
Deprecated.
Retrieves all
ProtectionDomain s of this object |
int[] |
getPublicationIds()
Deprecated.
Retrieves the ids of all publications this article is added to.
|
Timestamp |
getPublishDate()
Deprecated.
Retrieves the time when this article was last published.
|
Article |
getPublishedVariant()
Deprecated.
Returns the published variant
|
ReferenceEntity[] |
getReferenceEntities()
Deprecated.
Retrieves all
ReferenceEntity objects that are related to this article. |
IORelation[] |
getReferredEntities()
Deprecated.
Retrieves all entities that are related to this article.
|
IORelation[] |
getReferredEntities(Type entityType)
Deprecated.
Retrieves all referred entities of the specified type.
|
IORelation[] |
getReferredPersons()
Deprecated.
Retrieves all persons that are related to this article.
|
Article[] |
getRelatedAPIArticles()
Deprecated.
Retrieves all related articles.
|
IORelation[] |
getRelatedArticles()
Deprecated.
Retrieves all related articles.
|
URI |
getRelativeURI()
Deprecated.
Retrieves the relative part of the url.
|
Set<URI> |
getRelativeURIs()
Deprecated.
|
String |
getRelativeUrl()
Deprecated.
Retrieves the relative URL to this article.
|
IORelation[] |
getRoleKeepers()
Deprecated.
Retrieves the role keepers of the article.
|
IORelation[] |
getRoleKeepers(Type roleType)
Deprecated.
Retrieves all persons that have the given role on this article.
|
Section[] |
getSections()
Deprecated.
Retrieves all sections where this article is present.
|
Section[] |
getSections(boolean includeVirtualSections)
Deprecated.
Retrieves all sections where this article is present.
|
String |
getSource()
Deprecated.
Retrieves this article's source.
|
String |
getSourceId()
Deprecated.
Retrieves this article's source id.
|
Type |
getState()
Deprecated.
Retrieves this article's state.
|
Timestamp |
getStateChange()
Deprecated.
Retrieves the date when this article was last changed.
|
String |
getStrippedElementText(String field)
Deprecated.
Retrieves the element text belonging to the specified element key.
|
List<TagRelation> |
getTags()
Deprecated.
Returns an unmodifiable
List of TagRelation 's for this article. |
String |
getTitle()
Deprecated.
Retrieves the default title of this articles xml content.
|
Topic[] |
getTopics()
Deprecated.
Retrieves all topics that this article is added to.
|
IOTransaction |
getTransactionObjectImpl()
Deprecated.
|
Type |
getType()
Deprecated.
Retrieves this article's type.
|
String |
getUrl()
Deprecated.
Retrieves the url to this article.
|
String |
getUUID()
Deprecated.
|
String |
getXMLArticle()
Deprecated.
|
boolean |
has(Tag pTag)
Deprecated.
Returns
true if the given Tag is already added. |
boolean |
inPool(Pool p)
Deprecated.
Checks whether or not this article is in the given pool.
|
boolean |
inSection(int sectionId)
Deprecated.
Checks whether or not this article is in the given section.
|
boolean |
isAgreementRequired()
Deprecated.
Checks whether or not you need an agreement to publish this article.
|
boolean |
isLive()
Deprecated.
Checks if this article is activated on the web or not.
|
boolean |
isLive(Date today)
Deprecated.
Checks if this article is activated on the web or not.
|
boolean |
isLogging()
Deprecated.
Checks whether or not a log entry will be created when this article is modified.
|
boolean |
isPreview()
Deprecated.
Check if this is a preview object.
|
boolean |
isStaged()
Deprecated.
Returns true if this is the staged variant of the article.
|
ContentHandler |
parseField(String name,
ContentHandler pHandler)
Deprecated.
This method will run a field through a sax parser with the provided ContentHandler.
|
void |
refresh()
Deprecated.
|
protected void |
setIOArticle(neo.xredsys.content.article.Article a)
Deprecated.
|
ContentSummary |
toContentSummary()
Deprecated.
Converts this content to a
ContentSummary that can be used to relate other content to this content. |
breakAndLock, compareTo, createTransaction, equals, getDefaultProtectionDomain, getHashKey, getId, getLockKeeper, getObjectType, getValid, hashCode, isLocked, isStillValid, isValid, lock, lock, lock, lock, objectTypeAsString, setId, setOwnerPublicationId, setValid, stringToObjectType, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
breakAndLock, createTransaction, getHashKey, getId, getLockKeeper, getObjectType, isLocked, isValid, lock, lock, lock, lock
protected static final String INLINE_CONTENT_SUMMARIES_ELEMENT_NAME
protected static final String CONTENT_SUMMARIES_ELEMENT_NAME
public static final String PERSON_SUMMARIES_ELEMENT_NAME
public final org.apache.log4j.Category LOGGER
protected neo.xredsys.content.article.Article ioArticle
protected gnu.trove.TIntIntHashMap mHomeSectionMap
protected CacheList mSectionsNonVirtual
protected CacheList mSectionsWithVirtual
protected Set<PersonSummary> mPersonSummaries
protected Type type
protected Type state
protected int homeSectionId
protected com.google.common.cache.LoadingCache<String,FieldValue> mFieldCache
public ArticleImpl(neo.xredsys.content.article.Article value)
public ArticleImpl(Article article)
public ArticleImpl()
public Type getDefaultContentType()
Article
getDefaultContentType
in interface Article
Type
representation of this article's default content typeprotected neo.xredsys.content.article.Article getIOArticle()
protected void setIOArticle(neo.xredsys.content.article.Article a)
public IOTransaction getTransactionObjectImpl()
getTransactionObjectImpl
in class IOObjectImpl
public String getUUID()
getUUID
in class IOObjectImpl
public void refresh() throws PersistentStoreException, NoSuchObjectException
refresh
in interface IOObject
PersistentStoreException
NoSuchObjectException
protected void checkLoaded() throws PersistentStoreException, NoSuchObjectException
public String getChecksum()
IOObject
getChecksum
in interface IOObject
getChecksum
in class IOObjectImpl
public int getOwnerPublicationId()
IOObject
getOwnerPublicationId
in interface IOObject
getOwnerPublicationId
in class IOObjectImpl
public Section getLocalHomeSection(int pPublicationId)
Article
getLocalHomeSection
in interface Article
pPublicationId
- find home section in this publicationpublic int[] getPublicationIds()
Article
getPublicationIds
in interface Article
public Section getHomeSection()
Article
getHomeSection
in interface Article
public Set<Section> getLocalHomeSections()
Article
getLocalHomeSections
in interface Article
public int getHomeSectionId() throws PersistentStoreException, NoSuchObjectException
Article
getHomeSectionId
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Section[] getSections() throws PersistentStoreException, NoSuchObjectException
Article
getSections
in interface Article
Section
s where this article is present.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Section[] getSections(boolean includeVirtualSections)
Article
includeVirtualSections
is set to true.getSections
in interface Article
includeVirtualSections
- if it set to true the virtual sections will
be included; else they are skippedSection
s where this article is present.VirtualSection
public Topic[] getTopics() throws PersistentStoreException, NoSuchObjectException
Article
getTopics
in interface Article
Array
of all topics that this article is added to; an empty array if it is not placed in any topicsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTopic
public boolean inSection(int sectionId) throws PersistentStoreException, NoSuchObjectException
Article
inSection
in interface Article
sectionId
- the id of the section in which to search for this articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Pool[] getPools() throws PersistentStoreException, NoSuchObjectException
Article
getPools
in interface Article
Pool
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existPool
public boolean inPool(Pool p) throws PersistentStoreException
Article
inPool
in interface Article
p
- the pool in which to search for this articlePersistentStoreException
- if an error occurs in the persistence layerpublic IORelation[] getReferredEntities() throws PersistentStoreException, NoSuchObjectException
Article
ReferenceEntity
.getReferredEntities
in interface Article
IORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existReferenceEntity
,
IORelation
public ReferenceEntity[] getReferenceEntities() throws PersistentStoreException, NoSuchObjectException
Article
ReferenceEntity
objects that are related to this article.getReferenceEntities
in interface Article
ReferenceEntity
objectsPersistentStoreException
- if some database error occursNoSuchObjectException
- if referring to an IOObject that does not existReferenceEntity
public IORelation[] getReferredPersons() throws PersistentStoreException, NoSuchObjectException
Article
getReferredPersons
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existPerson
,
ReferenceEntity
,
IORelation
public IORelation[] getReferredEntities(Type entityType) throws PersistentStoreException, NoSuchObjectException
Article
TypeManager.getTypes(neo.xredsys.api.Type.Category)
.getReferredEntities
in interface Article
entityType
- the type of related objects to retrieveIORelation
s of the given typePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic IORelation[] getRelatedArticles() throws PersistentStoreException, NoSuchObjectException
Article
getRelatedArticles
in interface Article
IORelation
arrayPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existIORelation
public Article[] getRelatedAPIArticles() throws PersistentStoreException, NoSuchObjectException
Article
getRelatedAPIArticles
in interface Article
Article
arrayPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic List<ContentSummary> getContentSummaries(String pRelationType)
Article
content summaries
associated with the article.getContentSummaries
in interface Article
pRelationType
- the name of the types of summaries that should be returned. May not be null
.List
of content summaries
. This will never return null
public Map<String,List<ContentSummary>> getContentSummaries()
Article
content summaries
associated with the article.getContentSummaries
in interface Article
Map
of relation types
to lists
of content summaries
. This will never return null
public List<PersonSummary> getPersonSummaries()
Article
getPersonSummaries
in interface Article
List
of PersonSummary
objects
representing native and foreign authors to the content item. Will
never return null
protected PersonSummary createPersonSummary(Person pPerson)
public IORelation[] getRoleKeepers() throws PersistentStoreException, NoSuchObjectException
Article
TypeManager.getTypes(neo.xredsys.api.Type.Category)
. Typical role keepers are:
getRoleKeepers
in interface Article
IORelation
arrayPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTypeManager
public IORelation[] getRoleKeepers(Type roleType) throws PersistentStoreException, NoSuchObjectException
Article
Article.getRoleKeepers()
for details on role keepers.getRoleKeepers
in interface Article
roleType
- the type of role the persons to retrieve should have on this articleIORelation
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTypeManager
public Person[] getPersonRoleKeepers(Type paType) throws PersistentStoreException, NoSuchObjectException
Article
Article.getRoleKeepers()
for details on role keepers.getPersonRoleKeepers
in interface Article
paType
- the role persons must have on this articlePerson
objectsPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existTypeManager
public Layout getLayout() throws PersistentStoreException, NoSuchObjectException
Article
getLayout
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public int getLayoutId() throws PersistentStoreException, NoSuchObjectException
Article
getLayoutId
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existLayout
public Type getType() throws PersistentStoreException, NoSuchObjectException
Article
Article
documentation for details on article types.getType
in interface Article
Type
representation of this article's typePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getStateChange() throws PersistentStoreException, NoSuchObjectException
Article
getStateChange
in interface Article
Timestamp
representation of the time when this article last had it's state changedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getLastModified() throws PersistentStoreException, NoSuchObjectException
Article
getLastModified
in interface Article
Timestamp
representation of the date when this article was last modified.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getCreationDate() throws PersistentStoreException, NoSuchObjectException
Article
getCreationDate
in interface Article
Timestamp
representation of the date when this article was createdPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getFirstPublished() throws PersistentStoreException, NoSuchObjectException
Article
getFirstPublished
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic int getPriority() throws PersistentStoreException, NoSuchObjectException
Article
Article
interface. For example:
getPriority
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic boolean getPrinted() throws PersistentStoreException, NoSuchObjectException
Article
getPrinted
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getActivateDate() throws PersistentStoreException, NoSuchObjectException
Article
getActivateDate
in interface Article
Timestamp
representation of the time when this article will be activated on the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getExpireDate() throws PersistentStoreException, NoSuchObjectException
Article
getExpireDate
in interface Article
Timestamp
representation of the time when this article will expire from the webPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Timestamp getPublishDate() throws PersistentStoreException, NoSuchObjectException
Article
getPublishDate
in interface Article
Timestamp
representation of the time when this article was last publishedPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Type getState() throws PersistentStoreException, NoSuchObjectException
Article
TypeManager.getTypes(neo.xredsys.api.Type.Category)
method.
Typical states are:
getState
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existType
,
TypeManager
public Type getOriginalState() throws PersistentStoreException, NoSuchObjectException
Article
getOriginalState
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getSource() throws PersistentStoreException, NoSuchObjectException
Article
getSource
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getSourceId() throws PersistentStoreException, NoSuchObjectException
Article
getSourceId
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic int getContentId() throws PersistentStoreException, NoSuchObjectException
Article
getContentId
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic int getContentId(Type contentType) throws PersistentStoreException, NoSuchObjectException
Article
getContentId
in interface Article
contentType
- the type of contentPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Type getLanguage() throws PersistentStoreException, NoSuchObjectException
Article
getLanguage
in interface Article
Type
representation of the language of the default (xml) contentPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Type getLanguage(Type contentType) throws PersistentStoreException, NoSuchObjectException
Article
getLanguage
in interface Article
contentType
- the content typeType
representation of the language of the specified (xml) contentPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic ContentHandler parseField(String name, ContentHandler pHandler) throws IOException, SAXException
Article
parseField
in interface Article
name
- The name of the fieldpHandler
- The content handler to use with the sax parserIOException
- if an i/o related exception occurs during parsingSAXException
- if the article field contains invalid xmlpublic String getElementText(String name)
Article
Article.getElements()
for
details on elements.getElementText
in interface Article
name
- the element key to retrieve the text byArticle.getElements()
public Object getFieldValue(String pKey)
Article
getFieldValue
in interface Article
pKey
- the key to findpublic FieldValue getField(String pKey)
Article
null
public String getTitle() throws PersistentStoreException, NoSuchObjectException
Article
getTitle
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Set<String> getLocalUrls(int pPublicationId) throws PersistentStoreException, NoSuchObjectException
Article
getLocalUrls
in interface Article
pPublicationId
- the id of the publication to retrieve the section part of this url fromPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getLocalUrl(int pPublicationId)
Article
getLocalUrl
in interface Article
pPublicationId
- the id of the publication to retrieve the section part of this url frompublic String getUrl() throws PersistentStoreException, NoSuchObjectException
Article
getUrl
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getRelativeUrl()
Article
getRelativeUrl
in interface Article
public URI getRelativeURI()
Article
getRelativeURI
in interface Article
public Set<URI> getRelativeURIs()
Article
getRelativeURIs
in interface Article
Set
of all the relative URI
's of the articleArticle.getRelativeURI()
public String getPreviewUrl() throws PersistentStoreException, NoSuchObjectException
Article
Article.getUrl()
is
the publication part of the returned url. In this case the publication part of the url will be retrieved from
the "publication.previewURL" property in features.properties.getPreviewUrl
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getPreviewToken()
Article
getPreviewToken
in interface Article
public Map<String,String> getElements() throws PersistentStoreException, NoSuchObjectException
Article
All possible elements for this article is defined in articleTypes.xml. See Article
for details on
article types.
getElements
in interface Article
Map
of String
elements belonging to this articlePersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Person getAuthor()
Article
public Person[] getAuthors()
Article
getAuthors
in interface Article
Person
arraypublic neo.xredsys.content.type.ArticleType getArticleType() throws PersistentStoreException, NoSuchObjectException
Article
Article
for details on article types.getArticleType
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic String getXMLArticle() throws PersistentStoreException, NoSuchObjectException
public boolean isLive() throws PersistentStoreException, NoSuchObjectException
Article
isLive
in interface Article
PersistentStoreException
NoSuchObjectException
public boolean isLive(Date today) throws PersistentStoreException, NoSuchObjectException
Article
isLive
in interface Article
today
- is the article live at given date?PersistentStoreException
NoSuchObjectException
public boolean isAgreementRequired() throws PersistentStoreException, NoSuchObjectException
Article
isAgreementRequired
in interface Article
PersistentStoreException
NoSuchObjectException
public AgreementInfo getAgreementInfo() throws PersistentStoreException, NoSuchObjectException
Article
getAgreementInfo
in interface Article
PersistentStoreException
NoSuchObjectException
AgreementInfo
public Collection<ArticleLog> getLogEntries() throws PersistentStoreException, NoSuchObjectException
Article
getLogEntries
in interface Article
Collection
of ArticleLog
objectsPersistentStoreException
- if some database error occursNoSuchObjectException
- if referring to an object that does not existArticleLog
public Person getLastEditedBy() throws PersistentStoreException, NoSuchObjectException
Article
getLastEditedBy
in interface Article
Collection
of ArticleLog
objectsPersistentStoreException
- if some database error occursNoSuchObjectException
- if referring to an object that does not existArticleLog
public boolean isPreview()
IOObject
isPreview
in interface IOObject
isPreview
in class IOObjectImpl
public Map getCategories()
getCategories
in interface Article
List
of category ids represented as Integers
;
returns an empty map if no categories are registeredpublic Set getCategories(String fieldName)
getCategories
in interface Article
fieldName
- the field to retrieve categories fromSet
of category ids represented as Integers
public String getStrippedElementText(String field)
Article
Article.getElements()
for
details on elements.The text will be stripped for all tags before returned.getStrippedElementText
in interface Article
field
- the element key to retrieve the text byArticle.getElements()
public boolean isLogging()
Article
true
.public ProtectionDomain getProtectionDomain() throws PersistentStoreException, NoSuchObjectException
IOObject
ProtectionDomain
of this object.getProtectionDomain
in interface IOObject
getProtectionDomain
in class IOObjectImpl
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Set<ProtectionDomain> getProtectionDomains()
IOObject
ProtectionDomain
s of this objectgetProtectionDomains
in interface IOObject
getProtectionDomains
in class IOObjectImpl
public ContentSummary toContentSummary()
Article
ContentSummary
that can be used to relate other content to this content.toContentSummary
in interface Article
Article.getContentSummaries(String)
,
ArticleTransaction.setContentSummaries(String, List)
,
ArticleTransaction.addContentSummary(String, ContentSummary)
public boolean isStaged()
Article
public Article getPublishedVariant() throws NoSuchObjectException, PersistentStoreException
Article
getPublishedVariant
in interface Article
NoSuchObjectException
- if a published variant does not existPersistentStoreException
- if retrieving the variant failspublic List<TagRelation> getTags()
Article
getTags
in interface Article
List
of TagRelation
's© 1998- 2018 Stibo DX