public String getDuration() { return entity.getDuration(); }
/** Return a BwDuration populated from the String duration. * * @return BwDuration * @throws CalFacadeException */ @NoProxy public BwDuration makeDurationBean() throws CalFacadeException { return BwDuration.makeDuration(getDuration()); }
public String getDuration() { String val = ref.getDuration(); if (val != null) { return val; } if (ref.getEmptyFlag(ProxiedFieldIndex.pfiDuration)) { return null; } return getTarget().getDuration(); }
public BwDuration makeDurationBean() throws CalFacadeException { String duration = ref.getDuration(); if (duration == null) { duration = getTarget().getDuration(); } return BwDuration.makeDuration(duration); }
if (ev.getDuration() != null && !ev.getDuration().isEmpty()) { ChangedPropertyType dur = new ChangedPropertyType(); dur.setName(PropertyInfoIndex.DURATION.name()); dur.setDataFrom(ev.getDuration()); dd.getDeletedProps().add(dur);
/** Generate a recurrence instance for the given master event * based on the recurrenceId and the date/time info in the master. * * @param master event * @param recurrenceId for the instance. * @return instance object filled in. * @throws CalFacadeException */ public static BwRecurrenceInstance fromRecurrencId(final BwEvent master, String recurrenceId) throws CalFacadeException { final String stzid = master.getDtstart().getTzid(); final boolean dateOnly = master.getDtstart().getDateType(); final BwDateTime rstart = BwDateTime.makeBwDateTime(dateOnly, recurrenceId, stzid); final BwDateTime rend = rstart.addDuration( BwDuration.makeDuration(master.getDuration())); final BwRecurrenceInstance ri = new BwRecurrenceInstance(); ri.setDtstart(rstart); ri.setDtend(rend); ri.setRecurrenceId(ri.getDtstart().getDate()); ri.setMaster(master); return ri; }
if (!durVal.equals(ev.getDuration())) { chg.changed(PropertyInfoIndex.DURATION, ev.getDuration(), durVal); ev.setDuration(durVal); if (!durVal.equals(ev.getDuration())) { chg.changed(PropertyInfoIndex.DURATION, ev.getDuration(), durVal); ev.setDuration(durVal);
DurationPropType dur = new DurationPropType(); dur.setDuration(val.getDuration()); pl.add(of.createDuration(dur));
ann.setDtend(end); ann.setDuration(ev.getDuration()); ann.setEndType(ev.getEndType()); ann.setCreatorHref(ev.getCreatorHref());
final Duration duration = new Duration(null, ev.getDuration()); rp.rangeEnd = getLatestRecurrenceDate(evprops, start, end, duration, } else { Dur evdur = new Dur(ev.getDuration()); Dur setback = evdur.add(new Dur(1, 0, 0, 0)); // Ensure at least a day
res.setDuration(getDuration()); res.setEndType(getEndType()); res.setTransparency(getTransparency());
Duration duration = new Duration(null, ev.getDuration());
/** * @return a copy suitable for tombstoning. */ @NoProxy public BwEvent cloneTombstone() { final BwEvent ev = new BwEventObj(); super.copyTo(ev); ev.setEntityType(getEntityType()); ev.setName(getName()); ev.setDtstart(getDtstart()); ev.setDtend(getDtend()); ev.setEndType(getEndType()); ev.setDuration(getDuration()); ev.setNoStart(getNoStart()); ev.setDeleted(getDeleted()); ev.setDtstamp(getDtstamp()); ev.setLastmod(getLastmod()); ev.setCreated(getCreated()); ev.setStag(getStag()); ev.setUid(getUid()); ev.setRecurring(false); ev.setTombstoned(true); //ev.setDtstamps(); return ev; }
addProperty(comp, new Duration(new Dur(val.getDuration())));
return stringMatch(ev.getDuration(), val);
ev.setDtend(getDtend()); ev.setEndType(getEndType()); ev.setDuration(getDuration()); ev.setNoStart(getNoStart());