edu.yale.its.tp.portlets.calendar
Class CalendarEvent

java.lang.Object
  extended by net.fortuna.ical4j.model.Component
      extended by net.fortuna.ical4j.model.component.CalendarComponent
          extended by net.fortuna.ical4j.model.component.VEvent
              extended by edu.yale.its.tp.portlets.calendar.CalendarEvent
All Implemented Interfaces:
java.io.Serializable

public class CalendarEvent
extends net.fortuna.ical4j.model.component.VEvent

Wraps the VEvent calendar class to provide extra information.

Author:
Jen Bourey
See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.fortuna.ical4j.model.Component
AVAILABLE, BEGIN, END, EXPERIMENTAL_PREFIX, VALARM, VAVAILABILITY, VEVENT, VFREEBUSY, VJOURNAL, VTIMEZONE, VTODO, VVENUE
 
Constructor Summary
CalendarEvent()
          Default constructor.
CalendarEvent(net.fortuna.ical4j.model.Date start, net.fortuna.ical4j.model.Date end, java.lang.String summary)
          Construct a new CalendarEvent.
CalendarEvent(net.fortuna.ical4j.model.Date start, net.fortuna.ical4j.model.Dur duration, java.lang.String summary)
          Construct a new CalendarEvent.
CalendarEvent(net.fortuna.ical4j.model.Date start, java.lang.String summary)
          Construct a new CalendarEvent.
CalendarEvent(java.lang.Long calendarId, net.fortuna.ical4j.model.PropertyList properties)
          Construct a new CalendarEvent.
CalendarEvent(net.fortuna.ical4j.model.PropertyList properties)
          Construct a new CalendarEvent.
CalendarEvent(net.fortuna.ical4j.model.PropertyList properties, net.fortuna.ical4j.model.ComponentList alarms)
          Construct a new CalendarEvent.
 
Method Summary
 java.lang.Long getCalendarId()
          Get the ID of the CalendarConfiguration that produced this event.
 boolean isAllDay()
          Determines whether this event is an "all-day" event or not.
 void setCalendarId(java.lang.Long calendarId)
          Set the ID of the CalendarConfiguration that produced this event.
 
Methods inherited from class net.fortuna.ical4j.model.component.VEvent
copy, equals, getAlarms, getClassification, getConsumedTime, getConsumedTime, getCreated, getDateStamp, getDescription, getDuration, getEndDate, getEndDate, getGeographicPos, getLastModified, getLocation, getOccurrence, getOrganizer, getPriority, getRecurrenceId, getSequence, getStartDate, getStatus, getSummary, getTransparency, getUid, getUrl, hashCode, toString, validate, validateAdd, validateCancel, validateCounter, validateDeclineCounter, validatePublish, validateRefresh, validateReply, validateRequest
 
Methods inherited from class net.fortuna.ical4j.model.Component
calculateRecurrenceSet, getName, getProperties, getProperties, getProperty, validate, validateProperties
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CalendarEvent

public CalendarEvent()
Default constructor.


CalendarEvent

public CalendarEvent(net.fortuna.ical4j.model.Date start,
                     net.fortuna.ical4j.model.Date end,
                     java.lang.String summary)
Construct a new CalendarEvent.

Parameters:
start - the start date of the new event
end - the end date of the new event
summary - the event summary

CalendarEvent

public CalendarEvent(net.fortuna.ical4j.model.Date start,
                     net.fortuna.ical4j.model.Dur duration,
                     java.lang.String summary)
Construct a new CalendarEvent.

Parameters:
start - the start date of the new event
duration - the duration of the new event
summary - the event summary

CalendarEvent

public CalendarEvent(net.fortuna.ical4j.model.Date start,
                     java.lang.String summary)
Construct a new CalendarEvent.

Parameters:
start - the start date of the new event
summary - the event summary

CalendarEvent

public CalendarEvent(java.lang.Long calendarId,
                     net.fortuna.ical4j.model.PropertyList properties)
Construct a new CalendarEvent.

Parameters:
calendarId - id of the CalendarConfiguration that produced this event
properties - list of event properties

CalendarEvent

public CalendarEvent(net.fortuna.ical4j.model.PropertyList properties,
                     net.fortuna.ical4j.model.ComponentList alarms)
Construct a new CalendarEvent.

Parameters:
properties - list of event properties
alarms - list of alarms

CalendarEvent

public CalendarEvent(net.fortuna.ical4j.model.PropertyList properties)
Construct a new CalendarEvent.

Parameters:
properties - list of event properties
Method Detail

getCalendarId

public java.lang.Long getCalendarId()
Get the ID of the CalendarConfiguration that produced this event.

Returns:
CalendarConfiguration id

setCalendarId

public void setCalendarId(java.lang.Long calendarId)
Set the ID of the CalendarConfiguration that produced this event.

Parameters:
CalendarConfiguration - id

isAllDay

public boolean isAllDay()
Determines whether this event is an "all-day" event or not. All-day events are defined as starting at 12:00 AM and lasting for 24 hours or more.

Returns:


Copyright © 2009 Jasig. All Rights Reserved.