Changeset 220
- Timestamp:
- 03/08/10 17:14:17 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/model/VirtualCollection.java
r215 r220 268 268 this.setType(vc.getType()); 269 269 this.setOrigin(vc.getOrigin()); 270 this.creator.setName(vc.getCreator().getName()); 271 this.creator.setEMail(vc.getCreator().getEMail()); 272 this.creator.setOrganisation(vc.getCreator().getOrganisation()); 270 Creator c = vc.getCreator(); 271 if (c != null) { 272 this.creator.setName(c.getName()); 273 this.creator.setEMail(c.getEMail()); 274 this.creator.setOrganisation(c.getOrganisation()); 275 } else { 276 this.creator = null; 277 } 273 278 274 279 HashMap<Integer, Resource> old_res = 275 280 new HashMap<Integer, Resource>(this.resources.size()); 276 for (Resource r : this.resources) {281 for (Resource r : this.resources) { 277 282 old_res.put(r.getSignature(), r); 278 283 279 284 } 280 285 HashMap<Integer, Resource> new_res = 281 286 new HashMap<Integer, Resource>(vc.getResources().size()); 282 for (Resource r : vc.getResources()) {287 for (Resource r : vc.getResources()) { 283 288 new_res.put(r.getSignature(), r); 284 289 }
Note: See TracChangeset
for help on using the changeset viewer.