Changeset 21910


Ignore:
Timestamp:
2010-04-20T10:41:37+12:00 (11 years ago)
Author:
xiao
Message:

in processMessage, changed to return configure action response element with success/error flag as attribute

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/core/MessageRouter.java

    r20297 r21910  
    10301030            success = deactivateModule(module_type, module_name);
    10311031            if (success) {
    1032               Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" deactivated");
     1032              Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" deactivated",
     1033                      GSXML.SYSTEM_TYPE_DEACTIVATE, GSXML.SUCCESS);
    10331034              response.appendChild(s);
    10341035            } else {
    1035               Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" could not be deactivated");
     1036              Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" could not be deactivated",
     1037                      GSXML.SYSTEM_TYPE_DEACTIVATE, GSXML.ERROR);
    10361038              response.appendChild(s);
    10371039            }
     
    10491051            }
    10501052            if (success) {
    1051               Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" activated");
     1053              Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" activated",
     1054                      GSXML.SYSTEM_TYPE_ACTIVATE, GSXML.SUCCESS);
    10521055              response.appendChild(s);
    10531056            } else {
    1054               Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" could not be activated");
     1057              Element s = GSXML.createTextElement(this.doc, GSXML.STATUS_ELEM, module_type+": "+module_name+" could not be activated",
     1058                      GSXML.SYSTEM_TYPE_ACTIVATE, GSXML.ERROR);
    10551059              response.appendChild(s);
    10561060            }
Note: See TracChangeset for help on using the changeset viewer.