@Override public Object clone() { final BwEventObj ev = new BwEventObj(); copyTo(ev); return ev; } }
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; }
BwEvent fb = new BwEventObj(); EventInfo ei = new EventInfo(fb);
final Set<BwAttendee> attendees, final Set<String> recipients) { BwEvent fbreq = new BwEventObj();
/** * @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; }