Class CalendarEvent
- java.lang.Object
-
- org.ametys.plugins.messagingconnector.CalendarEvent
-
public class CalendarEvent extends Object
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)
-
-
Constructor Summary
Constructors Constructor Description CalendarEvent()
Creates a empty calendar eventCalendarEvent(Date dateStart, Date dateEnd, String title, String location)
Creates a new calendar event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
getEndDate()
Get the end date of the eventString
getLocation()
Get the location of the eventDate
getStartDate()
Get the start date of the eventString
getSubject()
Get 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 eventString
toString()
-
-
-
Constructor Detail
-
CalendarEvent
public CalendarEvent()
Creates a empty calendar event
-
CalendarEvent
public CalendarEvent(Date dateStart, Date dateEnd, String title, String location)
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 Detail
-
getStartDate
public Date getStartDate()
Get the start date of the event- Returns:
- the start date
-
setStartDate
public void setStartDate(Date startDate)
Set the start date of the event- Parameters:
startDate
- the start date
-
getEndDate
public Date getEndDate()
Get the end date of the event- Returns:
- the end date
-
setEndDate
public void setEndDate(Date endDate)
Set the end date of the event to a new Date- Parameters:
endDate
- the end date to set
-
getSubject
public String getSubject()
Get the subject of the event- Returns:
- the subject of the event
-
setSubject
public void setSubject(String title)
Set the title of the event- Parameters:
title
- the title to set
-
getLocation
public String getLocation()
Get the location of the event- Returns:
- the location
-
setLocation
public void setLocation(String location)
Set the location of the event- Parameters:
location
- the location to set
-
-