@Override public void setFilterExpr(final String val) { entity.setFilterExpr(val); }
public void setFilterExpr(String val) { entity.setFilterExpr(val); }
/** Make this thing a tombstoned collection. Non-reversible */ public void tombstone() { if (getTombstoned()) { return; // Already tombstoned } setFilterExpr(tombstonedFilter); // XXX Schema /* We have to change the name and the path to avoid conflicts - * currently the lastmod is linked via the path - better linked by id */ /* I don't think this is true - the tombstoned version replaces the original - leave these alone setName(getName() + tombstonedSuffix); setPath(getPath() + tombstonedSuffix); getLastmod().setPath(getPath()); */ }
public BwCalendar shallowClone() { final BwCalendar cal = new BwCalendar(); super.copyTo(cal); cal.setName(getName()); cal.setPath(getPath()); cal.setSummary(getSummary()); cal.setDescription(getDescription()); cal.setMailListId(getMailListId()); cal.setCalType(getCalType()); cal.setCreated(getCreated()); final BwCollectionLastmod lm = (BwCollectionLastmod)getLastmod().clone(); lm.setDbEntity(cal); cal.setLastmod(lm); cal.setAliasUri(getAliasUri()); cal.setDisplay(getDisplay()); cal.setAffectsFreeBusy(getAffectsFreeBusy()); cal.setIgnoreTransparency(getIgnoreTransparency()); cal.setUnremoveable(getUnremoveable()); cal.setRefreshRate(getRefreshRate()); cal.setLastRefresh(getLastRefresh()); cal.setLastEtag(getLastEtag()); cal.setFilterExpr(getFilterExpr()); if (!Util.isEmpty(getCategoryHrefs())) { final Set<String> uids = new TreeSet<>(getCategoryHrefs()); cal.setCategoryHrefs(uids); } return cal; }