com.arsdigita.cms.contenttypes
Class PressRelease

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.contenttypes.PressRelease
All Implemented Interfaces:
com.arsdigita.auditing.Audited, com.arsdigita.cms.CustomCopy

public class PressRelease
extends com.arsdigita.cms.TextPage

This content type represents a press release. Its extended attributes are release date and reference code. Release date has nothing to do with publishing, but allows the author to specify the original release date for reference purposes. Reference code is an arbitrary string that is used for out-of-system reference. The type inherits name (filename), title, body (TextAsset), and metadata from com.arsdigita.aplaws.cms.TextPage, and also provides the capability to associate contact information with this press release.

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

Field Summary
static String BASE_DATA_OBJECT_TYPE
          Data object type for this domain object
static String CONTACT_INFO
          PDL property name for contact info
static String REFERENCE_CODE
          PDL property name for reference code
static String SUMMARY
          PDL property name for summary
static int SUMMARY_LENGTH
           
 
Fields inherited from class com.arsdigita.cms.TextPage
SUMMARY_SIZE, TEXT_ASSET, versionId
 
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, 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
PressRelease()
           
PressRelease(BigDecimal id)
           
PressRelease(com.arsdigita.persistence.DataObject obj)
           
PressRelease(com.arsdigita.persistence.OID id)
           
PressRelease(String type)
           
 
Method Summary
 void beforeSave()
           
 String getContactInfo()
           
 String getReferenceCode()
           
 String getSearchSummary()
           
 String getSummary()
           
 void setContactInfo(String contactInfo)
           
 void setReferenceCode(String refCode)
           
 void setSummary(String summary)
           
 
Methods inherited from class com.arsdigita.cms.TextPage
getBaseDataObjectType, getTextAsset, propagateMaster, 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, initialize, 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

CONTACT_INFO

public static final String CONTACT_INFO
PDL property name for contact info

See Also:
Constant Field Values

SUMMARY

public static final String SUMMARY
PDL property name for summary

See Also:
Constant Field Values

REFERENCE_CODE

public static final String REFERENCE_CODE
PDL property name for reference code

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

PressRelease

public PressRelease()

PressRelease

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

PressRelease

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

PressRelease

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

PressRelease

public PressRelease(String type)
Method Detail

beforeSave

public void beforeSave()

getContactInfo

public String getContactInfo()

setContactInfo

public void setContactInfo(String contactInfo)

getSummary

public String getSummary()

setSummary

public void setSummary(String summary)

getReferenceCode

public String getReferenceCode()

setReferenceCode

public void setReferenceCode(String refCode)

getSearchSummary

public String getSearchSummary()


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