| Revision:

metacat / src / edu / ucsb / nceas / metacat / clientview @ 6562

# Date Author Comment
6064 05/05/2011 10:00 AM ben leinfelder

replace whitespace in generated docid scope (sanparks patch from 1.9.4 branch)

6059 05/04/2011 12:39 PM ben leinfelder

use outputstream as an object, not a string. relax the Map typing to allow for mixed values. (sanparks patch)

5914 02/04/2011 06:17 AM ben leinfelder

remove httpclient 3.1 and custom-built httpclient.jar
rework MetacatClient (and other classes) to use httpclient 4
updated build to not create httpclient.jar
encoding tests now pass.

5886 02/02/2011 11:43 AM ben leinfelder

use the read() method instead of manually calling with parameters

5374 06/08/2010 12:34 PM berkley

refactored the sessionService to use a correct singleton initialization scheme. Added true authentication to ResourceHandler.

5071 10/02/2009 01:07 PM daigle

Change sanparks skin to log in with browser session instead of metacat client session so session can be validated on other pages.

5030 08/24/2009 02:34 PM daigle

Change location of PropertyService to properties directory

4306 08/25/2008 10:44 AM ben leinfelder

match the "qualified" property name

4168 07/28/2008 04:56 PM ben leinfelder

use the docid, not the filename when updating this node.
fixes bug:

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

3772 03/20/2008 05:37 PM ben leinfelder

Enable file naming when returning a zip file of the requested documents.
File names for each docid are provided as additional parameters named by the actual docid value that they are providing a name for. An example query string might look like:


3741 02/27/2008 08:42 AM ben leinfelder

if there is no clientViewBean in the session, insert a new one - saves us from nullPointerException when using this in skins that may not be aware of the bean uses.

3678 01/11/2008 03:44 PM ben leinfelder

prevent null pointer exception when there are no nodes found (just an empty list)

3625 11/30/2007 01:26 PM barteau

Fixed a couple of bugs: 1) Threw an error when updating a packages public access (lost the data files doc id's) and 2) returns a message after access is changed.
Both were fixed by not attempting to get a child text node from a text node.

3603 11/20/2007 04:17 PM barteau

Changed confirm.jspx to confirm.jsp

3602 11/20/2007 04:09 PM barteau

Modified redirect URL to navigate to a skin-specific confirmation page, rather than a common one.

3552 11/01/2007 01:56 PM barteau

Fixed bug with file updating (lost qformat value). Also fixed bug with message.

3540 10/29/2007 03:09 PM barteau

Converted some java 1.5 code to java 1.4 code. Removed usages of "String.contains()", "Node.getTextContent()" and "Node.setTextContent.

3539 10/29/2007 03:09 PM barteau

Converted some java 1.5 code to java 1.4 code. Removed usages of "String.contains()", "Node.getTextContent()" and "Node.setTextContent.
Wrote two new methods: 1) getTextContent, and 2) setTextContent, to emulate the org.w3c.dom implementation that ships with java 1.5.

3530 10/25/2007 05:01 PM barteau

Seperated web API code, from plain java code, by creating seperate constructors and handling Http stuff in just two methods: "clientRequest" and "handleDownloadResponse".
Results in using HttpServlet code in an isolated/thin layer, making it easier to test and reuse all other methods.

3517 10/12/2007 04:02 PM barteau

Added new functionality for action="Set Access". Includes methods handleChangeAccess, setPublicAccess and getNodeTextStack. Also, cleaned up some code as a result.

3516 10/12/2007 03:57 PM barteau

Modified string constant "SUB_DOCS_PATH" to be static and public accessible.

3502 10/04/2007 03:42 PM barteau

Grant the public read access to the data files, if it was done for the metadata file. Also cleaned-up some debug statements.

3486 09/28/2007 05:00 PM barteau

Fixed 3 bugs:
1) If there is a call to this class without an "action" (i.e. the initial time the login form is loaded) a null pointer exception would be thrown.
2) If the user logged out, and then tried to query, the server would send an error (invalidated session)...

3483 09/28/2007 04:06 PM barteau

Created method "private void download(ClientView bean, HttpServletResponse response)", along with several other additions to support downloading.
Includes functionality for FGDC-related package downloads (zip file) and individual data file downloads, with original filenames.

3482 09/28/2007 04:02 PM barteau

Created new XPath constants for FGDC queries.

3458 09/17/2007 02:30 PM barteau

Modified the "clientDeleteRequest" method to handle meta-file deletes.

3457 09/17/2007 02:28 PM barteau

Clear the bean's "action" property after most operations are complete, in case user refreshes the browser (it won't repeat). Modified "delete" code, and "handleFileUpdate" method. Added new methods: getStringFromInputStream and makeRedirectUrl.

3456 09/17/2007 02:21 PM barteau

Added property "metaFileDocId", and constant "UPDATE_MESSAGE", to accomodate update and delete operations.

3395 09/04/2007 05:20 PM barteau

Modifications to the removeDataDocIdFromFGDC method, to use the metadata Doc Id rather than the data file Doc Id, to locate the FGDC node branch to update.

3393 09/04/2007 05:13 PM barteau

Modifications to the clientRequest method to handle calls for 'Delete' actions.

3375 08/27/2007 11:55 AM barteau

Uncommented metacat client upload commands.

3372 08/24/2007 02:11 PM barteau

Changes for java 1.4 compilation, and further development.

3371 08/24/2007 02:11 PM barteau

Further development.

3367 08/21/2007 03:44 PM barteau

Changes to make java 1.4 compliant.

3366 08/20/2007 04:14 PM barteau

Updated handlePackageUpload (in development).

3365 08/20/2007 04:08 PM barteau

Added static variables.

3364 08/20/2007 01:36 PM barteau

Replaced "Formatter" usage (java 1.5) for java 1.4 compiling.

3363 08/17/2007 03:35 PM barteau

Removed "Formatter" usage, to make java 1.4 compatible.

3361 08/17/2007 03:11 PM barteau

Removed "generics" to make java 1.4 compatible.

3321 07/25/2007 03:27 PM barteau

Initial checkin. The "Client View FGDC Helper", to provide FGDC specific methods for client views. This is an API class for the clientview package.

3320 07/25/2007 03:27 PM barteau

Initial checkin. The "Client View HTML Helper", to provide HTML specific methods for client views. This is an API class for the clientview package.

3319 07/25/2007 03:23 PM barteau

Initial checkin. The "Client View Bean Helper", to provide a controller for ClientView bean users. This is the main API class for the clientview package.

3318 07/25/2007 03:21 PM barteau

Initial checkin. The "Client View Bean Info", to complete the JavaBean architecture for the ClientView bean. This class can be used in java component building tools.

3317 07/25/2007 03:19 PM barteau

Initial checkin. The "Client View Bean", to provide the "model" in the MVC architecture. This JavaBean is used in client view JSP documents (the "Views")
and the ClientViewHelper class (the "Controller").