public AppNavigationVo save(AppNavigationVo appnavigationVo) throws StaleObjectException, UniqueKeyViolationException { if (!appnavigationVo.isValidated()) throw new DomainRuntimeException("Navigation VO param was not validated "); DomainFactory factory = (DomainFactory) this.getDomainFactory(); AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, appnavigationVo); try { factory.save(domNav); } catch(UnqViolationUncheckedException e) { throw new UniqueKeyViolationException("A Navigation with the same name already exists."); } return AppNavigationVoAssembler.create(domNav); }
public void saveNavigation(AppNavigationVo nav) throws StaleObjectException, UniqueKeyViolationException { if (!nav.isValidated()) throw new DomainRuntimeException("Navigation VO param was not validated "); DomainFactory factory = this.getDomainFactory(); AppNavigation domNav = AppNavigationVoAssembler.extractAppNavigation(factory, nav); try { factory.save(domNav); } catch(UnqViolationUncheckedException e) { throw new UniqueKeyViolationException("A Navigation with the same name already exists."); } }
public AppNavigationVo getNavigation(AppNavigationRefVo navRefVo) { if (navRefVo == null) return null; return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRefVo)); }
/** * Gets a complet Navigation */ public ims.admin.vo.AppNavigationVo getNavigation(ims.admin.vo.AppNavShortVo navShort) { if (navShort == null || navShort.getID_AppNavigation() == null ) return null; DomainFactory factory = (DomainFactory) getDomainFactory(); AppNavigation appDO = (AppNavigation)factory.getDomainObject(AppNavigation.class,navShort.getID_AppNavigation()); return AppNavigationVoAssembler.create(appDO); }
public AppNavigationVo getNavigation(AppNavigationRefVo navRef) { return AppNavigationVoAssembler.create((AppNavigation)getDomainFactory().getDomainObject(navRef)); }