Revision 6384
Added by Chris Jones over 12 years ago
MNodeService.java | ||
---|---|---|
496 | 496 |
|
497 | 497 |
SystemMetadata sysmeta = getSystemMetadata(session, pid); |
498 | 498 |
DescribeResponse describeResponse = |
499 |
new DescribeResponse(sysmeta.getObjectFormat(),
|
|
499 |
new DescribeResponse(sysmeta.getFmtid(),
|
|
500 | 500 |
sysmeta.getSize(), sysmeta.getDateSysMetadataModified(), sysmeta.getChecksum()); |
501 | 501 |
|
502 | 502 |
return describeResponse; |
... | ... | |
858 | 858 |
// if we are filtering by format |
859 | 859 |
if (formatId != null) { |
860 | 860 |
SystemMetadata sysmeta = IdentifierManager.getInstance().getSystemMetadata(pid.getValue()); |
861 |
if (!sysmeta.getObjectFormat().getFmtid().getValue().equals(formatId.getValue())) {
|
|
861 |
if (!sysmeta.getFmtid().getValue().equals(formatId.getValue())) { |
|
862 | 862 |
// does not match |
863 | 863 |
continue; |
864 | 864 |
} |
... | ... | |
959 | 959 |
|
960 | 960 |
} |
961 | 961 |
|
962 |
/** |
|
963 |
* TODO: Implement this for D1 Tier 4 functionality |
|
964 |
*/ |
|
965 |
@Override |
|
966 |
public InputStream getReplica(Session session, Identifier pid) |
|
967 |
throws InvalidRequest, InvalidToken, NotAuthorized, NotImplemented, |
|
968 |
ServiceFailure, NotFound { |
|
969 |
|
|
970 |
throw new NotImplemented("4870", "isReplicationAuthorized not implemented"); |
|
971 |
} |
|
972 |
|
|
962 | 973 |
} |
Also available in: Unified diff
Update classes to use the DataONE 0.6.4 schema and types. Major changes involve using BigInteger vs long in SystemMetadata.size, and using ObjectFormatIdentifier rather than Object format.