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/XMLDocumentAction.java

    r24992 r24993  
    5252            return result;
    5353        }
    54         String lang = request.getAttribute(GSXML.LANG_ATT);
    55         String uid = request.getAttribute(GSXML.USER_ID_ATT);
     54        UserContext userContext = new UserContext(request);
    5655
    5756        // subaction used to decide if we are returning content or structure
     
    7473        Element mr_message = this.doc.createElement(GSXML.MESSAGE_ELEM);
    7574
    76         Element ret_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);
     75        Element ret_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext);
    7776        mr_message.appendChild(ret_request);
    7877
     
    8584        // also add in a request for the Title metadata
    8685        to = GSPath.appendLink(collection, "DocumentMetadataRetrieve");
    87         Element meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, lang, uid);
     86        Element meta_request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS, to, userContext);
    8887        // copy the doc list
    8988        meta_request.appendChild(doc_list.cloneNode(true));
Note: See TracChangeset for help on using the changeset viewer.