public void setUid(String val) { entity.setUid(val); }
private static EventInfo makeNewEvent(final IcalCallback cb, final int entityType, final String uid, final String colPath) throws CalFacadeException { final BwEvent ev = new BwEventObj(); final EventInfo evinfo = new EventInfo(ev); //ev.setDtstamps(); ev.setEntityType(entityType); ev.setCreatorHref(cb.getPrincipal().getPrincipalRef()); ev.setOwnerHref(cb.getOwner().getPrincipalRef()); ev.setUid(uid); ev.setColPath(colPath); final ChangeTable chg = evinfo.getChangeset(cb.getPrincipal().getPrincipalRef()); chg.changed(PropertyInfoIndex.UID, null, uid); // get that out of the way evinfo.setNewEvent(true); return evinfo; }
res.setColPath(getColPath()); res.setName(getName()); res.setUid(getUid()); res.setRecurrenceId(getRecurrenceId()); res.setRecurring(false);
/** * @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; }
ev.setUid(getUid()); ev.setTransparency(getTransparency()); ev.setPercentComplete(getPercentComplete());