Package org.bedework.convert.ical
Class BwEvent2Ical
java.lang.Object
org.bedework.convert.ical.IcalUtil
org.bedework.convert.ical.BwEvent2Ical
Class to provide utility methods for translating to VEvent ical4j classes
- Author:
- Mike Douglass douglm rpi.edu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.fortuna.ical4j.model.Componentconvert(EventInfo ei, boolean isOverride, net.fortuna.ical4j.model.TimeZoneRegistry tzreg, String currentPrincipal) Make an Icalendar component from a BwEvent object.static voiddoLocation(BwEvent val, net.fortuna.ical4j.model.PropertyList<net.fortuna.ical4j.model.Property> pl, net.fortuna.ical4j.model.Component comp, boolean vpoll) static voiddoRecurring(BwEvent val, net.fortuna.ical4j.model.PropertyList<net.fortuna.ical4j.model.Property> pl) Build recurring properties from event.Methods inherited from class org.bedework.convert.ical.IcalUtil
addParameter, addProperty, addXproperty, getAltRep, getAttachment, getAttendee, getDurationRepeat, getLang, getOptStr, getOptStr, getOrganizer, getParameter, getParameterVal, getProperties, getProperty, getReqStr, getReqStrs, getTrigger, getVlocations, getVoter, getXcomp, initAttendeeVoter, makeDateTime, makeDateTimes, makeDtEnd, makeDtEnd, makeDue, makeXparlist, parseParticipants, parseVpollCandidates, parseVpollVoters, setAttachment, setAttendee, setDates, setOrganizer, setVoter, toVlocation, xpropertiesToIcal
-
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 eventisOverride- - true if event object is an overridetzreg- - timezone registrycurrentPrincipal- - 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- eventpl- properties- Throws:
RuntimeException- for bad date values
-