public void saveRoleDisciplineSecurity(RoleDisciplineSecurityLevelVoCollection voCollRoleDisciplineSecurity) throws StaleObjectException { DomainFactory factory = getDomainFactory(); List doLstRoleDispSec = RoleDisciplineSecurityLevelVoAssembler.extractRoleDisciplineSecurityLevelList(factory, voCollRoleDisciplineSecurity); Iterator it = doLstRoleDispSec.iterator(); while(it.hasNext()) { RoleDisciplineSecurityLevel doRoleDispSec = (RoleDisciplineSecurityLevel)it.next(); factory.save(doRoleDispSec); } }
public RoleDisciplineSecurityLevelVoCollection listRoleDisciplineSecurityLevelByRole(AppRoleRefVo voRole) { String hql = "from RoleDisciplineSecurityLevel rds where rds.role.id = " + voRole.getID_AppRole(); List lstRdss = getDomainFactory().find(hql); return RoleDisciplineSecurityLevelVoAssembler.createRoleDisciplineSecurityLevelVoCollectionFromRoleDisciplineSecurityLevel(lstRdss); }