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;
}
Aggregations