Class CalendarEvent
java.lang.Object
org.ametys.plugins.messagingconnector.CalendarEvent
This class represents an event from a calendar.
An event is represented with :
- a title
- a start date
- a end date (optional)
- a location (optional)
- a title
- a start date
- a end date (optional)
- a location (optional)
-
Constructor Summary
ConstructorDescriptionCreates a empty calendar eventCalendarEvent
(Date dateStart, Date dateEnd, String title, String location) Creates a new calendar event -
Method Summary
Modifier and TypeMethodDescriptionGet the end date of the eventGet the location of the eventGet the start date of the eventGet the subject of the eventvoid
setEndDate
(Date endDate) Set the end date of the event to a new Datevoid
setLocation
(String location) Set the location of the eventvoid
setStartDate
(Date startDate) Set the start date of the eventvoid
setSubject
(String title) Set the title of the eventtoString()
-
Constructor Details
-
CalendarEvent
public CalendarEvent()Creates a empty calendar event -
CalendarEvent
Creates a new calendar event- Parameters:
dateStart
- the date when the event startsdateEnd
- the date when the event endstitle
- the title of the eventlocation
- the location of the event
-
-
Method Details
-
getStartDate
Get the start date of the event- Returns:
- the start date
-
setStartDate
Set the start date of the event- Parameters:
startDate
- the start date
-
getEndDate
Get the end date of the event- Returns:
- the end date
-
setEndDate
Set the end date of the event to a new Date- Parameters:
endDate
- the end date to set
-
getSubject
Get the subject of the event- Returns:
- the subject of the event
-
setSubject
Set the title of the event- Parameters:
title
- the title to set
-
getLocation
Get the location of the event- Returns:
- the location
-
setLocation
Set the location of the event- Parameters:
location
- the location to set
-
toString
-