use of org.bedework.calfacade.base.FixNamesEntity in project bw-calendar-engine by Bedework.
the class DocBuilder method getHref.
/* ===================================================================
* package private methods
* =================================================================== */
String getHref(final BwShareableContainedDbentity val) throws CalFacadeException {
if (val instanceof BwEvent) {
return ((BwEvent) val).getHref();
}
if (val instanceof BwCalendar) {
return ((BwCalendar) val).getPath();
}
if (val instanceof FixNamesEntity) {
final FixNamesEntity ent = (FixNamesEntity) val;
ent.fixNames(basicSysprops, principal);
return ent.getHref();
}
throw new CalFacadeException("Unhandled class " + val);
}
Aggregations