Project

General

Profile

« Previous | Next » 

Revision 6214

use shared getLogRecords method

View differences:

src/edu/ucsb/nceas/metacat/dataone/CNodeService.java
396 396
	  	return ObjectFormatService.getInstance().getFormat(fmtid);
397 397
			
398 398
	}
399
	
400
	/**
401
	 * Retrieves consolidated log information for the specified date range 
402
	 * (inclusive) for the entire DataONE infrastructure
403
	 * 
404
	 * @param session - the Session object containing the credentials for the Subject
405
	 * @param fromDate - Starting time for records in response
406
	 * @param toDate - End time for records in response. If not specified, then defaults to now.
407
	 * @param event - Return only log records for the specified type of event. Default is all.
408
	 * @param start - zero based offset from the first record in the 
409
	 *                set of matching log records. Used to assist with 
410
	 *                paging the response.
411
	 * @param count - maximum number of log records to return in the response. 
412
	 *                Used to assist with paging the response.
413
	 *                
414
	 * @return log - the log records requested
415
	 * 
416
	 * @throws InvalidRequest
417
	 * @throws ServiceFailure
418
	 * @throws InvalidToken
419
	 * @throws NotAuthorized
420
	 * @throws NotImplemented
421
	 */
422
	@Override
423
	/* TODO: update this when the API in d1_common adds the arguments */
424
	/*public Log getLogRecords(Session session, Date fromDate, Date toDate, 
425
	 *  Event event, Integer start, Integer count) */
426
	public Log getLogRecords(Session session, Date fromDate, Date toDate, Event event)
427
	  throws InvalidToken, InvalidRequest, ServiceFailure, NotAuthorized,
428
	  NotImplemented {
429 399

  
430
		/* return super.getLogRecords(session, fromDate, toDate, event, start, count); */
431
		return super.getLogRecords(session, fromDate, toDate, event, 0, 1000);
432
	}
433

  
434 400
	/**
435 401
   * Returns a list of all object formats registered in the DataONE Object 
436 402
   * Format Vocabulary

Also available in: Unified diff