if (!authDao.hasAccess(systemId, secFunc, AccessMode.READ, cra)) {
ApplicationException.exception(DAOMessageID.UNAUTHORIZED.getMessage());
}
ResponseHandler<Role> rh = ctx.getResponseHandler();
RoleKey rk = new RoleKey(roleId);
Desc desc = descDao.readDesc(rk, cra);
if (desc == null) {
rh.addMessage(CommonMessageID.NOT_FOUND.getMessage());
return;
}
Role role = new Role();
role.setId(roleId);
role.setDescription(desc.getDescription());
role.setRevNo(desc.getRevNo());
role.setStamp(desc.getStamp());
role.setUserId(role.getUserId());
role.setItems(roleDao.readRole(roleId, cra));
rh.addRow(role);
}