Ignore:
Timestamp:
2012-01-26T11:50:17+13:00 (12 years ago)
Author:
sjm84
Message:

Adding UserContext to replace the use of lang and uid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/AppletAction.java

    r24986 r24993  
    4545        boolean coll_specified = true;
    4646        String service_name = (String) params.get(GSParams.SERVICE);
    47         String lang = request.getAttribute(GSXML.LANG_ATT);
    48         String uid = request.getAttribute(GSXML.USER_ID_ATT);
     47        UserContext userContext = new UserContext(request);
    4948        String to = null;
    5049        if (collection == null || collection.equals(""))
     
    6362
    6463            Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM);
    65             Element mr_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);
     64            Element mr_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext);
    6665            mr_message.appendChild(mr_request);
    6766            // just append all the params for now - should filter out unneeded ones
     
    8180
    8281        Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM);
    83         Element applet_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, lang, uid);
     82        Element applet_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, userContext);
    8483        mr_message.appendChild(applet_request);
    8584
Note: See TracChangeset for help on using the changeset viewer.