Search in sources :

Example 1 with DelegatedFrom

use of net.fortuna.ical4j.model.parameter.DelegatedFrom 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));
    }
}
Also used : Role(net.fortuna.ical4j.model.parameter.Role) CuType(net.fortuna.ical4j.model.parameter.CuType) DelegatedTo(net.fortuna.ical4j.model.parameter.DelegatedTo) Language(net.fortuna.ical4j.model.parameter.Language) SentBy(net.fortuna.ical4j.model.parameter.SentBy) Cn(net.fortuna.ical4j.model.parameter.Cn) DelegatedFrom(net.fortuna.ical4j.model.parameter.DelegatedFrom) Dir(net.fortuna.ical4j.model.parameter.Dir) Member(net.fortuna.ical4j.model.parameter.Member) ScheduleStatus(net.fortuna.ical4j.model.parameter.ScheduleStatus)

Example 2 with DelegatedFrom

use of net.fortuna.ical4j.model.parameter.DelegatedFrom 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;
    }
}
Also used : DelegatedTo(net.fortuna.ical4j.model.parameter.DelegatedTo) DelegatedFrom(net.fortuna.ical4j.model.parameter.DelegatedFrom) Member(net.fortuna.ical4j.model.parameter.Member)

Aggregations

DelegatedFrom (net.fortuna.ical4j.model.parameter.DelegatedFrom)2 DelegatedTo (net.fortuna.ical4j.model.parameter.DelegatedTo)2 Member (net.fortuna.ical4j.model.parameter.Member)2 Cn (net.fortuna.ical4j.model.parameter.Cn)1 CuType (net.fortuna.ical4j.model.parameter.CuType)1 Dir (net.fortuna.ical4j.model.parameter.Dir)1 Language (net.fortuna.ical4j.model.parameter.Language)1 Role (net.fortuna.ical4j.model.parameter.Role)1 ScheduleStatus (net.fortuna.ical4j.model.parameter.ScheduleStatus)1 SentBy (net.fortuna.ical4j.model.parameter.SentBy)1