Project

General

Profile

« Previous | Next » 

Revision 6609

D1NodeService get(), getSystemMetadata(), and isAuthorized() no longer throw InvalidRequest.

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
442 442
   */
443 443
  public InputStream get(Session session, Identifier pid) 
444 444
    throws InvalidToken, ServiceFailure, NotAuthorized, NotFound, 
445
    NotImplemented, InvalidRequest {
445
    NotImplemented {
446 446
    
447 447
    InputStream inputStream = null; // bytes to be returned
448 448
    handler = new MetacatHandler(new Timer());
......
508 508
   */
509 509
  public SystemMetadata getSystemMetadata(Session session, Identifier pid)
510 510
      throws InvalidToken, ServiceFailure, NotAuthorized, NotFound,
511
      InvalidRequest, NotImplemented {
511
      NotImplemented {
512 512
      
513 513
      if (!isAuthorized(session, pid, Permission.READ)) {
514 514
        throw new NotAuthorized("1400", Permission.READ + " not allowed on " + pid.getValue());  
......
547 547
   */
548 548
  public boolean isAuthorized(Session session, Identifier pid, Permission permission)
549 549
    throws ServiceFailure, InvalidToken, NotFound, NotAuthorized,
550
    NotImplemented, InvalidRequest {
550
    NotImplemented {
551 551

  
552 552
    boolean allowed = false;
553 553
    

Also available in: Unified diff