Revision 5444
Added by berkley almost 14 years ago
IdentifierManager.java | ||
---|---|---|
133 | 133 |
throw new McdbDocNotFoundException("Could not find document " + localId); |
134 | 134 |
} |
135 | 135 |
|
136 |
String sql2 = "select principal_name, permission, perm_type, perm_order from xml_acccess " +
|
|
136 |
String sql2 = "select principal_name, permission, perm_type, perm_order from xml_access " + |
|
137 | 137 |
"where docid like '" + localId + "'"; |
138 |
System.out.println("executing sql: " + sql2); |
|
138 | 139 |
PreparedStatement stmt2 = dbConn.prepareStatement(sql2); |
139 | 140 |
rs = stmt2.executeQuery(); |
140 | 141 |
Vector accessVector = new Vector(); |
... | ... | |
149 | 150 |
accessHash.put("permission", permission); |
150 | 151 |
accessHash.put("permission_type", permissionType); |
151 | 152 |
accessHash.put("permission_order", permissionOrder); |
153 |
System.out.println("accessHash: " + accessHash.toString()); |
|
152 | 154 |
accessVector.add(accessHash); |
153 | 155 |
} |
154 | 156 |
h.put("access", accessVector); |
155 | 157 |
} |
156 | 158 |
catch (SQLException e) |
157 | 159 |
{ |
160 |
e.printStackTrace(); |
|
158 | 161 |
logMetacat.error("Error while getting document info for localid " + localId + " : " |
159 | 162 |
+ e.getMessage()); |
160 | 163 |
} |
Also available in: Unified diff
fixed problems with access control on sysmeta