Search in sources :

Example 31 with ParameterList

use of net.fortuna.ical4j.model.ParameterList in project bw-calendar-engine by Bedework.

the class IcalUtil method getOrganizer.

/**
 * Make an organizer
 *
 * @param cb          IcalCallback object
 * @param orgProp
 * @return BwOrganizer
 * @throws Throwable
 */
public static BwOrganizer getOrganizer(final IcalCallback cb, final Organizer orgProp) throws Throwable {
    BwOrganizer org = new BwOrganizer();
    org.setOrganizerUri(cb.getCaladdr(orgProp.getValue()));
    ParameterList pars = orgProp.getParameters();
    org.setCn(IcalUtil.getOptStr(pars, "CN"));
    org.setDir(getOptStr(pars, "DIR"));
    org.setLanguage(getOptStr(pars, "LANGUAGE"));
    org.setScheduleStatus(getOptStr(pars, "SCHEDULE-STATUS"));
    org.setSentBy(getOptStr(pars, "SENT-BY"));
    return org;
}
Also used : ParameterList(net.fortuna.ical4j.model.ParameterList) BwOrganizer(org.bedework.calfacade.BwOrganizer)

Aggregations

ParameterList (net.fortuna.ical4j.model.ParameterList)31 Parameter (net.fortuna.ical4j.model.Parameter)13 Iterator (java.util.Iterator)5 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)5 DateTime (net.fortuna.ical4j.model.DateTime)4 XParameter (net.fortuna.ical4j.model.parameter.XParameter)4 PropertyList (net.fortuna.ical4j.model.PropertyList)3 Cn (net.fortuna.ical4j.model.parameter.Cn)3 Value (net.fortuna.ical4j.model.parameter.Value)3 BwAttendee (org.bedework.calfacade.BwAttendee)3 IOException (java.io.IOException)2 URI (java.net.URI)2 Property (net.fortuna.ical4j.model.Property)2 VEvent (net.fortuna.ical4j.model.component.VEvent)2 VVoter (net.fortuna.ical4j.model.component.VVoter)2 FmtType (net.fortuna.ical4j.model.parameter.FmtType)2 PartStat (net.fortuna.ical4j.model.parameter.PartStat)2 Attach (net.fortuna.ical4j.model.property.Attach)2 DateListProperty (net.fortuna.ical4j.model.property.DateListProperty)2 BwAttachment (org.bedework.calfacade.BwAttachment)2