public ims.core.vo.FloorLayoutVo get(ims.core.layout.vo.FloorLayoutRefVo id) { if(id == null) throw new DomainRuntimeException("Invalid Floor Layout"); return FloorLayoutVoAssembler.create((FloorLayout)getDomainFactory().getDomainObject(id)); }
public ims.core.vo.FloorLayoutVo save(ims.core.vo.FloorLayoutVo value) throws StaleObjectException { if(value == null) throw new DomainRuntimeException("Invalid Floor Layout"); if(!value.isValidated()) throw new DomainRuntimeException("Floor Layout was not validated"); DomainFactory domainFactory = getDomainFactory(); FloorLayout domainObject = FloorLayoutVoAssembler.extractFloorLayout(domainFactory, value); domainFactory.save(domainObject); return FloorLayoutVoAssembler.create(domainObject); }