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

项目:AvoinApotti    文件:SelectandOrderImpl.java   
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
    if (role == null || role.getId() < 1)
        throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");

    List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());

    RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();

    //to flag we have hit db once already
    voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
    voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));

    return voRoleDisciplineSecurityLevels;
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
    if (role == null || role.getId() < 1)
        throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");

    List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());

    RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();

    //to flag we have hit db once already
    voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
    voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));

    return voRoleDisciplineSecurityLevels;
}
项目:openMAXIMS    文件:SelectandOrderImpl.java   
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
    if (role == null || role.getId() < 1)
        throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");

    List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());

    RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();

    //to flag we have hit db once already
    voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
    voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));

    return voRoleDisciplineSecurityLevels;
}
项目:openmaxims-linux    文件:SelectandOrderImpl.java   
public RoleDisciplineSecurityLevelLiteGCVo getRoleDisciplineSecurityLevels(IAppRole role)
{
    if (role == null || role.getId() < 1)
        throw new CodingRuntimeException("voRole is null or id not provided in method getRoleDisciplineSecurityLevels");

    List roleDispSecs = getDomainFactory().find("from RoleDisciplineSecurityLevel roleDisp where roleDisp.role.id = " + role.getId());

    RoleDisciplineSecurityLevelLiteGCVo voRoleDisciplineSecurityLevels = new RoleDisciplineSecurityLevelLiteGCVo();

    //to flag we have hit db once already
    voRoleDisciplineSecurityLevels.setIsConfigLoaded(true);
    voRoleDisciplineSecurityLevels.setRoleDisciplineSecurityLevels(RoleDisciplineSecurityLevelLiteVoAssembler.createRoleDisciplineSecurityLevelLiteVoCollectionFromRoleDisciplineSecurityLevel(roleDispSecs));

    return voRoleDisciplineSecurityLevels;
}