com.silverpeas.calendar
Class CalendarEventOccurrence

java.lang.Object
  extended by com.silverpeas.calendar.CalendarEventOccurrence

public class CalendarEventOccurrence
extends Object

The occurrence of an event in a Silverpeas calendar. An event occurrence starts and ends at a given date and it represents an event that has occured or that is going to occur at a given moment in time.


Constructor Summary
CalendarEventOccurrence(CalendarEvent event, Date startDate, Date endDate)
          Constructs a new occurrence from the specified calendar event, starting and ending at the specified dates.
 
Method Summary
 CalendarEvent getCalendarEvent()
          Gets the event to which this occurrence belongs.
 Date getEndDate()
          Gets the date at which this event should ends
 Date getStartDate()
          Gets the date at which this occurrence should starts
 String getUid()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarEventOccurrence

public CalendarEventOccurrence(CalendarEvent event,
                               Date startDate,
                               Date endDate)
Constructs a new occurrence from the specified calendar event, starting and ending at the specified dates.

Parameters:
event - the event from which the occurrence is instanciated.
startDate - the start date of the occurrence.
endDate - the end date of the occurrence.
Method Detail

getCalendarEvent

public CalendarEvent getCalendarEvent()
Gets the event to which this occurrence belongs.

Returns:
the event from which this occurrence is instanciated.

getStartDate

public Date getStartDate()
Gets the date at which this occurrence should starts

Returns:
the start date of the event occurrence.

getEndDate

public Date getEndDate()
Gets the date at which this event should ends

Returns:
the end date of the event occurrence.

getUid

public String getUid()


Copyright © 2016 Silverpeas. All Rights Reserved.