use of net.fortuna.ical4j.model.parameter.ScheduleStatus in project bw-calendar-engine by Bedework.
the class IcalUtil method setOrganizer.
/**
* @param val
* @return Organizer
* @throws Throwable
*/
public static Organizer setOrganizer(final BwOrganizer val) throws Throwable {
ParameterList pars = new ParameterList();
String temp = val.getScheduleStatus();
if (temp != null) {
pars.add(new ScheduleStatus(temp));
}
temp = val.getCn();
if (temp != null) {
pars.add(new Cn(temp));
}
temp = val.getDir();
if (temp != null) {
pars.add(new Dir(temp));
}
temp = val.getLanguage();
if (temp != null) {
pars.add(new Language(temp));
}
temp = val.getSentBy();
if (temp != null) {
pars.add(new SentBy(temp));
}
Organizer prop = new Organizer(pars, val.getOrganizerUri());
return prop;
}
use of net.fortuna.ical4j.model.parameter.ScheduleStatus in project bw-calendar-engine by Bedework.
the class IcalUtil method setAttendeeVoter.
/**
* make an attendee
*
* @param val
* @return Attendee
* @throws Throwable
*/
private static void setAttendeeVoter(final BwAttendee val, final ParameterList pars) throws Throwable {
if (val.getRsvp()) {
pars.add(Rsvp.TRUE);
}
String temp = val.getCn();
if (temp != null) {
pars.add(new Cn(temp));
}
temp = val.getScheduleStatus();
if (temp != null) {
pars.add(new ScheduleStatus(temp));
}
temp = val.getCuType();
if (temp != null) {
pars.add(new CuType(temp));
}
temp = val.getDelegatedFrom();
if (temp != null) {
pars.add(new DelegatedFrom(temp));
}
temp = val.getDelegatedTo();
if (temp != null) {
pars.add(new DelegatedTo(temp));
}
temp = val.getDir();
if (temp != null) {
pars.add(new Dir(temp));
}
temp = val.getLanguage();
if (temp != null) {
pars.add(new Language(temp));
}
temp = val.getMember();
if (temp != null) {
pars.add(new Member(temp));
}
temp = val.getRole();
if (temp != null) {
pars.add(new Role(temp));
}
temp = val.getSentBy();
if (temp != null) {
pars.add(new SentBy(temp));
}
}
Aggregations