Changeset 2152


Ignore:
Timestamp:
08/24/12 15:16:03 (12 years ago)
Author:
olhsha
Message:

key stuff for fixing tickets 50 and 180 is discussed and coded

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  
    11package clarin.cmdi.componentregistry.rest;
    22
     3import clarin.cmdi.componentregistry.CMDComponentTypeWrapper;
    34import clarin.cmdi.componentregistry.ComponentRegistry;
    45import clarin.cmdi.componentregistry.ComponentRegistryException;
     
    797798                CMDComponentSpec spec = validator.getCMDComponentSpec();
    798799               
    799                 // Olha was here: remove filename from spec before it gets extended!!! recursion over all the components
     800                // Olha: removing filename from spec before it gets extended!!! recursion over all the components
    800801                List<CMDComponentType> listofcomponents=spec.getCMDComponent();
     802                CMDComponentTypeWrapper setnulls= new CMDComponentTypeWrapper();
     803               
    801804                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                //}
    804812               
    805813                try {
     
    936944        this.componentRegistryFactory = componentRegistryFactory;
    937945    }
     946   
     947   
    938948}
  • ComponentRegistry/branches/ComponentRegistry-1.13.0-olha/ComponentRegistry/src/test/java/clarin/cmdi/componentregistry/rest/ComponentRegistryRestServiceTest.java

    r1993 r2152  
    11411141        assertEquals(MDValidator.MISMATCH_ERROR, response.getErrors().get(0));
    11421142    }
     1143   
     1144   
    11431145}
Note: See TracChangeset for help on using the changeset viewer.