com.arsdigita.cms.contenttypes
Class NewsItem

java.lang.Object
  extended bycom.arsdigita.domain.DomainObject
      extended bycom.arsdigita.domain.ObservableDomainObject
          extended bycom.arsdigita.kernel.ACSObject
              extended bycom.arsdigita.versioning.VersionedACSObject
                  extended bycom.arsdigita.cms.ContentItem
                      extended bycom.arsdigita.cms.ContentPage
                          extended bycom.arsdigita.cms.TextPage
                              extended bycom.arsdigita.cms.Article
                                  extended bycom.arsdigita.cms.contenttypes.NewsItem
All Implemented Interfaces:
com.arsdigita.auditing.Audited, com.arsdigita.cms.CustomCopy

public class NewsItem
extends com.arsdigita.cms.Article

This content type represents a news item.

Version:
$Revision: #6 $ $Date: 2004/04/07 $

Field Summary
static String BASE_DATA_OBJECT_TYPE
          Data object type for this domain object
static String IS_HOMEPAGE
           
static String LEAD
          PDL property name for lead
static String NEWS_DATE
          PDL property name for news date
static String RECENT_NEWS
           
static int SUMMARY_LENGTH
           
 
Fields inherited from class com.arsdigita.cms.Article
IMAGES, versionId
 
Fields inherited from class com.arsdigita.cms.TextPage
SUMMARY_SIZE, TEXT_ASSET
 
Fields inherited from class com.arsdigita.cms.ContentPage
LAUNCH_DATE, PAGES_IN_CATEGORY, PAGES_IN_FOLDER, QUERY_CATEGORY_ID, QUERY_PAGE, QUERY_ROOT_ID, QUERY_TYPE, SUMMARY, TITLE
 
Fields inherited from class com.arsdigita.cms.ContentItem
ANCESTORS, AUDITING, CHILDREN, CONTENT_SECTION, CONTENT_TYPE, DRAFT, DRAFT_VERSION, LANGUAGE, LIVE, NAME, PARENT, PENDING, VERSION, VERSIONS
 
Fields inherited from class com.arsdigita.versioning.VersionedACSObject
IS_DELETED, MASTER
 
Fields inherited from class com.arsdigita.kernel.ACSObject
CONTAINER, DEFAULT_DOMAIN_CLASS, DISPLAY_NAME, ID, OBJECT_TYPE
 
Constructor Summary
NewsItem()
           
NewsItem(BigDecimal id)
           
NewsItem(com.arsdigita.persistence.DataObject obj)
           
NewsItem(com.arsdigita.persistence.OID id)
           
NewsItem(String type)
           
 
Method Summary
 void beforeSave()
           
static NewsItemConfig getConfig()
           
 String getDisplayNewsDate()
           
 String getLead()
           
static NewsItem getMostRecentNewsItem()
           
 Date getNewsDate()
           
 String getSearchSummary()
           
 void initialize()
           
 Boolean isHomepage()
           
 void setIsHomepage(Boolean isHomePage)
           
 void setLead(String lead)
           
 void setNewsDate(Date newsDate)
           
 
Methods inherited from class com.arsdigita.cms.Article
addImage, clearImages, getBaseDataObjectType, getCaption, getImages, propagateMaster, removeImage
 
Methods inherited from class com.arsdigita.cms.TextPage
getTextAsset, setTextAsset
 
Methods inherited from class com.arsdigita.cms.ContentPage
getContentBundle, getDisplayName, getLaunchDate, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getPagesInSectionQuery, getTitle, setLaunchDate, setName, setPagesQueryParameters, setPagesQueryParameters, setTitle
 
Methods inherited from class com.arsdigita.cms.ContentItem
addCategory, addPendingVersion, afterSave, assertDraft, assertLive, assertMaster, assertPending, beforeDelete, canPublishToFS, copy, copy, copyProperty, copyProperty, copyServices, copyServicesFrom, createLiveVersion, createPendingVersion, get, getCategories, getCategoryCollection, getChildren, getContentSection, getContentType, getCreationDate, getCreationIP, getCreationUser, getDraftVersion, getLanguage, getLastModifiedDate, getLastModifiedIP, getLastModifiedUser, getLifecycle, getLiveVersion, getLocale, getName, getParent, getPath, getPathInfo, getPathInfo, getPathNoJsp, getPendingVersions, getPublicVersion, getVersion, getWorkingVersion, isDraftVersion, isLive, isLiveVersion, isPendingVersion, isPublished, makeCopy, promotePendingVersion, publish, publishToFS, removeCategory, removeLifecycle, removePendingVersion, set, setContentSection, setContentType, setDefaultCategory, setLanguage, setLifecycle, setLive, setLiveVersion, setParent, setVersion, setVersionRecursively, unpublish, unpublishFromFS
 
Methods inherited from class com.arsdigita.versioning.VersionedACSObject
applyTag, applyUniqueTag, autoPropagateMaster, getMaster, getRolledBackTo, getTransactions, getTransactions, isMaster, isRolledBack, isSubtype, permanentlyDelete, recordAttributeChange, rollBackTo, rollBackTo, rollForward, save, setMaster, trackChanges
 
Methods inherited from class com.arsdigita.kernel.ACSObject
assertPrivilege, checkPrivilege, doCreateCheck, doWriteCheck, getContainer, getDefaultDomainClass, getID, getSpecificObjectType, getSpecificOID, gimmeContainer, isContainerModified, setID, setID
 
Methods inherited from class com.arsdigita.domain.ObservableDomainObject
addObserver, getObservers
 
Methods inherited from class com.arsdigita.domain.DomainObject
add, add, addToAssociation, afterDelete, clear, delete, disconnect, equals, getObjectType, getOID, getSession, hashCode, isDeleted, isDisconnected, isModified, isNew, isPropertyModified, isValid, remove, remove, remove, removeFromAssociation, save, setAssociation, setAssociation, specializeDataObject, specializeDataObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

LEAD

public static final String LEAD
PDL property name for lead

See Also:
Constant Field Values

NEWS_DATE

public static final String NEWS_DATE
PDL property name for news date

See Also:
Constant Field Values

IS_HOMEPAGE

public static final String IS_HOMEPAGE
See Also:
Constant Field Values

RECENT_NEWS

public static final String RECENT_NEWS
See Also:
Constant Field Values

BASE_DATA_OBJECT_TYPE

public static final String BASE_DATA_OBJECT_TYPE
Data object type for this domain object

See Also:
Constant Field Values

SUMMARY_LENGTH

public static final int SUMMARY_LENGTH
See Also:
Constant Field Values
Constructor Detail

NewsItem

public NewsItem()

NewsItem

public NewsItem(BigDecimal id)
         throws com.arsdigita.domain.DataObjectNotFoundException

NewsItem

public NewsItem(com.arsdigita.persistence.OID id)
         throws com.arsdigita.domain.DataObjectNotFoundException

NewsItem

public NewsItem(com.arsdigita.persistence.DataObject obj)

NewsItem

public NewsItem(String type)
Method Detail

getConfig

public static final NewsItemConfig getConfig()

initialize

public void initialize()

beforeSave

public void beforeSave()

getLead

public String getLead()

setLead

public void setLead(String lead)

isHomepage

public Boolean isHomepage()

setIsHomepage

public void setIsHomepage(Boolean isHomePage)

getNewsDate

public Date getNewsDate()

getDisplayNewsDate

public String getDisplayNewsDate()

setNewsDate

public void setNewsDate(Date newsDate)

getSearchSummary

public String getSearchSummary()

getMostRecentNewsItem

public static NewsItem getMostRecentNewsItem()


Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:0018 UTC