Class BwEvent2Ical

java.lang.Object
org.bedework.convert.ical.IcalUtil
org.bedework.convert.ical.BwEvent2Ical

public class BwEvent2Ical extends IcalUtil
Class to provide utility methods for translating to VEvent ical4j classes
Author:
Mike Douglass douglm rpi.edu
  • Constructor Details

    • BwEvent2Ical

      public BwEvent2Ical()
  • Method Details

    • convert

      public static net.fortuna.ical4j.model.Component convert(EventInfo ei, boolean isOverride, net.fortuna.ical4j.model.TimeZoneRegistry tzreg, String currentPrincipal) throws CalFacadeException
      Make an Icalendar component from a BwEvent object. This may produce a VEvent, VTodo, VJournal or VPoll.
      Parameters:
      ei - the event
      isOverride - - true if event object is an override
      tzreg - - timezone registry
      currentPrincipal - - href for current authenticated user
      Returns:
      Component
      Throws:
      CalFacadeException - on fatal error
    • doLocation

      public static void doLocation(BwEvent val, net.fortuna.ical4j.model.PropertyList<net.fortuna.ical4j.model.Property> pl, net.fortuna.ical4j.model.Component comp, boolean vpoll)
    • doRecurring

      public static void doRecurring(BwEvent val, net.fortuna.ical4j.model.PropertyList<net.fortuna.ical4j.model.Property> pl)
      Build recurring properties from event.
      Parameters:
      val - event
      pl - properties
      Throws:
      RuntimeException - for bad date values