public class MultiAgenda extends Object implements Agenda
Constructor and Description |
---|
MultiAgenda()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addAgenda(Agenda agenda)
Add an agenda
|
String[] |
getAgendaIds()
Fetch agenda ids
|
List<Agenda> |
getAgendas()
Gets agendas
|
List<Event> |
getEvents()
Retrieves all events of the agenda
|
List<Event> |
getEventsByDate(Date dateBegin,
Date dateEnd,
Locale localeEnv)
Fetches the events present between two dates
|
List<Event> |
getEventsByDate(String strDate)
Retrieves events for a given date
|
String |
getKeyName()
Returns the KeyName
|
String |
getName()
Returns the name of the Agenda
|
boolean |
hasEvents(String strDate)
Indicates if the agenda gets events for a given date
|
void |
setKeyName(String strKeyName)
Sets the KeyName
|
void |
setName(String strName)
Defines the name of the Agenda
|
public boolean hasEvents(String strDate)
public List<Event> getEventsByDate(String strDate)
getEventsByDate
in interface Agenda
strDate
- A date codepublic String getName()
public void setName(String strName)
public void addAgenda(Agenda agenda)
agenda
- The agendapublic String getKeyName()
getKeyName
in interface Agenda
public void setKeyName(String strKeyName)
setKeyName
in interface Agenda
strKeyName
- The KeyNamepublic List<Event> getEventsByDate(Date dateBegin, Date dateEnd, Locale localeEnv)
getEventsByDate
in interface Agenda
dateBegin
- The start datedateEnd
- The end datelocaleEnv
- the localepublic String[] getAgendaIds()
Copyright © 2015 City of Paris. All rights reserved.