IOAtom.ObjectType
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 |
---|
WritableArticleVariant(Article pArticle,
Article pVariant) |
Modifier and Type | Method and Description |
---|---|
IOTransaction |
breakAndLock(IOLockKeeper keeper)
Brutally aquire lock on this object, even if it is locked by someone else
|
IOTransaction |
createTransaction()
This method returns a new IOTransaction object of the correct
type, for use by the LockManager only.
|
Timestamp |
getActivateDate()
Retrieves time when this article will be activated on the web.
|
AgreementInfo |
getAgreementInfo()
Retrieves the agreement that belongs to this article.
|
neo.xredsys.content.type.ArticleType |
getArticleType()
Retrieves the type of article.
|
Person |
getAuthor()
Retrieves the author of this article.
|
Person[] |
getAuthors()
Retrieves the authors of this article.
|
Map |
getCategories()
Retrieves all categories that are related to this article.
|
Set |
getCategories(String fieldName)
Retrieves all categories that are related to this article and the given field.
|
String |
getChecksum()
Get the version for this object.
|
int |
getContentId()
Retrieves the id of the default content (xml) of this article.
|
int |
getContentId(Type pContentType)
Retrieves the id of the specified content.
|
Map<String,List<ContentSummary>> |
getContentSummaries()
Returns all
content summaries associated with the article. |
List<ContentSummary> |
getContentSummaries(String pRelationType)
Returns a list of
content summaries associated with the article. |
Timestamp |
getCreationDate()
Retrieves the date when this article was created.
|
Type |
getDefaultContentType()
Retrieves the default content type for this article.
|
Map<String,String> |
getElements()
Retrieves all elements belonging to this article.
|
String |
getElementText(String key)
Retrieves the element text belonging to the specified element key.
|
Timestamp |
getExpireDate()
Retrieves the time when this article will expire from the web.
|
FieldValue |
getField(String pKey)
Returns the field value object that belongs to this key.
|
Object |
getFieldValue(String pKey)
Retrieve the object that belongs to this key.
|
Timestamp |
getFirstPublished()
Retrieves the date when this article was first published.
|
IOHashKey |
getHashKey()
Get a hash key for this object.
|
Section |
getHomeSection()
Retrieves the section to which this article belongs.
|
int |
getHomeSectionId()
Retrieves the id of the section to which this article belongs.
|
int |
getId()
Get the id of this object
|
Type |
getLanguage()
Retrieves the language of the default (xml) content.
|
Type |
getLanguage(Type pContentType)
Retrieves the language of the specified content.
|
Person |
getLastEditedBy()
Retrieves the most recent log entriy for the specified article.
|
Timestamp |
getLastModified()
Retrieves the date when this article was last modified.
|
Layout |
getLayout()
Retrieves the layout of this article.
|
int |
getLayoutId()
Retrieves the layout id of this article.
|
Section |
getLocalHomeSection(int pPublicationId)
Retrieves the article's homesection.
|
Set<Section> |
getLocalHomeSections()
Retrieves all the local home sections to which this article belongs.
|
String |
getLocalUrl(int pPublicationId)
Retrieves the local url to this article based on the given publication id.
|
Set<String> |
getLocalUrls(int pPublicationId)
Retrieves the local urls to this article based on the given publication id.
|
IOLockKeeper |
getLockKeeper()
Get a reference to the IOLockKeeper that is currently locking this
object.
|
Collection<ArticleLog> |
getLogEntries()
Retrieves all log entries belonging to the specified article.
|
int |
getObjectType()
Get the object type.
|
Type |
getOriginalState()
Retrieves this article's original state.
|
int |
getOwnerPublicationId()
This method returns the id of the owner publication
|
Person[] |
getPersonRoleKeepers(Type paType)
Retrieves persons that have the given role on this article.
|
List<PersonSummary> |
getPersonSummaries()
Returns all authors, native and foreign, to the content item.
|
Pool[] |
getPools()
Retrieves all pools that this article is present in.
|
String |
getPreviewToken()
Generate a token to be used when preview an article.
|
String |
getPreviewUrl()
Retrieves the preview url of this article.
|
boolean |
getPrinted()
Checks whether or not this article is printed.
|
int |
getPriority()
Retrieves the priority of this article.
|
ProtectionDomain |
getProtectionDomain()
Retrieves the
ProtectionDomain of this object. |
Set<ProtectionDomain> |
getProtectionDomains()
Retrieves all
ProtectionDomain s of this object |
int[] |
getPublicationIds()
Retrieves the ids of all publications this article is added to.
|
Timestamp |
getPublishDate()
Retrieves the time when this article was last published.
|
Article |
getPublishedVariant()
Returns the published variant
|
ReferenceEntity[] |
getReferenceEntities()
Retrieves all
ReferenceEntity objects that are related to this article. |
IORelation[] |
getReferredEntities()
Retrieves all entities that are related to this article.
|
IORelation[] |
getReferredEntities(Type pEntityType)
Retrieves all referred entities of the specified type.
|
IORelation[] |
getReferredPersons()
Retrieves all persons that are related to this article.
|
Article[] |
getRelatedAPIArticles()
Retrieves all related articles.
|
IORelation[] |
getRelatedArticles()
Retrieves all related articles.
|
URI |
getRelativeURI()
Retrieves the relative part of the url.
|
Set<URI> |
getRelativeURIs()
|
String |
getRelativeUrl()
Retrieves the relative URL to this article.
|
IORelation[] |
getRoleKeepers()
Retrieves the role keepers of the article.
|
IORelation[] |
getRoleKeepers(Type roleType)
Retrieves all persons that have the given role on this article.
|
Section[] |
getSections()
Retrieves all sections where this article is present.
|
Section[] |
getSections(boolean includeVirtualSections)
Retrieves all sections where this article is present.
|
String |
getSource()
Retrieves this article's source.
|
String |
getSourceId()
Retrieves this article's source id.
|
Type |
getState()
Retrieves this article's state.
|
Timestamp |
getStateChange()
Retrieves the date when this article was last changed.
|
String |
getStrippedElementText(String key)
Retrieves the element text belonging to the specified element key.
|
List<TagRelation> |
getTags()
Returns an unmodifiable
List of TagRelation 's for this article. |
String |
getTitle()
Retrieves the default title of this articles xml content.
|
Topic[] |
getTopics()
Retrieves all topics that this article is added to.
|
Type |
getType()
Retrieves this article's type.
|
String |
getUrl()
Retrieves the url to this article.
|
boolean |
has(Tag pTag)
Returns
true if the given Tag is already added. |
boolean |
inPool(Pool pool)
Checks whether or not this article is in the given pool.
|
boolean |
inSection(int sectionId)
Checks whether or not this article is in the given section.
|
boolean |
isAgreementRequired()
Checks whether or not you need an agreement to publish this article.
|
boolean |
isLive()
Checks if this article is activated on the web or not.
|
boolean |
isLive(Date pDate)
Checks if this article is activated on the web or not.
|
boolean |
isLocked()
Check if this object is locked
|
boolean |
isLogging()
Checks whether or not a log entry will be created when this article is modified.
|
boolean |
isPreview()
Check if this is a preview object.
|
boolean |
isStaged()
Returns true if this is the staged variant of the article.
|
boolean |
isValid()
An object is valid if its id is not ID_INVALID
|
IOTransaction |
lock()
Lock this object, and disregard any notifications with regard to the state of the lock.
|
IOTransaction |
lock(boolean pReloadIfNeeded)
Lock this object.
|
IOTransaction |
lock(boolean pReloadIfNeeded,
IOLockKeeper keeper)
Lock this object.
|
IOTransaction |
lock(IOLockKeeper keeper)
Lock this object, specifying the object that is to be designated the "owner".
|
ContentHandler |
parseField(String pKey,
ContentHandler pHandler)
This method will run a field through a sax parser with the provided ContentHandler.
|
void |
refresh() |
ContentSummary |
toContentSummary()
Converts this content to a
ContentSummary that can be used to relate other content to this content. |
public IOLockKeeper getLockKeeper()
IOObject
public IOTransaction lock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException
IOObject
keeper
- Register this lock keeper with the lock.IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic IOTransaction lock() throws IllegalArgumentException, IllegalOperationException
IOObject
IllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic boolean isLocked()
IOObject
public IOTransaction breakAndLock(IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException
IOObject
keeper
- Register this lock keeper with the lock.IllegalArgumentException
IllegalOperationException
public IOTransaction lock(boolean pReloadIfNeeded) throws IllegalArgumentException, IllegalOperationException
IOObject
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failspublic IOTransaction lock(boolean pReloadIfNeeded, IOLockKeeper keeper) throws IllegalArgumentException, IllegalOperationException, IllegalStateException
IOObject
pReloadIfNeeded
- if true, stale objects will be reloaded from the database. If false, the method will throw an IllegalStateException
if the object is stale. Non-stale objects will remain unchangedkeeper
- the lock keeperIllegalArgumentException
- if locking the object failsIllegalOperationException
- if locking the object failsIllegalStateException
- if the object is stale and pReloadIfNeeded==falsepublic IOTransaction createTransaction()
IOObject
IOObject.lock()
or
IOObject.lock(neo.xredsys.api.IOLockKeeper)
.public String getChecksum()
IOObject
getChecksum
in interface IOObject
public int getId()
IOObject
public int getObjectType()
IOObject
getObjectType
in interface IOObject
public IOHashKey getHashKey()
IOObject
getHashKey
in interface IOObject
public boolean isValid()
IOObject
public int getOwnerPublicationId()
IOObject
getOwnerPublicationId
in interface IOObject
public void refresh() throws PersistentStoreException, NoSuchObjectException
refresh
in interface IOObject
PersistentStoreException
NoSuchObjectException
public boolean isPreview()
IOObject
public ProtectionDomain getProtectionDomain()
IOObject
ProtectionDomain
of this object.getProtectionDomain
in interface IOObject
public Set<ProtectionDomain> getProtectionDomains()
IOObject
ProtectionDomain
s of this objectgetProtectionDomains
in interface IOObject
public Type getDefaultContentType()
Article
getDefaultContentType
in interface Article
Type
representation of this article's default content typepublic int[] getPublicationIds() throws PersistentStoreException
Article
getPublicationIds
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerpublic Section getLocalHomeSection(int pPublicationId) throws PersistentStoreException, NoSuchObjectException
Article
getLocalHomeSection
in interface Article
pPublicationId
- find home section in this publicationPersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Section getHomeSection() throws PersistentStoreException, NoSuchObjectException
Article
getHomeSection
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic Set<Section> getLocalHomeSections() throws PersistentStoreException, NoSuchObjectException
Article
getLocalHomeSections
in interface Article
PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existpublic 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) throws PersistentStoreException, NoSuchObjectException
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.PersistentStoreException
- if an error occurs in the persistence layerNoSuchObjectException
- if trying to retrieve an object that does not existVirtualSection
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 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 pool) throws PersistentStoreException
Article
inPool
in interface Article
pool
- 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 pEntityType) throws PersistentStoreException, NoSuchObjectException
Article
TypeManager.getTypes(neo.xredsys.api.Type.Category)
.getReferredEntities
in interface Article
pEntityType
- 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 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
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 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 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 pContentType) throws PersistentStoreException, NoSuchObjectException
Article
getContentId
in interface Article
pContentType
- 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 pContentType) throws PersistentStoreException, NoSuchObjectException
Article
getLanguage
in interface Article
pContentType
- 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 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 String getLocalUrl(int pPublicationId) throws PersistentStoreException, NoSuchObjectException
Article
getLocalUrl
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 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 String getElementText(String key)
Article
Article.getElements()
for
details on elements.getElementText
in interface Article
key
- 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 ContentHandler parseField(String pKey, ContentHandler pHandler) throws IOException, SAXException
Article
parseField
in interface Article
pKey
- 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 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 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 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 boolean isLive()
Article
public boolean isLive(Date pDate)
Article
public boolean isAgreementRequired()
Article
isAgreementRequired
in interface Article
public AgreementInfo getAgreementInfo()
Article
getAgreementInfo
in interface Article
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 Map getCategories()
Article
getCategories
in interface Article
List
of category ids represented as Integers
;
returns an empty map if no categories are registeredpublic Set getCategories(String fieldName)
Article
getCategories
in interface Article
fieldName
- the field to retrieve categories fromSet
of category ids represented as Integers
public String getStrippedElementText(String key)
Article
Article.getElements()
for
details on elements.The text will be stripped for all tags before returned.getStrippedElementText
in interface Article
key
- the element key to retrieve the text byArticle.getElements()
public boolean isLogging()
Article
true
.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() throws PersistentStoreException
Article
getTags
in interface Article
List
of TagRelation
'sPersistentStoreException
- if fetching the tags failespublic boolean has(Tag pTag)
Article
true
if the given Tag
is already added. Otherwise falsepublic 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 exist© 1998- 2021 Escenic AS