Revision 4450
Added by ben leinfelder over 15 years ago
MetacatReplication.java | ||
---|---|---|
694 | 694 |
if (accessControlList != null) { |
695 | 695 |
for (int i = 0; i < accessControlList.size(); i++) { |
696 | 696 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
697 |
acfsf.insertPermissions(); |
|
698 |
MetacatReplication.replLog("document " + docid + " permissions added to DB"); |
|
697 |
if (!acfsf.accessControlExists()) { |
|
698 |
acfsf.insertPermissions(); |
|
699 |
MetacatReplication.replLog("document " + docid + " permissions added to DB"); |
|
700 |
} |
|
699 | 701 |
} |
700 | 702 |
} |
701 | 703 |
|
... | ... | |
865 | 867 |
if (accessControlList != null) { |
866 | 868 |
for (int i = 0; i < accessControlList.size(); i++) { |
867 | 869 |
AccessControlForSingleFile acfsf = (AccessControlForSingleFile) accessControlList.get(i); |
868 |
acfsf.insertPermissions(); |
|
869 |
MetacatReplication.replLog("datafile " + docid + " permissions added to DB"); |
|
870 |
if (!acfsf.accessControlExists()) { |
|
871 |
acfsf.insertPermissions(); |
|
872 |
MetacatReplication.replLog("datafile " + docid + " permissions added to DB"); |
|
873 |
} |
|
870 | 874 |
} |
871 | 875 |
} |
872 | 876 |
|
Also available in: Unified diff
check for existing access control rows before inserting (we do not need duplicate rows specifying the same access control)