Revision 1621
Added by Jing Tao over 21 years ago
src/edu/ucsb/nceas/metacat/DocumentImpl.java | ||
---|---|---|
2041 | 2041 |
String docid = ac.getDocid(); |
2042 | 2042 |
String rev = ac.getRev(); |
2043 | 2043 |
|
2044 |
|
|
2044 |
MetaCatUtil.debugMessage("Start deleting doc "+docid+ "...", 20); |
|
2045 | 2045 |
// check for 'write' permission for 'user' to delete this document |
2046 | 2046 |
if ( !hasWritePermission(user, groups, docid) ) { |
2047 | 2047 |
throw new Exception("User " + user + |
... | ... | |
2097 | 2097 |
conn.commit(); |
2098 | 2098 |
conn.setAutoCommit(true); |
2099 | 2099 |
}//try |
2100 |
catch (Exception e) |
|
2101 |
{ |
|
2102 |
MetaCatUtil.debugMessage("error in DocumentImpl.delete: " + |
|
2103 |
e.getMessage(), 30); |
|
2104 |
throw e; |
|
2105 |
} |
|
2100 | 2106 |
finally |
2101 | 2107 |
{ |
2102 | 2108 |
|
Also available in: Unified diff
Add some debug message.