Java 类ims.ocrr.vo.domain.OrderEntryTemplateVoAssembler 实例源码

项目:AvoinApotti    文件:OrderEntryTemplateEditImpl.java   
/**
* getOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderEntryTemplate record = (OrderEntryTemplate)factory.getDomainObject(OrderEntryTemplate.class, recordID);
    if(record != null)
        return OrderEntryTemplateVoAssembler.create(record);

    return null;
}
项目:AvoinApotti    文件:OrderEntryTemplateEditImpl.java   
/**
* saveOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo saveOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order entry template not validated");

    OrderEntryTemplate doRecord = OrderEntryTemplateVoAssembler.extractOrderEntryTemplate(factory, record);

    factory.save(doRecord);

    return OrderEntryTemplateVoAssembler.create(doRecord);
}
项目:AvoinApotti    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openMAXIMS    文件:OrderEntryTemplateEditImpl.java   
/**
* getOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderEntryTemplate record = (OrderEntryTemplate)factory.getDomainObject(OrderEntryTemplate.class, recordID);
    if(record != null)
        return OrderEntryTemplateVoAssembler.create(record);

    return null;
}
项目:openMAXIMS    文件:OrderEntryTemplateEditImpl.java   
/**
* saveOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo saveOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order entry template not validated");

    OrderEntryTemplate doRecord = OrderEntryTemplateVoAssembler.extractOrderEntryTemplate(factory, record);

    factory.save(doRecord);

    return OrderEntryTemplateVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openMAXIMS    文件:OrderEntryTemplateEditImpl.java   
/**
* getOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderEntryTemplate record = (OrderEntryTemplate)factory.getDomainObject(OrderEntryTemplate.class, recordID);
    if(record != null)
        return OrderEntryTemplateVoAssembler.create(record);

    return null;
}
项目:openMAXIMS    文件:OrderEntryTemplateEditImpl.java   
/**
* saveOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo saveOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order entry template not validated");

    OrderEntryTemplate doRecord = OrderEntryTemplateVoAssembler.extractOrderEntryTemplate(factory, record);

    factory.save(doRecord);

    return OrderEntryTemplateVoAssembler.create(doRecord);
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}
项目:openmaxims-linux    文件:OrderEntryTemplateEditImpl.java   
/**
* getOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(Integer recordID)
{
    if(recordID == null)
        return null;

    DomainFactory factory = getDomainFactory();
    OrderEntryTemplate record = (OrderEntryTemplate)factory.getDomainObject(OrderEntryTemplate.class, recordID);
    if(record != null)
        return OrderEntryTemplateVoAssembler.create(record);

    return null;
}
项目:openmaxims-linux    文件:OrderEntryTemplateEditImpl.java   
/**
* saveOrderEntryTemplate
*/
public ims.ocrr.vo.OrderEntryTemplateVo saveOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateVo record) throws ims.domain.exceptions.DomainInterfaceException, ims.domain.exceptions.StaleObjectException
{
    DomainFactory factory = getDomainFactory();

    if(record.isValidated() == false)
        throw new DomainRuntimeException("Order entry template not validated");

    OrderEntryTemplate doRecord = OrderEntryTemplateVoAssembler.extractOrderEntryTemplate(factory, record);

    factory.save(doRecord);

    return OrderEntryTemplateVoAssembler.create(doRecord);
}
项目:openmaxims-linux    文件:SelectandOrderImpl.java   
/**
 * method will now get the template and filter any items that don't pass security checks WDEV-11071,WDEV-11109
 */
public ims.ocrr.vo.OrderEntryTemplateVo getOrderEntryTemplate(ims.ocrr.vo.OrderEntryTemplateShortVo orderEntryTemplate, RoleDisciplineSecurityLevelLiteGCVo voSecurity)
{
    OrderEntryTemplateVo voOrdTemplate = OrderEntryTemplateVoAssembler.create((OrderEntryTemplate)getDomainFactory().getDomainObject(OrderEntryTemplate.class, orderEntryTemplate.getID_OrderEntryTemplate()));

    //enforce Security here
    OrderEntryTemplateComponentShortVoCollection removableComponenets = new OrderEntryTemplateComponentShortVoCollection();
    for(OrderEntryTemplateComponentShortVo comp : voOrdTemplate.getComponents())
    {
        if(comp.getInvestigationIsNotNull())
        {
            if(voSecurity != null)
            {
                SecurityLevelAndServiceCheckVo voSecLevelAndService = getSecurityLevelAndServiceForInvestigation(comp.getInvestigation().getInvestigationIndex().getID_InvestigationIndex());
                if(voSecLevelAndService != null && voSecLevelAndService.getSecurityLevelIsNotNull() && voSecLevelAndService.getServiceIsNotNull())
                {
                    if(!voSecurity.doesInvPassSecurityCheck(voSecLevelAndService.getService(),voSecLevelAndService.getSecurityLevel(),true)) //WDEV-11622
                    {
                        removableComponenets.add(comp);
                        continue;
                    }
                }
            }
        }
    }

    if(removableComponenets.size() > 0)
    {
        for(OrderEntryTemplateComponentShortVo compToRemove : removableComponenets)
        {
            voOrdTemplate.getComponents().remove(compToRemove);
        }
    }

    return voOrdTemplate;
}