Revision 899
Added by berkley about 22 years ago
AccessControlList.java | ||
---|---|---|
319 | 319 |
|
320 | 320 |
// insert into db calculated permission for the list of principals |
321 | 321 |
try { |
322 |
// System.out.println("before insertPermission " +leavingTagName); |
|
323 | 322 |
// go through the objects in xml_relation about this acl doc |
324 | 323 |
for (int i=0; i < aclObjects.size(); i++) { |
325 | 324 |
// docid of the current object |
326 | 325 |
String docid = (String)aclObjects.elementAt(i); |
327 | 326 |
DocumentIdentifier docID = new DocumentIdentifier(docid); |
328 | 327 |
docid = docID.getIdentifier(); |
329 |
// System.out.println(docid); |
|
330 | 328 |
insertPermissions(docid,leavingTagName); |
331 | 329 |
} |
332 | 330 |
|
... | ... | |
433 | 431 |
throws SQLException |
434 | 432 |
{ |
435 | 433 |
PreparedStatement pstmt; |
436 |
|
|
437 | 434 |
try { |
438 | 435 |
pstmt = conn.prepareStatement( |
439 | 436 |
"INSERT INTO xml_access " + |
... | ... | |
451 | 448 |
if ( ticketCount > 0 ) { |
452 | 449 |
pstmt.setString(8, "" + ticketCount); |
453 | 450 |
} else { |
454 |
pstmt.setString(8, "");
|
|
451 |
pstmt.setString(8, null);
|
|
455 | 452 |
} |
456 | 453 |
|
457 | 454 |
String prName; |
Also available in: Unified diff
made a ton of changes related to keeping oracle SQL code out of the main classes. fixed a bug where the timing of the index thread was off so when it went to index a document, the document was not already in xml_documents thus breaking the FK relation between xml_documents and xml_index. I think that bug might be the reason for the blank resultset screens in morpho. made the postgres implementation much more robust.