Revision 5099
Added by daigle over 14 years ago
MetaCatServlet.java | ||
---|---|---|
2725 | 2725 |
|
2726 | 2726 |
try { |
2727 | 2727 |
AccessControlForSingleFile acfsf = new AccessControlForSingleFile(docid); |
2728 |
String acltext = acfsf.getACL(username, groupnames, true);
|
|
2728 |
String acltext = acfsf.getACL(username, groupnames); |
|
2729 | 2729 |
if (qformat.equals("xml")) { |
2730 | 2730 |
response.setContentType("text/xml"); |
2731 | 2731 |
out.println(acltext); |
... | ... | |
3525 | 3525 |
|
3526 | 3526 |
if(accessBlock != null) { |
3527 | 3527 |
if (docList == null) { |
3528 |
errorList.addElement("MetaCatServlet.handleSetAccessAction - Please check your parameter list, it should look like: " |
|
3528 |
errorList.addElement("MetaCatServlet.handleSetAccessAction - Doc id missing. Please check your parameter list, it should look like: "
|
|
3529 | 3529 |
+ "?action=setaccess&docid=<doc_id>&accessBlock=<access_section>"); |
3530 | 3530 |
outputResponse(successList, errorList, out); |
3531 | 3531 |
return; |
... | ... | |
3535 | 3535 |
AccessControlForSingleFile accessControl = |
3536 | 3536 |
new AccessControlForSingleFile(docList[0]); |
3537 | 3537 |
accessControl.insertPermissions(accessBlock[0]); |
3538 |
successList.addElement("MetaCatServlet.handleSetAccessAction - successfully replaced access block for doc id: " + docList[0]); |
|
3538 | 3539 |
} catch(AccessControlException ace) { |
3539 | 3540 |
errorList.addElement("MetaCatServlet.handleSetAccessAction - access control error when setting " + |
3540 | 3541 |
"access block: " + ace.getMessage()); |
Also available in: Unified diff
Change access section in getaccesscontrol and getdocumentinfo apis to be more eml 2.1.0 compliant. Add a block access option to setaccess api.