/** * Gets recurrence id. * * @param comp The component. * @return The date. */ private final Date getRecurrenceId(Component comp) { RecurrenceId rid = (RecurrenceId) comp.getProperties().getProperty( Property.RECURRENCE_ID); return (rid != null) ? rid.getDate() : null; }
public Date getRecurrenceId() { RecurrenceId rid = getEvent().getRecurrenceId(); if (rid == null) { return null; } return rid.getDate(); }
public Date getRecurrenceId() { RecurrenceId rid = getEvent().getRecurrenceId(); if (rid == null) { return null; } return rid.getDate(); }
/** * Gets recurrence id. * * @param comp The component. * @return The date. */ private final Date getRecurrenceId(Component comp) { RecurrenceId rid = (RecurrenceId) comp.getProperties().getProperty( Property.RECURRENCE_ID); return (rid != null) ? rid.getDate() : null; }
event.setRecurrenceReferenceId(format.format(recurrenceId.getDate()));
/** * Sync exception. * @param event The event. * @param masterNote The master note. */ private void syncException(VEvent event, NoteItem masterNote) { NoteItem mod = getModification(masterNote, event.getRecurrenceId().getDate()); if (mod == null) { // create if not present createNoteModification(masterNote, event); } else { // update existing mod updateNoteModification(mod, event); } }
/** * Sync exception. * @param event The event. * @param masterNote The master note. */ private void syncException(VEvent event, NoteItem masterNote) { NoteItem mod = getModification(masterNote, event.getRecurrenceId().getDate()); if (mod == null) { // create if not present createNoteModification(masterNote, event); } else { // update existing mod updateNoteModification(mod, event); } }
private void parseJournal(VJournal journal) throws RDFParseException, RDFHandlerException, UnsupportedEncodingException { log.debug("parsing journal: {}", journal.getUid()); Resource r_event; String uriBase = ""; if(journal.getUid() != null) { uriBase = journal.getUid().getValue(); } else { uriBase = UUID.randomUUID().toString(); } if(journal.getRecurrenceId() != null) { uriBase += "-" + DF_DIGITS.format(journal.getRecurrenceId().getDate()); } if(journal.getSequence() != null) { uriBase += "-"+journal.getSequence().getSequenceNo(); } r_event = resolveURI(uriBase); Resource t_vevent = createURI(NS_ICAL + "Vjournal"); URI p_type = createURI(NS_RDF + "type"); rdfHandler.handleStatement(createStatement(r_event,p_type,t_vevent)); parseCalendarComponent(journal,r_event); }
private void parseEvent(VEvent event) throws RDFParseException, RDFHandlerException, UnsupportedEncodingException { log.debug("parsing event: {}", event.getUid()); Resource r_event; String uriBase = ""; if(event.getUid() != null) { uriBase = event.getUid().getValue(); } else { uriBase = UUID.randomUUID().toString(); } if(event.getRecurrenceId() != null) { uriBase += "-" + DF_DIGITS.format(event.getRecurrenceId().getDate()); } if(event.getSequence() != null) { uriBase += "-"+event.getSequence().getSequenceNo(); } r_event = resolveURI(uriBase); Resource t_vevent = createURI(NS_ICAL + "Vevent"); URI p_type = createURI(NS_RDF + "type"); rdfHandler.handleStatement(createStatement(r_event,p_type,t_vevent)); parseCalendarComponent(event,r_event); }
Date recurrenceIdDate = event.getRecurrenceId().getDate(); exceptions.put(recurrenceIdDate, event);
Date recurrenceIdDate = event.getRecurrenceId().getDate(); exceptions.put(recurrenceIdDate, event);
net.fortuna.ical4j.model.Date recurrenceIdToUse = rid == null ? recurrenceId : rid.getDate();
net.fortuna.ical4j.model.Date recurrenceIdToUse = rid == null ? recurrenceId : rid.getDate();
if (! p.intersects(getLimit())) { Dur duration = new Dur(start, end); start = new DateTime(rid.getDate()); end = (DateTime) org.unitedinternet.cosmo.calendar.util.Dates.getInstance(duration.getTime(start), start); p = new Period(start, end);
if (! p.intersects(getLimit())) { Dur duration = new Dur(start, end); start = new DateTime(rid.getDate()); end = (DateTime) org.unitedinternet.cosmo.calendar.util.Dates.getInstance(duration.getTime(start), start); p = new Period(start, end);
.getDate()).toString()); noteMod.setOwner(masterNote.getOwner()); noteMod.setName(noteMod.getUid());
.getDate()).toString()); noteMod.setOwner(masterNote.getOwner()); noteMod.setName(noteMod.getUid());