fr.paris.lutece.plugins.calendar.business
Interface Agenda

All Superinterfaces:
Serializable
All Known Implementing Classes:
ICalAgenda, MultiAgenda, SimpleAgenda

public interface Agenda
extends Serializable

This interface describes the minimum implementation for agendas


Method Summary
 List<Event> getEvents()
          Retrieves all events of the agenda
 List<Event> getEventsByDate(Date dateBegin, Date dateEnd, Locale localeEnv)
          Retrieves events for a given date
 List<Event> getEventsByDate(String strDate)
          Retrieves events for a given date
 String getKeyName()
          Returns the key of the Agenda
 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 key of the Agenda
 void setName(String strName)
          Sets the name of the Agenda
 

Method Detail

hasEvents

boolean hasEvents(String strDate)
Indicates if the agenda gets events for a given date

Parameters:
strDate - A date code
Returns:
True if there is events, otherwise false

getEventsByDate

List<Event> getEventsByDate(String strDate)
Retrieves events for a given date

Parameters:
strDate - A date code
Returns:
A list of events

getEventsByDate

List<Event> getEventsByDate(Date dateBegin,
                            Date dateEnd,
                            Locale localeEnv)
Retrieves events for a given date

Parameters:
dateBegin - The start date
dateEnd - The end date
localeEnv - The locale
Returns:
A list of events

getEvents

List<Event> getEvents()
Retrieves all events of the agenda

Returns:
A list of events

getName

String getName()
Returns the name of the Agenda

Returns:
The agenda's name

setName

void setName(String strName)
Sets the name of the Agenda

Parameters:
strName - The agenda's name

getKeyName

String getKeyName()
Returns the key of the Agenda

Returns:
The agenda's key

setKeyName

void setKeyName(String strKeyName)
Sets the key of the Agenda

Parameters:
strKeyName - The agenda's key name


Copyright © 2014 Mairie de Paris. All Rights Reserved.