Changeset 2152
- Timestamp:
- 08/24/12 15:16:03 (12 years ago)
- Location:
- ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/main/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestService.java
r2150 r2152 1 1 package clarin.cmdi.componentregistry.rest; 2 2 3 import clarin.cmdi.componentregistry.CMDComponentTypeWrapper; 3 4 import clarin.cmdi.componentregistry.ComponentRegistry; 4 5 import clarin.cmdi.componentregistry.ComponentRegistryException; … … 797 798 CMDComponentSpec spec = validator.getCMDComponentSpec(); 798 799 799 // Olha was here: removefilename from spec before it gets extended!!! recursion over all the components800 // Olha: removing filename from spec before it gets extended!!! recursion over all the components 800 801 List<CMDComponentType> listofcomponents=spec.getCMDComponent(); 802 CMDComponentTypeWrapper setnulls= new CMDComponentTypeWrapper(); 803 801 804 for (CMDComponentType currentcomponent : listofcomponents) { 802 currentcomponent.setFilename(null); 803 } 805 setnulls.setFileNamesToNull(currentcomponent); 806 } 807 808 //for (CMDComponentType currentcomponent : listofcomponents) { 809 //((CMDComponentTypeWrapper) currentcomponent). setFileNamesToNull(); 810 811 //} 804 812 805 813 try { … … 936 944 this.componentRegistryFactory = componentRegistryFactory; 937 945 } 946 947 938 948 } -
ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestServiceTest.java
r1993 r2152 1141 1141 assertEquals(MDValidator.MISMATCH_ERROR, response.getErrors().get(0)); 1142 1142 } 1143 1144 1143 1145 }
Note: See TracChangeset
for help on using the changeset viewer.