public ims.core.vo.MskGroupVo saveMskGroup(ims.core.vo.MskGroupVo group) throws ims.domain.exceptions.StaleObjectException { if (!group.isValidated()) { throw new DomainRuntimeException("MskGroupVo has not been validated"); } DomainFactory factory = getDomainFactory(); MskGroups doGroup = MskGroupVoAssembler.extractMskGroups(factory, group); try { factory.save(doGroup); } catch (DomainException e) { throw new DomainRuntimeException("Error saving MskGroup",e); } group.setID_MskGroups(doGroup.getId()); return group; }
public ims.core.vo.MskGroupVoCollection listMskGroup(Boolean activeOnly) { DomainFactory factory = getDomainFactory(); return MskGroupVoAssembler.createMskGroupVoCollectionFromMskGroups(factory.listDomainObjects(MskGroups.class)); }