Project

General

Profile

« Previous | Next » 

Revision 6660

get params from multipart params for systemMetadataChanged call

View differences:

MNResourceHandler.java
326 326
        String dateSysMetaLastModifiedStr = null;
327 327
        Identifier pid = null;
328 328
        
329
        // mkae sure we have the multipart params
330
        try {
331
			initMultipartParams();
332
		} catch (Exception e1) {
333
			throw new ServiceFailure("1333", "Could not collect the multipart params for the request");
334
		}
335
        
329 336
        // get the pid
330 337
        try {
331
        	String id = params.get("pid")[0];
338
        	String id = multipartparams.get("pid").get(0);
332 339
        	pid = new Identifier();
333 340
            pid.setValue(id);            
334 341
        } catch (NullPointerException e) {
......
339 346
        
340 347
        // get the serialVersion
341 348
        try {
342
            serialVersionStr = params.get("serialVersion")[0];
349
            serialVersionStr = multipartparams.get("serialVersion").get(0);
343 350
            serialVersion = new Long(serialVersionStr).longValue();
344 351
            
345 352
        } catch (NullPointerException e) {
......
351 358
        
352 359
        // get the dateSysMetaLastModified
353 360
        try {
354
            dateSysMetaLastModifiedStr = params.get("dateSysMetaLastModified")[0];
361
            dateSysMetaLastModifiedStr = multipartparams.get("dateSysMetaLastModified").get(0);
355 362
            dateSysMetaLastModified = DateTimeMarshaller.deserializeDateToUTC(dateSysMetaLastModifiedStr);
356 363
            
357 364
        } catch (NullPointerException e) {

Also available in: Unified diff