- Timestamp:
- 2012-05-09T13:50:37+12:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/GS2Construct.java
r25540 r25550 430 430 * "delete" or "reload" response will be put into the status element 431 431 */ 432 protected void systemRequest(String action_name, String coll_name, Element status, UserContext userContext)432 protected void systemRequest(String operation, String coll_name, Element status, UserContext userContext) 433 433 { 434 434 // send the request to the MR … … 441 441 command.setAttribute(GSXML.SYSTEM_MODULE_NAME_ATT, coll_name); 442 442 443 if ( action_name.equals("delete"))443 if (operation.equals("delete")) 444 444 { 445 445 command.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_DEACTIVATE); 446 446 } 447 else if ( action_name.equals("reload"))447 else if (operation.equals("reload")) 448 448 { 449 449 command.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_ACTIVATE); … … 451 451 else 452 452 { 453 logger.error("invalid action name passed to systemRequest:" + action_name);453 logger.error("invalid action name passed to systemRequest:" + operation); 454 454 return; 455 455 } … … 463 463 if (response == null) 464 464 { 465 t = this.doc.createTextNode(getTextString( action_name+ ".configure_error", userContext.getLanguage(), args));465 t = this.doc.createTextNode(getTextString(operation + ".configure_error", userContext.getLanguage(), args)); 466 466 status.setAttribute(GSXML.STATUS_ERROR_CODE_ATT, Integer.toString(GSStatus.ERROR)); 467 467 status.appendChild(t); … … 470 470 471 471 // if we got here, we have succeeded! 472 t = this.doc.createTextNode(getTextString( action_name+ ".success", userContext.getLanguage(), args));472 t = this.doc.createTextNode(getTextString(operation + ".success", userContext.getLanguage(), args)); 473 473 status.setAttribute(GSXML.STATUS_ERROR_CODE_ATT, Integer.toString(GSStatus.SUCCESS)); 474 474 status.appendChild(t);
Note:
See TracChangeset
for help on using the changeset viewer.