Revision 1323
Added by Jing Tao about 22 years ago
src/edu/ucsb/nceas/metacat/AccessRulesFromDocument.java | ||
---|---|---|
298 | 298 |
// create a rule string an put it into rule vector. |
299 | 299 |
try |
300 | 300 |
{ |
301 |
if (permOrder != null) |
|
302 |
{ |
|
303 |
permOrder = permOrder.trim(); |
|
304 |
} |
|
301 | 305 |
for (int j = 0; j < principal.size(); j++ ) |
302 | 306 |
{ |
303 |
oneAccessRule = (String)principal.elementAt(j)+" "; |
|
304 |
oneAccessRule = oneAccessRule + leavingTagName + " "; |
|
305 |
oneAccessRule = oneAccessRule + permission + " "; |
|
307 |
String onePrincipal = (String)principal.elementAt(j); |
|
308 |
if (onePrincipal != null) |
|
309 |
{ |
|
310 |
onePrincipal= onePrincipal.trim(); |
|
311 |
} |
|
312 |
oneAccessRule = onePrincipal + CleanupAccessTable.DELIMITER; |
|
313 |
oneAccessRule = oneAccessRule + leavingTagName + CleanupAccessTable.DELIMITER; |
|
314 |
oneAccessRule = oneAccessRule + permission + CleanupAccessTable.DELIMITER; |
|
306 | 315 |
oneAccessRule = oneAccessRule + permOrder; |
307 | 316 |
// inserinto accessRuleVector |
308 | 317 |
accessRuleVector.addElement(oneAccessRule); |
Also available in: Unified diff
Using ! rather than white space to seperate access rules.