Project

General

Profile

Revision 6213

Remove isAuthorized(), setAccessPolicy(), and getLogRecords() methods since they're implemented in the superclass.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
358 358
  @Override
359 359
	public Node getCapabilities() throws NotImplemented, NotAuthorized,
360 360
	    ServiceFailure, InvalidRequest {
361
		// TODO Auto-generated method stub
362
		return null;
363
	}
364 361

  
365
	/**
366
	 * Return the log records associated with a given event between the start and 
367
	 * end dates listed given a particular Subject listed in the Session
368
	 * 
369
	 * @param session - the Session object containing the credentials for the Subject
370
	 * @param fromDate - the start date of the desired log records
371
	 * @param event - Return only log records for the specified type of event. Default is all.
372
	 * @param start - zero based offset from the first record in the 
373
	 *                set of matching log records. Used to assist with 
374
	 *                paging the response.
375
	 * @param count - maximum number of log records to return in the response. 
376
	 *                Used to assist with paging the response.
377
	 *                
378
	 * @return log - the log records requested
379
	 * 
380
	 * @throws InvalidToken
381
	 * @throws ServiceFailure
382
	 * @throws NotAuthorized
383
	 * @throws InvalidRequest
384
	 * @throws NotImplemented
385
	 */
386
  @Override
387
	public Log getLogRecords(Session session, Date fromDate, Date toDate, Event event,
388
	  Integer start, Integer count)
389
    throws InvalidToken, ServiceFailure, NotAuthorized, InvalidRequest, 
390
    NotImplemented {
391

  
392 362
		return null;
393 363
	}
394 364

  
......
440 410
		return false;
441 411
	}
442 412

  
443
	/**
444
   * Test if the user identified by the provided token has authorization 
445
   * for operation on the specified object.
446
 	 * 
447
	 * @param session - the Session object containing the credentials for the Subject
448
	 * @param pid - The identifier of the resource for which access is being checked
449
	 * @param action - The type of permission which is being requested for the given pid
450
	 *
451
	 * @return true if the action is allowed
413
  /**
414
   * A callback method used by a CN to indicate to a MN that it cannot 
415
   * complete synchronization of the science metadata identified by pid
416
   * 
417
   * @param session
418
   * @param syncFailed
452 419
	 * 
453 420
	 * @throws ServiceFailure
454
	 * @throws InvalidToken
455
	 * @throws NotFound
456 421
	 * @throws NotAuthorized
457
	 * @throws NotImplemented
458 422
	 * @throws InvalidRequest
459
	 */	
460
	@Override
461
	public boolean isAuthorized(Session session, Identifier pid, Permission operation)
462
	  throws ServiceFailure, InvalidRequest, InvalidToken, NotFound,
463
	  NotAuthorized, NotImplemented {
464

  
465
		return false;
466
	}
467

  
468
	/**
469
	 * Set access for a given object using the object identifier and a Subject
470
	 * under a given Session.
471
	 * 
472
	 * @param session - the Session object containing the credentials for the Subject
473
	 * @param pid - the object identifier for the given object to apply the policy
474
	 * @param policy - the access policy to be applied
475
	 * 
476
	 * @return true if the application of the policy succeeds
477
	 * 
478
	 * @throws InvalidToken
479
	 * @throws ServiceFailure
480
	 * @throws NotFound
481
	 * @throws NotAuthorized
482 423
	 * @throws NotImplemented
483
	 * @throws InvalidRequest
484
	 */
424
   */
485 425
	@Override
486
	public boolean setAccessPolicy(Session session, Identifier pid,
487
	  AccessPolicy accessPolicy) 
488
	  throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, 
489
	  NotImplemented, InvalidRequest {
426
  public void synchronizationFailed(Session session, SynchronizationFailed syncFailed)
427
      throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest {
490 428

  
491
		return false;
492
	}
493

  
494
	@Override
495
	public void synchronizationFailed(Session arg0, SynchronizationFailed arg1)
496
			throws NotImplemented, ServiceFailure, NotAuthorized,
497
			InvalidRequest {
498
		// TODO Auto-generated method stub
499 429
		
500
	}
430
  }
501 431

  
502 432
}

Also available in: Unified diff