Project

General

Profile

« Previous | Next » 

Revision 6991

match changes to MN service methods (return type as boolean)

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
957 957
     * @throws NotImplemented
958 958
     */
959 959
    @Override
960
    public void synchronizationFailed(Session session, SynchronizationFailed syncFailed) 
960
    public boolean synchronizationFailed(Session session, SynchronizationFailed syncFailed) 
961 961
        throws NotImplemented, ServiceFailure, NotAuthorized {
962 962

  
963 963
        String localId;
......
981 981
          EventLog.getInstance().log(request.getRemoteAddr(), request.getHeader("User-Agent"), principal, localId, "synchronization_failed");
982 982
        } catch (Exception e) {
983 983
            throw new ServiceFailure("2161", "Could not log the error for: " + syncFailed.getPid());
984
    }
984
        }
985 985
        //EventLog.getInstance().log("CN URL WILL GO HERE", 
986 986
        //  session.getSubject().getValue(), localId, Event.SYNCHRONIZATION_FAILED);
987
        return true;
987 988

  
988 989
    }
989 990

  
......
1083 1084
     * @throws InvalidRequest
1084 1085
     * @throws InvalidToken
1085 1086
     */
1086
    public void systemMetadataChanged(Session session, Identifier pid,
1087
    public boolean systemMetadataChanged(Session session, Identifier pid,
1087 1088
        long serialVersion, Date dateSysMetaLastModified) 
1088 1089
        throws NotImplemented, ServiceFailure, NotAuthorized, InvalidRequest,
1089 1090
        InvalidToken {
......
1164 1165
            }
1165 1166
        }
1166 1167
        
1168
        return true;
1169
        
1167 1170
    }
1168 1171
    
1169 1172
    /*

Also available in: Unified diff