From: Gorris R. <Rob...@cr...> - 2006-03-06 09:26:09
|
Dear, =20 I have a patch suggestion for the freebxml registry. My suggestion concerns the org.freebxml.omar.server.common.ServerRequestContext class. I think my patch should help in checking/resolving object references. =20 485c485 < if (!(getSubmittedObjectsMap().containsKey(refId))) { --- > if (!(getRegistryObject(refId))) { 982,986c982,991 < if (o instanceof RegistryObjectType) { < RegistryObjectType ro =3D = (RegistryObjectType)o; < //Get Set of ids for objects referenced from obj < Set refIds =3D bu.getObjectRefsInRegistryObject(ro, getIdMap(), new HashSet(), -1); < referencedObjectIds.add(refIds); --- > if (o instanceof Map.Entry) { > if (((Map.Entry)o).getValue() instanceof RegistryObjectType) { > RegistryObjectType ro =3D (RegistryObjectType)((Map.Entry)o).getValue(); > //Get Set of ids for objects referenced from obj > Set refIds =3D bu.getObjectRefsInRegistryObject(ro, getIdMap(), new HashSet(), -1); > Iterator refI =3D refIds.iterator(); > while( refI.hasNext() ){ > referencedObjectIds.add(refI.next()); > } > } =20 Thanks & Kind regards, =20 Robin Gorris =20 |