+ public void operationbatch(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletModuleExc {
+ String returnUrlString = aRequest.getParameter("returnurl");
+
+ String[] operations = aRequest.getParameterValues("operation");
+
+ if (operations!=null) {
+ for (int i = 0; i < operations.length; i++) {
+ if (operations[i].length() > 0) {
+ List parts = StringRoutines.splitString(operations[i], ";");
+
+ if (parts.size() != 3) {
+ getLogger().error("commentoperationbatch: operation string invalid: " +
+ operations[i]);
+ }
+ else {
+ String type = (String) parts.get(0);
+ String id = (String) parts.get(1);
+ String operationString = (String) parts.get(2);
+
+ if ("comment".equals(type)) {
+ performCommentOperation(aRequest, id, operationString);
+ }
+ else {
+ performArticleOperation(aRequest, id, operationString);
+ }
+ }
+ }
+ }
+ }
+
+ ServletHelper.redirect(aResponse, returnUrlString);
+ }