Revision 7012
Added by Chris Jones almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/CNodeService.java | ||
---|---|---|
1470 | 1470 |
return objectList; |
1471 | 1471 |
} |
1472 | 1472 |
|
1473 |
/** |
|
1474 |
* |
|
1475 |
*/ |
|
1473 |
|
|
1474 |
/** |
|
1475 |
* Returns a list of checksum algorithms that are supported by DataONE. |
|
1476 |
* @return cal the list of checksum algorithms |
|
1477 |
* |
|
1478 |
* @throws ServiceFailure |
|
1479 |
* @throws NotImplemented |
|
1480 |
*/ |
|
1476 | 1481 |
@Override |
1477 |
public ChecksumAlgorithmList listChecksumAlgorithms()
|
|
1482 |
public ChecksumAlgorithmList listChecksumAlgorithms()
|
|
1478 | 1483 |
throws ServiceFailure, NotImplemented { |
1479 | 1484 |
ChecksumAlgorithmList cal = new ChecksumAlgorithmList(); |
1480 | 1485 |
cal.addAlgorithm("MD5"); |
1481 | 1486 |
cal.addAlgorithm("SHA-1"); |
1482 |
return null; |
|
1487 |
return cal; |
|
1488 |
|
|
1483 | 1489 |
} |
1484 | 1490 |
|
1485 | 1491 |
} |
Also available in: Unified diff
CNodeService.listChecksumAlgorithms() was returning null rather than the list. Fixed.