@Override public int getCalType() { /* BwCalendar entColl = entity.getAliasedEntity(); if (entColl == null) { return entity.getCalType(); } return entColl.getCalType(); */ return entity.getCalType(); }
@Override public boolean getInternalAlias() { return entity.getCalType() == calTypeAlias; }
@Override public boolean getExternalSub() { return entity.getCalType() == calTypeExtSub; }
public int getCalType() { return entity.getCalType(); }
/** true if this is a special collection * * @return boolean */ @NoDump public boolean getSpecial() { return collectionInfo[getCalType()].special; }
/** true if this is to 'hold' calendar objects * * @return boolean true if this is to 'hold' calendar objects */ @NoDump public boolean getCalendarCollection() { return collectionInfo[getCalType()].onlyCalEntities; }
/** true if this can be the target of an alias * * @return boolean */ @NoDump public boolean getCanAlias() { return collectionInfo[getCalType()].canAlias; }
@Override public CollectionInfo getCollectionInfo() { return getCollectionInfo(entity.getCalType()); }
/** * @return the supported vpoll components */ @NoDump public List<String> getVpollSupportedComponents() { if (vpollSupportedComponents == null) { vpollSupportedComponents = new ArrayList<String>(); if ((getCalType() != calTypePoll) && (getCalType() != calTypeInbox) && (getCalType() != calTypeOutbox)) { return vpollSupportedComponents; } String slist = getQproperty(CaldavTags.vpollSupportedComponentSet); if (slist == null) { vpollSupportedComponents.add("VEVENT"); //vpollSupportedComponents.add("VTODO"); //vpollSupportedComponents.add("VAVAILABILITY"); } else { String[] ss = slist.split(","); for (String s: ss) { vpollSupportedComponents.add(s); } } } return vpollSupportedComponents; }
/** * @return CollectionInfo for this entity */ @NoDump public CollectionInfo getCollectionInfo() { return getCollectionInfo(getCalType()); }
supportedComponents = new ArrayList<>(); final int ctype = getCalType();
/** true if this is an alias to an external calendar. * * @return boolean true if this is an alias to an external calendar. */ @NoProxy @NoDump @NoWrap public boolean getExternalSub() { return getCalType() == calTypeExtSub; }
/** true if this is an alias to an internal calendar. * * @return boolean true if this is an alias to an internal calendar. */ @NoProxy @NoDump @NoWrap public boolean getInternalAlias() { return getCalType() == calTypeAlias; }
if (cal.getCalType() == BwCalendar.calTypeEventList) { OrCalFilter ocf = new OrCalFilter(); (cal.getCalType() != BwCalendar.calTypeCalendarCollection) && (cal.getCalType() != BwCalendar.calTypeExtSub)) { return null; if (cal.getCalType() == BwCalendar.calTypeFolder) { return anded(fltr, makeFolderFilter(cal, pathElements));
/** * @return a copy for tombstoning. */ public BwCalendar makeTombstoneCopy() { final BwCalendar col = new BwCalendar(); super.copyTo(col); col.setName(getName()); col.setPath(getPath()); col.setCalType(getCalType()); col.setCreated(getCreated()); col.setLastmod((BwCollectionLastmod)getLastmod().clone()); col.setAliasUri(getAliasUri()); return col; }
ts.append("calType", getCalType());
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; }
(col.getCalType() == BwCalendar.calTypeFolder)) {
(cal.getCalType() != BwCalendar.calTypeInbox) && (cal.getCalType() != BwCalendar.calTypePendingInbox) && (cal.getCalType() != BwCalendar.calTypeOutbox)) { if (logger.debug()) { logger.debug("TRANS-TO_EVENT: try to fetch event with guid=" + guid);