@Test public void test1PopulateViewBean() { xGroupPermissionService.populateViewBean(xXGroupPermission); }
@Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; }
XGroupPermissionService extends XGroupPermissionServiceBase<XXGroupPermission, VXGroupPermission> { @Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; } }
XGroupPermissionService extends XGroupPermissionServiceBase<XXGroupPermission, VXGroupPermission> { @Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; } XGroupPermissionService(); }
XGroupPermissionService extends XGroupPermissionServiceBase<XXGroupPermission, VXGroupPermission> { @Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; } XGroupPermissionService(); @Override VXGroupPermission populateViewBean(XXGroupPermission xObj); List<VXGroupPermission> getPopulatedVXGroupPermissionList(List<XXGroupPermission> xgroupPermissionList,Map<Long, XXGroup> xXGroupMap,VXModuleDef vModuleDef); }
XGroupPermissionService extends XGroupPermissionServiceBase<XXGroupPermission, VXGroupPermission> { @Override public VXGroupPermission populateViewBean(XXGroupPermission xObj) { VXGroupPermission vObj = super.populateViewBean(xObj); XXGroup xGroup = daoManager.getXXGroup().getById( xObj.getGroupId()); if (xGroup == null) { throw restErrorUtil.createRESTException(xGroup + " is Not Found", MessageEnums.DATA_NOT_FOUND); } vObj.setGroupName(xGroup.getName()); return vObj; } XGroupPermissionService(); @Override VXGroupPermission populateViewBean(XXGroupPermission xObj); List<VXGroupPermission> getPopulatedVXGroupPermissionList(List<XXGroupPermission> xgroupPermissionList,Map<Long, XXGroup> xXGroupMap,VXModuleDef vModuleDef);  }