Revision 6855
Added by ben leinfelder almost 13 years ago
src/edu/ucsb/nceas/metacat/dataone/SystemMetadataFactory.java | ||
---|---|---|
342 | 342 |
} |
343 | 343 |
|
344 | 344 |
// process the data |
345 |
boolean remoteData = false; |
|
345 | 346 |
String dataDocLocalId = null; |
346 | 347 |
Identifier dataGuid = new Identifier(); |
347 | 348 |
|
... | ... | |
374 | 375 |
session.setSubject(submitter); |
375 | 376 |
MockHttpServletRequest request = new MockHttpServletRequest(null, null, null); |
376 | 377 |
MNodeService.getInstance(request).insertDataObject(dataObject, dataGuid, session); |
378 |
|
|
379 |
remoteData = true; |
|
377 | 380 |
} |
378 | 381 |
} |
379 | 382 |
|
... | ... | |
440 | 443 |
ObjectFormatIdentifier newFmtid = new ObjectFormatIdentifier(); |
441 | 444 |
newFmtid.setValue("application/octet-stream"); |
442 | 445 |
} |
443 |
|
|
446 |
|
|
447 |
// inherit access rules from metadata, if we don't have our own |
|
448 |
if (remoteData) { |
|
449 |
dataSysMeta.setAccessPolicy(sysMeta.getAccessPolicy()); |
|
450 |
// TODO: use access rules defined in EML, per data file |
|
451 |
} |
|
452 |
|
|
444 | 453 |
// update the values |
445 | 454 |
HazelcastService.getInstance().getSystemMetadataMap().put(dataSysMeta.getIdentifier(), dataSysMeta); |
446 | 455 |
|
Also available in: Unified diff
use inherited access control from EML for the data file we download from a remote source
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5522