public AppTopButtonConfigVo getTopButtonConfiguration(AppTopButtonConfigRefVo config) { if (config == null) return null; return AppTopButtonConfigVoAssembler.create((AppTopButtonConfig)getDomainFactory().getDomainObject(config)); }
public AppTopButtonConfigVo saveConfiguration(AppTopButtonConfigVo configuration) throws StaleObjectException { if(configuration == null) throw new DomainRuntimeException("Invalid Top Button Configuration"); if(!configuration.isValidated()) throw new DomainRuntimeException("Top Button Configuration Not Validated"); DomainFactory factory = this.getDomainFactory(); AppTopButtonConfig domainObject = AppTopButtonConfigVoAssembler.extractAppTopButtonConfig(factory, configuration); factory.save(domainObject); return AppTopButtonConfigVoAssembler.create(domainObject); }
public AppTopButtonConfigVoCollection listConfigurations() { return AppTopButtonConfigVoAssembler.createAppTopButtonConfigVoCollectionFromAppTopButtonConfig(getDomainFactory().find("from AppTopButtonConfig as topb order by UPPER(topb.name) asc")); //WDEV-18196 }