Revision 4419
Added by ben leinfelder over 15 years ago
ReplicationHandler.java | ||
---|---|---|
365 | 365 |
remoteserver, tableName, true,// true is for time replication |
366 | 366 |
createdDate, |
367 | 367 |
updatedDate); |
368 |
|
|
369 |
//process extra access rules |
|
370 |
Vector accessControlList = (Vector) docinfoHash.get("accessControl"); |
|
371 |
if (accessControlList != null) { |
|
372 |
for (int i = 0; i < accessControlList.size(); i++) { |
|
373 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
|
374 |
acfsf.insertPermissions(); |
|
375 |
} |
|
376 |
} |
|
377 |
|
|
368 | 378 |
logMetacat.info("Successfully replicated doc " + accNumber); |
369 | 379 |
if (tableName.equals(DocumentImpl.DOCUMENTTABLE)) |
370 | 380 |
{ |
... | ... | |
481 | 491 |
createdDate, |
482 | 492 |
updatedDate); |
483 | 493 |
|
494 |
//process extra access rules |
|
495 |
Vector accessControlList = (Vector) docinfoHash.get("accessControl"); |
|
496 |
if (accessControlList != null) { |
|
497 |
for (int i = 0; i < accessControlList.size(); i++) { |
|
498 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
|
499 |
acfsf.insertPermissions(); |
|
500 |
} |
|
501 |
} |
|
502 |
|
|
484 | 503 |
logMetacat.info("Successfully to write datafile " + accNumber); |
485 | 504 |
/*MetacatReplication.replLog("wrote datafile " + accNumber + " from " + |
486 | 505 |
remoteserver);*/ |
Also available in: Unified diff
replicate xml_access entries across servers.
see: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=3464
note: still needs to be tested...but needed to be checked in for other metacat installations to be updated....