/** Return path if this is an alias to an internal calendar. * * @return String path if this is an alias to an internal calendar otherwise null. */ @NoProxy @NoDump public String getInternalAliasPath() { if (!getInternalAlias()) { return null; } final String uri = getAliasUri(); if (uri == null) { return null; } if (uri.startsWith(CalFacadeDefs.bwUriPrefix)) { return uri.substring(CalFacadeDefs.bwUriPrefix.length()); } return null; }
/** return the end of the chain of aliases or this object if not an alias. * Assumes aliases have been resolved. * * @return boolean true if this is some sort of alias. */ @NoProxy @NoDump @JsonIgnore public BwCalendar getAliasedEntity() { BwCalendar coll = this; while ((coll != null) && coll.getInternalAlias()) { coll = coll.getAliasTarget(); } return coll; }
/** true if this is some sort of alias * * @return boolean true if this is some sort of alias. */ @NoProxy @NoDump public boolean getAlias() { return getInternalAlias() || getExternalSub(); }
if (cal.getInternalAlias()) { BwCalendar target = parser.resolveAlias(cal, false); if (target == null) {