com.arsdigita.cms.contenttypes
Class Event

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

public class Event
extends com.arsdigita.cms.TextPage

This content type represents an event.

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

Field Summary
static String BASE_DATA_OBJECT_TYPE
          Data object type for this domain object
static String COST
          PDL property name for cost
static String END_DATE
           
static String END_TIME
           
static String EVENT_DATE
           
static String EVENT_TYPE
          PDL property name for event type
static String LEAD
          PDL property name for lead
static String LOCATION
          PDL property name for location
static String MAIN_CONTRIBUTOR
          PDL property name for main contributor
static String MAP_LINK
          PDL property name for map link
static String RECENT_EVENT
           
static String START_DATE
          PDL property name for event date
static String START_TIME
           
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, 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
Event()
           
Event(BigDecimal id)
           
Event(com.arsdigita.persistence.DataObject obj)
           
Event(com.arsdigita.persistence.OID id)
           
Event(String type)
           
 
Method Summary
 void beforeSave()
           
 String formatDate(Date date)
           
 String formatTime(Date time)
           
 String getCost()
           
 String getDisplayEndDate()
           
 String getDisplayEndTime()
           
 String getDisplayStartDate()
           
 String getDisplayStartTime()
           
 Date getEndDate()
           
 Date getEndTime()
           
 String getEventDate()
           
 String getEventType()
           
 String getLead()
           
 String getLocation()
           
 String getMainContributor()
           
 String getMapLink()
           
static Event getRandomEvent()
           
 String getSearchSummary()
           
 Date getStartDate()
           
 Date getStartTime()
           
 void setCost(String cost)
           
 void setEndDate(Date endDate)
           
 void setEndTime(Date endTime)
           
 void setEventDate(String eventDate)
           
 void setEventType(String eventType)
           
 void setLead(String lead)
           
 void setLocation(String location)
           
 void setMainContributor(String mainContributor)
           
 void setMapLink(String mapLink)
           
 void setStartDate(Date startDate)
           
 void setStartTime(Date startTime)
           
 
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

START_DATE

public static final String START_DATE
PDL property name for event date

See Also:
Constant Field Values

END_DATE

public static final String END_DATE
See Also:
Constant Field Values

START_TIME

public static final String START_TIME
See Also:
Constant Field Values

END_TIME

public static final String END_TIME
See Also:
Constant Field Values

EVENT_DATE

public static final String EVENT_DATE
See Also:
Constant Field Values

LOCATION

public static final String LOCATION
PDL property name for location

See Also:
Constant Field Values

LEAD

public static final String LEAD
PDL property name for lead

See Also:
Constant Field Values

MAIN_CONTRIBUTOR

public static final String MAIN_CONTRIBUTOR
PDL property name for main contributor

See Also:
Constant Field Values

EVENT_TYPE

public static final String EVENT_TYPE
PDL property name for event type

See Also:
Constant Field Values

MAP_LINK

public static final String MAP_LINK
PDL property name for map link

See Also:
Constant Field Values

COST

public static final String COST
PDL property name for cost

See Also:
Constant Field Values

RECENT_EVENT

public static final String RECENT_EVENT
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

Event

public Event()

Event

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

Event

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

Event

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

Event

public Event(String type)
Method Detail

beforeSave

public void beforeSave()

formatDate

public String formatDate(Date date)

formatTime

public String formatTime(Date time)

getStartTime

public Date getStartTime()

setStartTime

public void setStartTime(Date startTime)

getDisplayStartTime

public String getDisplayStartTime()

getEndTime

public Date getEndTime()

setEndTime

public void setEndTime(Date endTime)

getDisplayEndTime

public String getDisplayEndTime()

getStartDate

public Date getStartDate()

setStartDate

public void setStartDate(Date startDate)

getDisplayStartDate

public String getDisplayStartDate()

getEndDate

public Date getEndDate()

getDisplayEndDate

public String getDisplayEndDate()

setEndDate

public void setEndDate(Date endDate)

getEventDate

public String getEventDate()

setEventDate

public void setEventDate(String eventDate)

getLocation

public String getLocation()

setLocation

public void setLocation(String location)

getLead

public String getLead()

setLead

public void setLead(String lead)

getMainContributor

public String getMainContributor()

setMainContributor

public void setMainContributor(String mainContributor)

getEventType

public String getEventType()

setEventType

public void setEventType(String eventType)

getMapLink

public String getMapLink()

setMapLink

public void setMapLink(String mapLink)

getCost

public String getCost()

setCost

public void setCost(String cost)

getSearchSummary

public String getSearchSummary()

getRandomEvent

public static Event getRandomEvent()


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