Revision 830
Added by Matt Jones about 23 years ago
src/edu/ucsb/nceas/metacat/AccessControlList.java | ||
---|---|---|
383 | 383 |
// delete all acl records for resources related to @aclid if any |
384 | 384 |
PreparedStatement pstmt = conn.prepareStatement( |
385 | 385 |
"SELECT object FROM xml_relation " + |
386 |
"WHERE subject = ? " + |
|
387 |
"AND relationship = 'isRelatedTo'"); |
|
386 |
"WHERE subject = ? "); |
|
388 | 387 |
pstmt.setString(1,aclid); |
389 | 388 |
pstmt.execute(); |
390 | 389 |
ResultSet rs = pstmt.getResultSet(); |
Also available in: Unified diff
Removed the requirement that the relationship for ACL associations be
"isRelatedTo". Now the relationship in the triple can be anything, like
"describes access control rules for". This doesn't affect the ACL
processing because it is based on the ACL document type, not the
relationship. This will probably need to change in the future, because
we'll need to support multiple ACL doctypes as different versions of EML
are created. Jivka -- could you review this change please?