Changeset 25025


Ignore:
Timestamp:
2012-01-31T14:54:55+13:00 (11 years ago)
Author:
sjm84
Message:

Fixing Mat to work with the new UserContext construct

Location:
gs3-extensions/mat/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • gs3-extensions/mat/trunk/src/src/org/greenstone/mat/DescribeMessenger.java

    r22171 r25025  
    2020import org.greenstone.gsdl3.util.GDBMWrapper;
    2121import org.greenstone.gsdl3.util.GSPath;
     22import org.greenstone.gsdl3.util.UserContext;
    2223
    2324
     
    122123    {
    123124    try{
     125        UserContext context = new UserContext();
     126        context.setLanguage(lang);
     127   
    124128        Node message = doc.createElement(GSXML.MESSAGE_ELEM);
    125         Node request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, lang, "");
     129        Node request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_DESCRIBE, to, context);
    126130               
    127131        if(subsetOption != "") {
  • gs3-extensions/mat/trunk/src/src/org/greenstone/mat/MetadataStats.java

    r22171 r25025  
    2727import org.greenstone.util.GlobalProperties;
    2828import org.greenstone.gsdl3.util.GSPath;
     29import org.greenstone.gsdl3.util.UserContext;
    2930
    3031import org.w3c.dom.Document;
     
    184185       
    185186        Node message = this.doc.createElement(GSXML.MESSAGE_ELEM);
    186         Node request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS,collection+"/DocumentMetadataRetrieve","en", "");
     187        Node request = GSXML.createBasicRequest(this.doc, GSXML.REQUEST_TYPE_PROCESS,collection+"/DocumentMetadataRetrieve", new UserContext());
    187188        Node param_list = this.doc.createElement(GSXML.PARAM_ELEM+GSXML.LIST_MODIFIER);
    188189        param_list.appendChild(GSXML.createParameter(this.doc, "metadata", "all"));
  • gs3-extensions/mat/trunk/src/src/org/greenstone/mat/servlet/MetadataStats.java

    r22203 r25025  
    3030import org.greenstone.gsdl3.util.XMLConverter;
    3131import org.greenstone.gsdl3.util.GSPath;
     32import org.greenstone.gsdl3.util.UserContext;
    3233
    3334import org.w3c.dom.Document;
     
    205206   
    206207        Node request = GSXML.createBasicRequest(
    207                                this.doc, GSXML.REQUEST_TYPE_PROCESS,collection+"/DocumentMetadataRetrieve","en", "");
     208                               this.doc, GSXML.REQUEST_TYPE_PROCESS,collection+"/DocumentMetadataRetrieve", new UserContext());
    208209       
    209210        Node param_list = this.doc.createElement(
Note: See TracChangeset for help on using the changeset viewer.