@Override public boolean fromVEvent(final TeamEventDO event, final VEvent vEvent) { if (vEvent.getSummary() != null) { event.setSubject(vEvent.getSummary().getValue()); return true; } return false; } }
@Override void mapToBean(net.fortuna.ical4j.model.Calendar cal, Object bean, PropertyDescriptor pd) { VEvent vevent = event(cal); if (vevent != null) { String s = getPropValue(vevent.getSummary()); propertyAccessor.set(bean, pd.getWriteMethod(), s); } }
if (vEvent.getSummary() != null && StringUtils.equals(vEvent.getSummary().getValue(), TeamCalConfig.SETUP_EVENT)) { continue;
public void parseEvent(EventResource r, String data) throws IOException, ParserException { CalendarBuilder builder = new CalendarBuilder(); net.fortuna.ical4j.model.Calendar calendar = builder.build(new ByteArrayInputStream(data.getBytes("UTF-8"))); if (calendar == null) { return; } VEvent ev = event(calendar); if( ev == null) { return ; } String summary = null; if (ev.getSummary() != null) { summary = ev.getSummary().getValue(); } r.setSummary(summary); r.setStart(ev.getStartDate().getDate()); Date endDate = null; if (ev.getEndDate() != null) { endDate = ev.getEndDate().getDate(); } r.setEnd(endDate); }
if (event.getSummary() != null) { note.setDisplayName(StringUtils.substring(event.getSummary() .getValue(), 0, 1024));
if (event.getSummary() != null) { note.setDisplayName(StringUtils.substring(event.getSummary() .getValue(), 0, 1024));
if (event.getSummary() != null) { ICalendarUtils.setSummary(event.getSummary().getValue(), event); } else if (note.getDisplayName()==null && isMod) { ICalendarUtils.setSummary(note.getModifies().getDisplayName(), event);
if (event.getSummary() != null) { ICalendarUtils.setSummary(event.getSummary().getValue(), event); } else if (note.getDisplayName()==null && isMod) { ICalendarUtils.setSummary(note.getModifies().getDisplayName(), event);