com.solidstategroup.cms
Class Article

java.lang.Object
  extended by com.solidstategroup.cms.Article
All Implemented Interfaces:
java.lang.Comparable
Direct Known Subclasses:
Product

public class Article
extends java.lang.Object
implements java.lang.Comparable

Implements an Article


Field Summary
static int DEFAULT_TEMPLATE
           
protected  float searchScore
           
static int STORE_CHECK_IN
           
static int STORE_CHECK_OUT
           
static int STORE_DELETE_ARTICLE
           
static int STORE_DELETE_SECTION
           
static int STORE_NOT_GIVEN
           
static int STORE_PUBLISH
           
static int STORE_REORDER_ARTICLES
           
static int STORE_REORDER_SECTIONS
           
static int STORE_RESTORE_PREVIOUS_VERSION
           
static int STORE_UNPUBLISH
           
static int STORE_USER_EDIT
           
 
Constructor Summary
Article()
           
Article(int newArticleId, java.lang.String newTitle, int newRootArticleTypeId, java.util.Date createdOn, java.util.Date lastModified, int lastModifiedBy, int lockedBy, boolean newpublish, int newpriority, int rootArticleId, boolean includeInSearch, boolean adhereToPublishDates, java.lang.String articleTemplateId, java.lang.String templateLocation, java.lang.String templateTitle, java.lang.String rssDescription, java.lang.String metaDataDescription, java.lang.String metaDataKeywords, java.lang.String metaDataAuthor, java.lang.String metaDataTitle, boolean inheritMetaDataDescription, boolean inheritMetaDataKeywords, boolean inheritMetaDataAuthor, boolean inheritMetaDataTitle, int sessionType)
           
 
Method Summary
 boolean checkIn(CMSUser checkingInUser)
           
 boolean checkOut(CMSUser checkingInUser)
           
 void clear()
          Removes all data from the Article.
 int compareTo(java.lang.Object a)
          Used for sorting a Vector of Articles Natural sorting is by "created date" in reverse order, ie.
 boolean containsTag(int rootTagId)
           
 boolean delete(int uniqueId)
          Deletes the Article
 boolean deleteChunk(int chunkId)
          Deletes a specific Chunk from within the Article
 boolean destroy(boolean deleteHistory)
          Removes all versions of this article, all associate chunks and all associated assets.
 Chunks execute()
           
 Chunks execute(boolean isPreview)
           
 Chunks execute(boolean isPreview, java.sql.Connection conn)
          Retrieves the Article from the database
 Chunks execute(java.sql.Connection conn)
           
 Chunks execute(int articleId)
          Retreives the Article from the database
 void executeTags()
           
 void executeTags(java.sql.Connection conn)
           
 java.lang.String generateEditTag(javax.servlet.http.HttpServletRequest thisRequest)
           
 Assets getArticleAssets()
          Gets all the Assets within an article (in logical, Chunk order)
 Chunks getArticleChunks()
           
 int getArticleId()
           
 ArticleTemplate getArticleTemplate()
           
 int getArticleTemplateId()
           
 ArticleType getArticleType()
           
 int getArticleTypeId()
           
 java.lang.String getAssetData(java.lang.String thisAssetDescription)
          Returns the data associated with the Asset
 java.util.Date getCreatedDate()
           
 Tag getFirstChildOfParentTag(int parentRootTagId)
          Works well if you have a collection of tags under a parent and generatlly only one will be tagged
 CMSUser getLastModifiedBy()
           
 java.util.Date getLastModifiedDate()
           
 CMSUser getLockedBy()
           
 java.lang.String getMetaDataAuthor()
           
 java.lang.String getMetaDataDescription()
           
 java.lang.String getMetaDataKeywords()
           
 java.lang.String getMetaDataTitle()
           
 int getNextAvailablePriority(java.sql.Connection conn)
          Returns the priority number of the next available chunk in the article
 int getNextPageNumber()
          Returns The next page number of this article.
 int getNumberOfPages()
          Returns the total number of pages that this article contains.
 int getPageNumber()
           
 Chunks getPageOfChunks(int pageNumber)
          Retrieves a 'page' of chunks from the article.
 int getPreviousPageNumber()
          Returns the previous page number of this article.
 int getPriority()
           
 java.util.Date getPublishFromDate()
           
 java.util.Date getPublishToDate()
           
 ArticleRating getRating()
           
 java.lang.String getReasonForStore()
           
 int getReasonForStoreId()
           
 javax.servlet.http.HttpServletRequest getRequest()
           
 int getRootArticleId()
           
 int getRootArticleTypeId()
           
 java.lang.String getRootTagsIdAsString()
          Returns a comma separated list of rootTagIds
 java.lang.String getRssDescription()
           
 float getSearchScore()
           
 java.lang.String getSearchScore(int numberOfSignificantDigits)
           
 int getSessionType()
           
 Tag getTag(int rootTagId)
           
 java.util.Vector getTags()
           
 java.util.Vector getTags(int parentRootTagId)
          returns a Vector of all the tags a article has until this parent
 java.lang.String getTitle()
           
 java.lang.String getURL()
          Returns the complete URL for this article
 boolean hasTag(int rootTagId)
           
 boolean isAdhereToPublishDates()
           
 boolean isCheckNewChunkAssets()
           
 boolean isDeleted()
           
 boolean isIncludeInSearch()
           
 boolean isInheritMetaDataAuthor()
           
 boolean isInheritMetaDataDescription()
           
 boolean isInheritMetaDataKeywords()
           
 boolean isInheritMetaDataTitle()
           
 boolean isLocked()
           
 boolean isLockedTransactional(java.sql.Connection conn)
          Checks to see if the current Article is stale.
 boolean isPublish()
           
 boolean isRipeForDateOnlyPublishing(java.util.Date baseDate)
           
 boolean isStale()
          Checks to see if the current Article is stale.
 boolean isStale(java.sql.Connection conn)
           
 void lockArticle(CMSUser thisUser, java.sql.Connection conn)
          Lock the article from being edited by another user
 java.lang.String render()
           
 java.lang.String render(Chunk chunkToRender)
           
 java.lang.String render(int renderType)
          Generates the HTML for the every Asset in every Chunk in the Article up to the next page break
 java.lang.String renderPlainText()
          Renders the entire article in plain text.
 java.lang.String renderPlainText(int numberOfCharactersToRender)
          Renders the article in plain text.
 java.lang.String renderPlainText(int numberOfCharactersToRender, int characterOffset)
          Renders the article in plain text.
 java.lang.String renderPlainText(java.lang.String focusOnWord, int numberOfCharsPadding)
          Renders a fragment of the article in plain text, centered on the first instance of focus word encountered.
 java.lang.String renderSearch()
           
 java.lang.String renderSearchResults(java.lang.String searchTerms, int numberOfCharsPadding)
          Displays the results of a search, focused on the first search term in the (space seperated) searchTerms String.
 java.lang.String renderSearchResults(java.lang.String searchTerms, int numberOfCharsPadding, java.lang.String prependString, java.lang.String appendString)
          Displays the results of a search, focused on the first search term in the (space seperated) searchTerms String.
 java.lang.String renderSummary()
           
 void requestCheckedOutArticle(CMSUser requestingUser)
          Sends an email to the user locking the current Article, requesting it to be checked in
 void setAdhereToPublishDates(boolean adhereToPublishDates)
           
 void setArticleChunks(Chunks articleChunks)
           
 void setArticleId(int articleId)
           
 void setArticleTemplate(ArticleTemplate articleTemplate)
           
 void setArticleTemplateId(int articleTemplateId)
           
 void setArticleType(ArticleType articleType)
           
 void setArticleTypeId(int articleTypeId)
           
 void setCheckNewChunkAssets(boolean checkNewChunkAssets)
           
 void setCreatedDate(java.util.Date createdDate)
           
 void setCreatedDateWithString(java.lang.String createdDate, java.lang.String createdTime)
           
 void setDeleted(boolean deleted)
           
 void setIncludeInSearch(boolean includeInSearch)
           
 void setInheritMetaDataAuthor(boolean inheritMetaDataAuthor)
           
 void setInheritMetaDataDescription(boolean inheritMetaDataDescription)
           
 void setInheritMetaDataKeywords(boolean inheritMetaDataKeywords)
           
 void setInheritMetaDataTitle(boolean inheritMetaDataTitle)
           
 void setLastModifiedBy(CMSUser lastModifiedBy)
           
 void setLastModifiedDate(java.util.Date lastModifiedDate)
           
 void setLockedBy(CMSUser lockedBy)
           
 void setMetaDataAuthor(java.lang.String metaDataAuthor)
           
 void setMetaDataDescription(java.lang.String metaDataDescription)
           
 void setMetaDataKeywords(java.lang.String metaDataKeywords)
           
 void setMetaDataTitle(java.lang.String metaDataTitle)
           
 void setPageNumber(int pageNumber)
           
 void setPriority(int priority)
           
 void setPublish(boolean publish)
           
 void setPublishFromDate(java.util.Date publishFromDate)
           
 void setPublishFromDateWithString(java.lang.String publishFromDate, java.lang.String publishFromTime)
           
 void setPublishToDate(java.util.Date publishToDate)
           
 void setPublishToDateWithString(java.lang.String publishToDate, java.lang.String publishToTime)
           
 void setRating(ArticleRating rating)
           
 void setReasonForStore(java.lang.String reasonForStore)
           
 void setReasonForStoreId(int reasonForStoreId)
           
 void setRequest(javax.servlet.http.HttpServletRequest request)
           
 void setRootArticleId(int rootArticleId)
           
 void setRootArticleTypeId(int rootArticleTypeId)
           
 void setRssDescription(java.lang.String rssDescription)
           
 void setSessionType(int sessionType)
           
 void setTags(java.util.Vector tags)
           
 void setTitle(java.lang.String thistitle)
           
 boolean store()
          Stores the Article in the database
 boolean store(boolean isCheckOut)
           
 boolean store(boolean isCheckOut, java.sql.Connection conn)
          Stores the Article in the database
 java.lang.String toString()
           
 void unlockArticle(java.sql.Connection conn)
          Unlocks the current Article
 Asset updateAssetData(Asset newAsset, int chunkId)
          Stores an updated asset in the article
 Asset updateAssetData(Asset newAsset, java.lang.String data, int chunkId)
           
 boolean updateTags(java.sql.Connection conn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

STORE_USER_EDIT

public static final int STORE_USER_EDIT
See Also:
Constant Field Values

STORE_PUBLISH

public static final int STORE_PUBLISH
See Also:
Constant Field Values

STORE_UNPUBLISH

public static final int STORE_UNPUBLISH
See Also:
Constant Field Values

STORE_CHECK_IN

public static final int STORE_CHECK_IN
See Also:
Constant Field Values

STORE_CHECK_OUT

public static final int STORE_CHECK_OUT
See Also:
Constant Field Values

STORE_DELETE_ARTICLE

public static final int STORE_DELETE_ARTICLE
See Also:
Constant Field Values

STORE_REORDER_SECTIONS

public static final int STORE_REORDER_SECTIONS
See Also:
Constant Field Values

STORE_REORDER_ARTICLES

public static final int STORE_REORDER_ARTICLES
See Also:
Constant Field Values

STORE_DELETE_SECTION

public static final int STORE_DELETE_SECTION
See Also:
Constant Field Values

STORE_RESTORE_PREVIOUS_VERSION

public static final int STORE_RESTORE_PREVIOUS_VERSION
See Also:
Constant Field Values

STORE_NOT_GIVEN

public static final int STORE_NOT_GIVEN
See Also:
Constant Field Values

DEFAULT_TEMPLATE

public static final int DEFAULT_TEMPLATE
See Also:
Constant Field Values

searchScore

protected float searchScore
Constructor Detail

Article

public Article()

Article

public Article(int newArticleId,
               java.lang.String newTitle,
               int newRootArticleTypeId,
               java.util.Date createdOn,
               java.util.Date lastModified,
               int lastModifiedBy,
               int lockedBy,
               boolean newpublish,
               int newpriority,
               int rootArticleId,
               boolean includeInSearch,
               boolean adhereToPublishDates,
               java.lang.String articleTemplateId,
               java.lang.String templateLocation,
               java.lang.String templateTitle,
               java.lang.String rssDescription,
               java.lang.String metaDataDescription,
               java.lang.String metaDataKeywords,
               java.lang.String metaDataAuthor,
               java.lang.String metaDataTitle,
               boolean inheritMetaDataDescription,
               boolean inheritMetaDataKeywords,
               boolean inheritMetaDataAuthor,
               boolean inheritMetaDataTitle,
               int sessionType)
Method Detail

compareTo

public int compareTo(java.lang.Object a)
Used for sorting a Vector of Articles Natural sorting is by "created date" in reverse order, ie. newest created first.

Specified by:
compareTo in interface java.lang.Comparable

clear

public void clear()
Removes all data from the Article.


executeTags

public void executeTags()

executeTags

public void executeTags(java.sql.Connection conn)

updateTags

public boolean updateTags(java.sql.Connection conn)

containsTag

public boolean containsTag(int rootTagId)

render

public java.lang.String render(int renderType)
Generates the HTML for the every Asset in every Chunk in the Article up to the next page break

Returns:
The rendered HTML

render

public java.lang.String render()

renderSummary

public java.lang.String renderSummary()

renderSearch

public java.lang.String renderSearch()

render

public java.lang.String render(Chunk chunkToRender)

renderPlainText

public java.lang.String renderPlainText(int numberOfCharactersToRender,
                                        int characterOffset)
Renders the article in plain text. Useful for search results. This should be used with caution, as it can affect the formatting of the page.

Parameters:
numberOfCharactersToRender - The number of characters to render from the beginning of the article
characterOffset - the number of characters to ignore at the start of the article
Returns:
The rendered HTML in plain text

renderPlainText

public java.lang.String renderPlainText(int numberOfCharactersToRender)
Renders the article in plain text. Useful for search results. This should be used with caution, as it can affect the formatting of the page.

Parameters:
numberOfCharactersToRender - The number of characters to render from the beginning of the article
Returns:
The rendered HTML in plain text

renderPlainText

public java.lang.String renderPlainText()
Renders the entire article in plain text. This should be used with caution, as it can affect the formatting of the page.

Returns:
The rendered HTML in plain text

renderPlainText

public java.lang.String renderPlainText(java.lang.String focusOnWord,
                                        int numberOfCharsPadding)
Renders a fragment of the article in plain text, centered on the first instance of focus word encountered.

Parameters:
focusOnWord - The word to center on (case of word is ignored)
numberOfCharsPadding - The number of characters to render each side of the focus word
Returns:
The plain text fragment

renderSearchResults

public java.lang.String renderSearchResults(java.lang.String searchTerms,
                                            int numberOfCharsPadding,
                                            java.lang.String prependString,
                                            java.lang.String appendString)
Displays the results of a search, focused on the first search term in the (space seperated) searchTerms String. Includes padding around the first term, and enables control of String to go before and after any

Parameters:
searchTerms -
numberOfCharsPadding -
prependString -
appendString -

renderSearchResults

public java.lang.String renderSearchResults(java.lang.String searchTerms,
                                            int numberOfCharsPadding)
Displays the results of a search, focused on the first search term in the (space seperated) searchTerms String. Includes padding around the first term, and adds bold HTML tabs () around the searchTerms.

Parameters:
searchTerms -
numberOfCharsPadding -

execute

public Chunks execute(int articleId)
Retreives the Article from the database

Parameters:
articleId - The desired ID of the Article to retrieve
Returns:
The Chunks of the populated Article

execute

public Chunks execute()

execute

public Chunks execute(java.sql.Connection conn)

execute

public Chunks execute(boolean isPreview)

execute

public Chunks execute(boolean isPreview,
                      java.sql.Connection conn)
Retrieves the Article from the database

Returns:
The Chunks of the populated Article

updateAssetData

public Asset updateAssetData(Asset newAsset,
                             java.lang.String data,
                             int chunkId)
Parameters:
newAsset - The original asset that is to be updated
data - The new piece of data
Returns:
The updated Asset

getPageOfChunks

public Chunks getPageOfChunks(int pageNumber)
Retrieves a 'page' of chunks from the article. Chunks can include a page break boolean, and it is this boolean that defines where the page breaks are for the Article.

Parameters:
pageNumber - The current page number to retrieve
Returns:
The chunks for that page

getNumberOfPages

public int getNumberOfPages()
Returns the total number of pages that this article contains.

Returns:
the Total number of pages

getNextPageNumber

public int getNextPageNumber()
Returns The next page number of this article.

Returns:
The next logical page number.

getPreviousPageNumber

public int getPreviousPageNumber()
Returns the previous page number of this article.

Returns:
The previous logical page number.

updateAssetData

public Asset updateAssetData(Asset newAsset,
                             int chunkId)
Stores an updated asset in the article

Parameters:
newAsset - The updated asset
chunkId - the Chunk ID that this Asset belongs to
Returns:
The updated Asset

store

public boolean store()
Stores the Article in the database

Returns:
The success/failure of the action

store

public boolean store(boolean isCheckOut)

store

public boolean store(boolean isCheckOut,
                     java.sql.Connection conn)
Stores the Article in the database

Parameters:
isCheckOut - Boolean stating whether we are simply checking out this Article
Returns:
The success/failure of the action

deleteChunk

public boolean deleteChunk(int chunkId)
Deletes a specific Chunk from within the Article

Parameters:
chunkId - The Chunk ID to be deleted
Returns:
The success/failure of the action

delete

public boolean delete(int uniqueId)
Deletes the Article

Parameters:
uniqueId - The ID of the Article to be deleted
Returns:
The success/failure of the action

destroy

public boolean destroy(boolean deleteHistory)
Removes all versions of this article, all associate chunks and all associated assets. it will try and destroy but do we worry if not?. we get foriegn key contraint problems as articles are often referenced in the Stats tables which we don't really want to delete?


getAssetData

public java.lang.String getAssetData(java.lang.String thisAssetDescription)
Returns the data associated with the Asset

Parameters:
thisAssetDescription - The description of the Asset Data (as defined by the type of Asset)
Returns:
the Asset data

getArticleAssets

public Assets getArticleAssets()
Gets all the Assets within an article (in logical, Chunk order)

Returns:
A collection of Assets

getNextAvailablePriority

public int getNextAvailablePriority(java.sql.Connection conn)
Returns the priority number of the next available chunk in the article

Returns:
The next available priority value, or 1 if there are no higher priority chunks.

lockArticle

public void lockArticle(CMSUser thisUser,
                        java.sql.Connection conn)
Lock the article from being edited by another user

Parameters:
thisUser - The User locking the Article

unlockArticle

public void unlockArticle(java.sql.Connection conn)
Unlocks the current Article


isStale

public boolean isStale()
Checks to see if the current Article is stale. A stale article is simply a version of an Article that is not the newest version in the database.

Returns:
The result of the query

isStale

public boolean isStale(java.sql.Connection conn)

isLockedTransactional

public boolean isLockedTransactional(java.sql.Connection conn)
Checks to see if the current Article is stale. A stale article is simply a version of an Article that is not the newest version in the database.

Returns:
The result of the query

requestCheckedOutArticle

public void requestCheckedOutArticle(CMSUser requestingUser)
Sends an email to the user locking the current Article, requesting it to be checked in

Parameters:
requestingUser - The User requesting the Article to be unlocked.

generateEditTag

public java.lang.String generateEditTag(javax.servlet.http.HttpServletRequest thisRequest)

getURL

public java.lang.String getURL()
Returns the complete URL for this article

Returns:
the complete URL for this article

getTitle

public java.lang.String getTitle()

setTitle

public void setTitle(java.lang.String thistitle)

setArticleChunks

public void setArticleChunks(Chunks articleChunks)

getArticleChunks

public Chunks getArticleChunks()

setArticleId

public void setArticleId(int articleId)

getArticleId

public int getArticleId()

setCreatedDate

public void setCreatedDate(java.util.Date createdDate)

getCreatedDate

public java.util.Date getCreatedDate()

setCreatedDateWithString

public void setCreatedDateWithString(java.lang.String createdDate,
                                     java.lang.String createdTime)

setLastModifiedDate

public void setLastModifiedDate(java.util.Date lastModifiedDate)

getLastModifiedDate

public java.util.Date getLastModifiedDate()

setArticleTypeId

public void setArticleTypeId(int articleTypeId)

getArticleTypeId

public int getArticleTypeId()

setRootArticleTypeId

public void setRootArticleTypeId(int rootArticleTypeId)

getRootArticleTypeId

public int getRootArticleTypeId()

setPublish

public void setPublish(boolean publish)

isPublish

public boolean isPublish()

setDeleted

public void setDeleted(boolean deleted)

isDeleted

public boolean isDeleted()

setPriority

public void setPriority(int priority)

getPriority

public int getPriority()

getArticleType

public ArticleType getArticleType()

setArticleType

public void setArticleType(ArticleType articleType)

getRootArticleId

public int getRootArticleId()

setRootArticleId

public void setRootArticleId(int rootArticleId)

getPageNumber

public int getPageNumber()

setPageNumber

public void setPageNumber(int pageNumber)

getLastModifiedBy

public CMSUser getLastModifiedBy()

setLastModifiedBy

public void setLastModifiedBy(CMSUser lastModifiedBy)

getLockedBy

public CMSUser getLockedBy()

setLockedBy

public void setLockedBy(CMSUser lockedBy)

isLocked

public boolean isLocked()

getPublishFromDate

public java.util.Date getPublishFromDate()

setPublishFromDate

public void setPublishFromDate(java.util.Date publishFromDate)

setPublishFromDateWithString

public void setPublishFromDateWithString(java.lang.String publishFromDate,
                                         java.lang.String publishFromTime)

getPublishToDate

public java.util.Date getPublishToDate()

setPublishToDate

public void setPublishToDate(java.util.Date publishToDate)

setPublishToDateWithString

public void setPublishToDateWithString(java.lang.String publishToDate,
                                       java.lang.String publishToTime)

getReasonForStoreId

public int getReasonForStoreId()

setReasonForStoreId

public void setReasonForStoreId(int reasonForStoreId)

getReasonForStore

public java.lang.String getReasonForStore()

setReasonForStore

public void setReasonForStore(java.lang.String reasonForStore)

isCheckNewChunkAssets

public boolean isCheckNewChunkAssets()

setCheckNewChunkAssets

public void setCheckNewChunkAssets(boolean checkNewChunkAssets)

isIncludeInSearch

public boolean isIncludeInSearch()

setIncludeInSearch

public void setIncludeInSearch(boolean includeInSearch)

isAdhereToPublishDates

public boolean isAdhereToPublishDates()

setAdhereToPublishDates

public void setAdhereToPublishDates(boolean adhereToPublishDates)

getArticleTemplate

public ArticleTemplate getArticleTemplate()

setArticleTemplate

public void setArticleTemplate(ArticleTemplate articleTemplate)

setArticleTemplateId

public void setArticleTemplateId(int articleTemplateId)

getArticleTemplateId

public int getArticleTemplateId()

getSearchScore

public float getSearchScore()

getSearchScore

public java.lang.String getSearchScore(int numberOfSignificantDigits)

getRssDescription

public java.lang.String getRssDescription()

setRssDescription

public void setRssDescription(java.lang.String rssDescription)

getSessionType

public int getSessionType()

setSessionType

public void setSessionType(int sessionType)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

checkIn

public boolean checkIn(CMSUser checkingInUser)

checkOut

public boolean checkOut(CMSUser checkingInUser)

getRating

public ArticleRating getRating()

setRating

public void setRating(ArticleRating rating)

getRequest

public javax.servlet.http.HttpServletRequest getRequest()

setRequest

public void setRequest(javax.servlet.http.HttpServletRequest request)

getMetaDataTitle

public java.lang.String getMetaDataTitle()

setMetaDataTitle

public void setMetaDataTitle(java.lang.String metaDataTitle)

getMetaDataAuthor

public java.lang.String getMetaDataAuthor()

setMetaDataAuthor

public void setMetaDataAuthor(java.lang.String metaDataAuthor)

getMetaDataDescription

public java.lang.String getMetaDataDescription()

setMetaDataDescription

public void setMetaDataDescription(java.lang.String metaDataDescription)

getMetaDataKeywords

public java.lang.String getMetaDataKeywords()

setMetaDataKeywords

public void setMetaDataKeywords(java.lang.String metaDataKeywords)

isInheritMetaDataAuthor

public boolean isInheritMetaDataAuthor()

setInheritMetaDataAuthor

public void setInheritMetaDataAuthor(boolean inheritMetaDataAuthor)

isInheritMetaDataDescription

public boolean isInheritMetaDataDescription()

setInheritMetaDataDescription

public void setInheritMetaDataDescription(boolean inheritMetaDataDescription)

isInheritMetaDataKeywords

public boolean isInheritMetaDataKeywords()

setInheritMetaDataKeywords

public void setInheritMetaDataKeywords(boolean inheritMetaDataKeywords)

isInheritMetaDataTitle

public boolean isInheritMetaDataTitle()

setInheritMetaDataTitle

public void setInheritMetaDataTitle(boolean inheritMetaDataTitle)

getTags

public java.util.Vector getTags()

getRootTagsIdAsString

public java.lang.String getRootTagsIdAsString()
Returns a comma separated list of rootTagIds


hasTag

public boolean hasTag(int rootTagId)

getTag

public Tag getTag(int rootTagId)

setTags

public void setTags(java.util.Vector tags)

getFirstChildOfParentTag

public Tag getFirstChildOfParentTag(int parentRootTagId)
Works well if you have a collection of tags under a parent and generatlly only one will be tagged


getTags

public java.util.Vector getTags(int parentRootTagId)
returns a Vector of all the tags a article has until this parent


isRipeForDateOnlyPublishing

public boolean isRipeForDateOnlyPublishing(java.util.Date baseDate)