Java 类ims.core.vo.domain.FloorLayoutVoAssembler 实例源码

项目:AvoinApotti    文件:BayFloorPlanDesignerImpl.java   
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));
}
项目:AvoinApotti    文件:BayFloorPlanDesignerImpl.java   
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);
}
项目:openMAXIMS    文件:BayFloorPlanDesignerImpl.java   
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));
}
项目:openMAXIMS    文件:BayFloorPlanDesignerImpl.java   
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);
}
项目:openMAXIMS    文件:BayFloorPlanDesignerImpl.java   
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));
}
项目:openMAXIMS    文件:BayFloorPlanDesignerImpl.java   
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);
}
项目:openmaxims-linux    文件:BayFloorPlanDesignerImpl.java   
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));
}
项目:openmaxims-linux    文件:BayFloorPlanDesignerImpl.java   
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);
}