Search in sources :

Example 1 with FixNamesEntity

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);
}
Also used : FixNamesEntity(org.bedework.calfacade.base.FixNamesEntity) BwEvent(org.bedework.calfacade.BwEvent) BwCalendar(org.bedework.calfacade.BwCalendar) CalFacadeException(org.bedework.calfacade.exc.CalFacadeException)

Aggregations

BwCalendar (org.bedework.calfacade.BwCalendar)1 BwEvent (org.bedework.calfacade.BwEvent)1 FixNamesEntity (org.bedework.calfacade.base.FixNamesEntity)1 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)1