use of net.fortuna.ical4j.model.parameter.DelegatedTo 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));
}
}
use of net.fortuna.ical4j.model.parameter.DelegatedTo in project bw-calendar-engine by Bedework.
the class JsonParameters method outValue.
private static void outValue(final JsonGenerator jgen, final Parameter par) throws Throwable {
if (par instanceof DelegatedFrom) {
DelegatedFrom d = (DelegatedFrom) par;
outAddrs(jgen, d.getDelegators());
return;
}
if (par instanceof DelegatedTo) {
DelegatedTo d = (DelegatedTo) par;
outAddrs(jgen, d.getDelegatees());
return;
}
if (par instanceof Member) {
Member m = (Member) par;
outAddrs(jgen, m.getGroups());
return;
}
}
Aggregations