use of com.ngtesting.platform.vo.TestProjectAccessHistoryVo in project ngtesting-platform by aaronchen2k.
the class ProjectServiceImpl method genHistoryVos.
@Override
public List<TestProjectAccessHistoryVo> genHistoryVos(List<TestProjectAccessHistory> pos) {
List<TestProjectAccessHistoryVo> voList = new LinkedList<TestProjectAccessHistoryVo>();
for (TestProjectAccessHistory po : pos) {
TestProjectAccessHistoryVo vo = genHistoryVo(po);
voList.add(vo);
}
return voList;
}
use of com.ngtesting.platform.vo.TestProjectAccessHistoryVo in project ngtesting-platform by aaronchen2k.
the class OrgServiceImpl method setDefaultPers.
@Override
public void setDefaultPers(Long orgId, UserVo userVo) {
TestUser user = (TestUser) get(TestUser.class, userVo.getId());
user.setDefaultOrgId(orgId);
List<TestProjectAccessHistoryVo> recentProjects = projectService.listRecentProjectVo(orgId, userVo.getId());
user.setDefaultPrjId(recentProjects.get(0).getProjectId());
saveOrUpdate(user);
userVo.setDefaultOrgId(user.getDefaultOrgId());
userVo.setDefaultPrjId(recentProjects.get(0).getProjectId());
}
use of com.ngtesting.platform.vo.TestProjectAccessHistoryVo in project ngtesting-platform by aaronchen2k.
the class ProjectServiceImpl method genHistoryVo.
@Override
public TestProjectAccessHistoryVo genHistoryVo(TestProjectAccessHistory po) {
if (po == null) {
return null;
}
TestProjectAccessHistoryVo vo = new TestProjectAccessHistoryVo();
BeanUtilEx.copyProperties(vo, po);
vo.setProjectName(po.getProjectName());
return vo;
}
Aggregations