Revision 4226
Added by ben leinfelder almost 16 years ago
MetaCatServlet.java | ||
---|---|---|
770 | 770 |
|
771 | 771 |
logMetacat |
772 | 772 |
.debug("******************* DATA QUERY ********************"); |
773 |
handleDataquery(params, response); |
|
773 |
handleDataquery(params, response, sess_id);
|
|
774 | 774 |
} |
775 | 775 |
else if (action.equals("export")) { |
776 | 776 |
|
... | ... | |
944 | 944 |
|
945 | 945 |
private void handleDataquery( |
946 | 946 |
Hashtable<String, String[]> params, |
947 |
HttpServletResponse response) throws PropertyNotFoundException, IOException { |
|
947 |
HttpServletResponse response, |
|
948 |
String sessionId) throws PropertyNotFoundException, IOException { |
|
948 | 949 |
|
949 |
DataQuery dq = new DataQuery(); |
|
950 |
DataQuery dq = null; |
|
951 |
if (sessionId != null) { |
|
952 |
dq = new DataQuery(sessionId); |
|
953 |
} |
|
954 |
else { |
|
955 |
dq = new DataQuery(); |
|
956 |
} |
|
950 | 957 |
|
951 | 958 |
String dataqueryXML = ((String[])params.get("dataquery"))[0]; |
952 | 959 |
|
Also available in: Unified diff
add ability to access protected data via the datamanager/dataquery feature.
Note: the datamanager features rely on the ecogrid stubs being available in Metacat. When Metacat is installed with ecogrid enabled, the required jars are included in the war...something to keep in mind.