Last change
on this file since 26123 was 26123, checked in by ak19, 12 years ago |
Diego discovered that the QBRSOAPServer no longer got deployed. 1. The resources/java/QBRSOAPServer.java.in class failed to compile on attempting to deploy the web service owing to the GSXML.createBasicRequest() method's signature having been changed to take a UserContext parameter in place of lang and uid. 2. Updated UserContext class with an additional constructor that now takes both lang and uid. This gets called by resources/java/QBRSOAPServer.java.in whenever it needs to pass in a UserContext object to GSXML.createBasicRequest().
|
-
Property svn:executable
set to
*
|
File size:
801 bytes
|
Line | |
---|
1 | package org.greenstone.gsdl3.util;
|
---|
2 |
|
---|
3 | import org.w3c.dom.Element;
|
---|
4 |
|
---|
5 | public class UserContext
|
---|
6 | {
|
---|
7 | protected String _userID = null;
|
---|
8 | protected String _lang = null;
|
---|
9 |
|
---|
10 | public UserContext(){}
|
---|
11 |
|
---|
12 | public UserContext(Element xmlRequest)
|
---|
13 | {
|
---|
14 | _lang = xmlRequest.getAttribute(GSXML.LANG_ATT);
|
---|
15 | _userID = xmlRequest.getAttribute(GSXML.USER_ID_ATT);
|
---|
16 | }
|
---|
17 |
|
---|
18 | public UserContext(String lang, String userID)
|
---|
19 | {
|
---|
20 | _lang = lang;
|
---|
21 | _userID = userID;
|
---|
22 | }
|
---|
23 |
|
---|
24 | public void setLanguage(String lang)
|
---|
25 | {
|
---|
26 | _lang = lang;
|
---|
27 | }
|
---|
28 |
|
---|
29 | public void setUserID(String userID)
|
---|
30 | {
|
---|
31 | _userID = userID;
|
---|
32 | }
|
---|
33 |
|
---|
34 | public String getLanguage()
|
---|
35 | {
|
---|
36 | if(_lang != null)
|
---|
37 | {
|
---|
38 | return _lang;
|
---|
39 | }
|
---|
40 | return "";
|
---|
41 | }
|
---|
42 |
|
---|
43 | public String getUserID()
|
---|
44 | {
|
---|
45 | if(_userID != null)
|
---|
46 | {
|
---|
47 | return _userID;
|
---|
48 | }
|
---|
49 | return "";
|
---|
50 | }
|
---|
51 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.