/** * StatusWorkflowConfigVo */ public ims.emergency.vo.StatusWorkflowConfigVo getStatusWorkflowConfigVo(ims.emergency.configuration.vo.StatusWorkflowConfigRefVo voRef) { if( voRef == null ) throw new CodingRuntimeException("StatusWorkflowConfigRefVo not provided"); DomainFactory factory = getDomainFactory(); StatusWorkflowConfig doSWC =(StatusWorkflowConfig) factory.getDomainObject(StatusWorkflowConfig.class, voRef.getID_StatusWorkflowConfig()); return StatusWorkflowConfigVoAssembler.create(doSWC); }
/** * StatusWorkflowConfigVo */ public ims.emergency.vo.StatusWorkflowConfigVoCollection listStatusWorkflowConfig() { DomainFactory factory = getDomainFactory(); return StatusWorkflowConfigVoAssembler.createStatusWorkflowConfigVoCollectionFromStatusWorkflowConfig(factory.listDomainObjects(StatusWorkflowConfig.class)).sort(); }
/** * StatusWorkflowConfigVo */ public ims.emergency.vo.StatusWorkflowConfigVo saveStatusWorkflowConfig(ims.emergency.vo.StatusWorkflowConfigVo voStatusWorkflowConfig) throws ims.domain.exceptions.StaleObjectException { DomainFactory factory = getDomainFactory(); if(voStatusWorkflowConfig.isValidated() == false) throw new DomainRuntimeException("StatusWorkflowConfig record not validated"); StatusWorkflowConfig doRecord = StatusWorkflowConfigVoAssembler.extractStatusWorkflowConfig(factory, voStatusWorkflowConfig); factory.save(doRecord); return StatusWorkflowConfigVoAssembler.create(doRecord); }