com.stratelia.webactiv.almanach.control.ejb
Class ICal4JEventOccurrencesGenerator

java.lang.Object
  extended by com.stratelia.webactiv.almanach.control.ejb.ICal4JEventOccurrencesGenerator
All Implemented Interfaces:
EventOccurrenceGenerator

public class ICal4JEventOccurrencesGenerator
extends Object
implements EventOccurrenceGenerator

A generator of event occurrences built on the iCal4J library.


Constructor Summary
ICal4JEventOccurrencesGenerator()
           
 
Method Summary
 List<EventOccurrence> generateOccurrencesFrom(com.silverpeas.calendar.Date date, List<EventDetail> events)
          Generates the occurrences of the specified events that occur from the specified date with no limit in the future.
 List<EventOccurrence> generateOccurrencesInPeriod(org.silverpeas.date.Period period, List<EventDetail> events)
          Generates the occurrences of events that occur in the specified period.
 List<EventOccurrence> generateOccurrencesInRange(com.silverpeas.calendar.Date startDate, com.silverpeas.calendar.Date endDate, List<EventDetail> events)
          Generates the occurrences of the specified events that occur between the two specified dates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ICal4JEventOccurrencesGenerator

public ICal4JEventOccurrencesGenerator()
Method Detail

generateOccurrencesInPeriod

public List<EventOccurrence> generateOccurrencesInPeriod(org.silverpeas.date.Period period,
                                                         List<EventDetail> events)
Description copied from interface: EventOccurrenceGenerator
Generates the occurrences of events that occur in the specified period.

Specified by:
generateOccurrencesInPeriod in interface EventOccurrenceGenerator
Parameters:
period - the period in which occurrences of events occur.
events - the events for which the occurrences have to be generated.
Returns:
a list of occurrences occuring in the specified period

generateOccurrencesInRange

public List<EventOccurrence> generateOccurrencesInRange(com.silverpeas.calendar.Date startDate,
                                                        com.silverpeas.calendar.Date endDate,
                                                        List<EventDetail> events)
Description copied from interface: EventOccurrenceGenerator
Generates the occurrences of the specified events that occur between the two specified dates.

Specified by:
generateOccurrencesInRange in interface EventOccurrenceGenerator
Parameters:
startDate - the inclusive date from which the event occurrences occur.
endDate - the date to which the event occurrences occur.
events - the events for which the occurrences have to be generated.
Returns:
a list of occurrences occuring from the specified date.

generateOccurrencesFrom

public List<EventOccurrence> generateOccurrencesFrom(com.silverpeas.calendar.Date date,
                                                     List<EventDetail> events)
Description copied from interface: EventOccurrenceGenerator
Generates the occurrences of the specified events that occur from the specified date with no limit in the future.

Specified by:
generateOccurrencesFrom in interface EventOccurrenceGenerator
Parameters:
date - the inclusive date from which the event occurrences occur.
events - the events for which the occurrences have to be generated.
Returns:
a list of occurrences occuring from the specified date.


Copyright © 2016 Silverpeas. All Rights Reserved.