Revision 7128
Added by ben leinfelder about 12 years ago
Eml210SAXHandler.java | ||
---|---|---|
191 | 191 |
*/ |
192 | 192 |
public Eml210SAXHandler(DBConnection conn, String action, String docid, |
193 | 193 |
String revision, String user, String[] groups, String pub, int serverCode, |
194 |
Date createDate, Date updateDate) throws SAXException { |
|
194 |
Date createDate, Date updateDate, boolean writeAccessRules) throws SAXException {
|
|
195 | 195 |
super(conn, action, docid, revision, user, groups, pub, serverCode, createDate, |
196 |
updateDate); |
|
196 |
updateDate, writeAccessRules);
|
|
197 | 197 |
// Get the unchangeable subtrees (user doesn't have write permission) |
198 | 198 |
try { |
199 | 199 |
|
... | ... | |
1180 | 1180 |
// This maybe cause user change the subtree id |
1181 | 1181 |
if (!super.getIsRevisionDoc()) { |
1182 | 1182 |
// write access rule to db |
1183 |
writeAccessRuleToDB(); |
|
1183 |
if (writeAccessRules) { |
|
1184 |
writeAccessRuleToDB(); |
|
1185 |
} |
|
1184 | 1186 |
// delete relation table |
1185 | 1187 |
deleteRelations(); |
1186 | 1188 |
// write relations |
Also available in: Unified diff
add a parameter for optionally writing EML-embedded access control rules to the Metacat DB.
https://redmine.dataone.org/issues/2584
https://redmine.dataone.org/issues/2583