CommonRequestArgs cra = ctx.getRequest();
if (!authDao.hasAccess(systemId, secFunc, AccessMode.READ, cra)) {
ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
}
ResponseHandler<Object> rh = ctx.getResponseHandler();
Desc desc = descDao.readDesc(new GroupKey(groupId), cra);
if (desc == null) {
rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
return;
}
Group group = new Group();
group.setId(groupId);
group.setDescription(desc.getDescription());
group.setRevNo(desc.getRevNo());
group.setStamp(desc.getStamp());
group.setUserId(group.getUserId());
group.setItems(groupDao.readGroup(groupId, cra));
rh.addRow(group);
}