Changeset 6274
- Timestamp:
- 2003-12-16T11:45:36+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/src/java/org/greenstone/gsdl3/service/GS2Construct.java
r5148 r6274 192 192 // once have got here, we assume 193 193 // the first bit proceeded successfully, now reload the collection 194 configureRequest("reload", coll_name, status, lang); // this will append more messages to the status, and overwrite the error code att194 systemRequest("reload", coll_name, status, lang); // this will append more messages to the status, and overwrite the error code att 195 195 return response; 196 196 … … 241 241 return response; 242 242 } 243 configureRequest("delete", coll_name, status, lang);243 systemRequest("delete", coll_name, status, lang); 244 244 return response; 245 245 } … … 275 275 276 276 String coll_name = (String)params.get(COL_PARAM); 277 configureRequest("reload", coll_name, status, lang);277 systemRequest("reload", coll_name, status, lang); 278 278 return response; 279 279 … … 284 284 * response will be put into the status element 285 285 */ 286 protected void configureRequest(String action_name, String coll_name, Element status, String lang) {286 protected void systemRequest(String action_name, String coll_name, Element status, String lang) { 287 287 288 288 // send the request to the MR 289 289 Element message = this.doc.createElement(GSXML.MESSAGE_ELEM); 290 290 Element request = this.doc.createElement(GSXML.REQUEST_ELEM); 291 request.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_ CONFIGURE);291 request.setAttribute(GSXML.TYPE_ATT, GSXML.REQUEST_TYPE_SYSTEM); 292 292 request.setAttribute(GSXML.TO_ATT, ""); 293 293 message.appendChild(request); 294 Element command = this.doc.createElement(GSXML.CONFIGURE_ELEM); 295 command.setAttribute(GSXML.TYPE_ATT, GSXML.COLLECTION_ELEM); 296 command.setAttribute(GSXML.NAME_ATT, coll_name); 294 Element command = this.doc.createElement(GSXML.SYSTEM_ELEM); 295 request.appendChild(command); 296 command.setAttribute(GSXML.SYSTEM_MODULE_TYPE_ATT, GSXML.COLLECTION_ELEM); 297 command.setAttribute(GSXML.SYSTEM_MODULE_NAME_ATT, coll_name); 298 297 299 if (action_name.equals("delete")) { 298 command.setAttribute(GSXML. ACTION_ATT, GSXML.CONFIG_ACTION_DEACTIVATE);300 command.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_DEACTIVATE); 299 301 } else if (action_name.equals("reload")) { 300 command.setAttribute(GSXML. ACTION_ATT, GSXML.CONFIG_ACTION_ACTIVATE);302 command.setAttribute(GSXML.TYPE_ATT, GSXML.SYSTEM_TYPE_ACTIVATE); 301 303 } else { 302 System.err.println("invalid action name passed to configureRequest:"+action_name);304 System.err.println("invalid action name passed to systemRequest:"+action_name); 303 305 return; 304 306 }
Note:
See TracChangeset
for help on using the changeset viewer.