Project

General

Profile

Statistics
| Revision:

# Date Author Comment
2683 10/20/2005 11:39 AM sgarg

Added support in the metacat client for the new function added to MetaCatServlet

2682 10/20/2005 11:38 AM sgarg

Added a new action - getloggedinuserinfo - which returns information about the user in the following format.

<user>
<username>uid=sgarg,o=NCEAS,dc=ecoinformatics,dc=org</username>
<name>Saurabh Garg</name>
<isAdministrator/>
<isMOderator/>
</user>

2681 10/20/2005 11:34 AM sgarg

Removed code entered in previous commit as it is no longer needed

2680 10/20/2005 11:32 AM sgarg

Also in the previous commit, the successful message changed. Now in addtion to the sessionid tag, the following tags also included: <name>[name of the user]</name>, <isModerator> (if is moderator) and <isAdministrator> (if is Administrator)

2679 10/20/2005 11:26 AM sgarg

Added a new function - getUserInfo to AuthInterface and AuthLdap
The function returns a string array for a given username. the array contains the name, organization name and email address of the user. In case of ldap, it is cn, o and mail attributes for ldapbase=username...

2677 10/17/2005 11:15 AM sgarg

Fixed a bug in QueryGroup which prevented QueryGroup from appending itself to the sql query when no queryTerm is present.

2668 10/10/2005 12:27 PM sgarg

Changes in log levels of some commands mentioned in the previos commit.

2666 10/10/2005 11:25 AM sgarg

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

2665 10/10/2005 11:22 AM sgarg

Commited the wrong MetaCatUtil.java file last time. Making the changes again.

1. Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
2. Commented out debugMessage()
3. Removed getLog() and earlier old log4j code...
2664 10/10/2005 11:20 AM sgarg

1. Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call
2. Commented out debugMessage()
3. Removed getLog() and earlier old log4j code
4. Removed formattedDebugMessage

2663 10/10/2005 11:06 AM sgarg

Replacing MetaCatUtil.debugMessage or MetaCatUtil.logMetacat call with logMetacat (private Logger object) call

2658 10/06/2005 11:37 AM sgarg

if moderator is logged into metacat and no option for enable-editing is specified then enable editing by default

2654 10/05/2005 01:43 PM sgarg

Fix for bug 2222. So that correct query is generated when searchmode is 'not-contains'.

2653 10/04/2005 07:20 PM Jing Tao

Change the method to get access document docid and revision.

2652 10/04/2005 07:19 PM Jing Tao

Fixed bug which can cause eml beta6 couldn't run access control.

2650 10/04/2005 06:13 PM Jing Tao

Add rev in get data doc info.

2649 10/04/2005 06:12 PM Jing Tao

Fixed a bug if one server failed in replication, it will cause another server failed.

2648 10/04/2005 05:22 PM Jing Tao

Add code to guess the docid's revision in read action.

2647 10/04/2005 04:17 PM Jing Tao

Remove some debug message.

2646 10/04/2005 04:16 PM Jing Tao

Fixed bug couldn't delete xml_nodes when moving to xml_nodes_revision in replication.

2641 10/04/2005 10:58 AM Jing Tao

Change the code to make sure DocumentImpl class's constructor should have rev attached.

2640 10/04/2005 10:57 AM Jing Tao

Remove this file.

2635 10/03/2005 02:32 PM sgarg

fix for the bug entered in previous fix

2634 10/03/2005 02:19 PM sgarg

Fix for bug in QueryGroup. Didnt check if the QueryGroup returned empty string. E.g. in case of a % search.

2629 10/02/2005 03:38 PM Jing Tao

Fixed bug which currentDocument maybe null.

2628 10/02/2005 03:37 PM Jing Tao

Fixed bug which currentDocument may be null.

2627 10/02/2005 03:37 PM Jing Tao

fixe bug which currentDoc maybe null.

2626 10/02/2005 03:36 PM Jing Tao

Add code to transfer string to date type.

2625 10/01/2005 09:57 PM Jing Tao

Add function transfer string to date.

2624 10/01/2005 09:21 PM Jing Tao

Add date info.

2623 10/01/2005 09:20 PM Jing Tao

Add info about date.

2622 10/01/2005 09:20 PM Jing Tao

Changes according add data info.

2621 10/01/2005 09:18 PM Jing Tao

Rewrite replication for revision document.

2620 10/01/2005 09:17 PM Jing Tao

Add code to get date info

2619 09/30/2005 08:55 PM Jing Tao

Fixed the bug in xml segment is not correct to express revision document list.

2618 09/30/2005 08:27 PM Jing Tao

Remove the print out statement.

2616 09/30/2005 05:40 PM Jing Tao

Fixed some bug in replication.

2608 09/30/2005 12:48 PM Jing Tao

Add code to handle deleted document replication.

2607 09/30/2005 12:47 PM Jing Tao

Add code to handle replicate the deleted document.

2606 09/30/2005 12:47 PM Jing Tao

Add method to get revision list in xml_revisions table for a given docid.

2605 09/30/2005 12:46 PM Jing Tao

Add code to handle replication deleted docs.

2604 09/30/2005 12:44 PM Jing Tao

Change setString to setInt for ticket account because driver changes.

2597 09/22/2005 05:02 PM Jing Tao

Add code to get revision table info

2596 09/15/2005 03:29 PM Jing Tao

New class to handle replicated deleted doc.

2595 09/15/2005 03:29 PM Jing Tao

Add default constructor and change some viriable to protected.

2594 09/15/2005 03:24 PM sgarg

added code to define LOG_CONFIG_NAME

2593 09/14/2005 11:50 AM sgarg

Added code to start threads which initiate indexing once insertion to xml_nodes is complete.

2592 09/14/2005 11:45 AM sgarg

Removing the code that calls the indexing thread. This call will be made from documentImpl.java once document insertion and update is finished.

2591 09/14/2005 10:50 AM sgarg

Added support for log4j to MetaCatUtil so that it can be used by Metacat code for logging.

2590 09/13/2005 03:08 PM Jing Tao

Add a new indicator - is revision document.

2589 09/09/2005 01:59 PM sgarg

Replacing debugMessage in metacat code with log4j methods for logging

2588 09/09/2005 01:51 PM sgarg

Replacing debugMessage with log4j methods for logging

2586 09/09/2005 01:10 PM Jing Tao

Add code to check the if the user has permission to start or stop timed replication.

2585 09/09/2005 01:08 PM Jing Tao

Add some null checking code in onList method.

2582 09/09/2005 10:42 AM Jing Tao

Change sessionHash to static variable and add a static get method.

2581 09/08/2005 04:40 PM Jing Tao

Use a util function to get replication server.

2580 09/08/2005 04:07 PM sgarg

Fix for bug 2060.

Moved the call to starting of indexing thread from endDocument to DocumentImpl after commit has been done. This way when ever a document is indexed it has already been entered in xml_nodes and xml_documents

2579 09/08/2005 04:03 PM Jing Tao

Use a util class to get local replication url.

2578 09/08/2005 04:02 PM Jing Tao

Add code to trim server name white space.

2576 09/08/2005 01:41 PM sgarg

Modified MetaCatUtil to read metacat access control lists from metacat.properties. Also coded various methods which can be used to find out if a user is an admin, moderator or on allowed/denied submitter list.

Modified MetaCatServlet to check if a user is allowed to insert/update before insert and update is done.

2574 09/08/2005 01:19 PM Jing Tao

Add code to trim white space in server name.

2573 09/08/2005 10:49 AM Jing Tao

Remove output stream from the constructor.

2572 09/08/2005 10:48 AM Jing Tao

Persistant timed replication parameter.

2570 09/08/2005 10:04 AM Matt Jones

Formatting cleanup, fixed a missing 'private' declaration. Preparing for LSID integration work.

2566 09/07/2005 04:47 PM Jing Tao

Add code to check if adminstor list is null.

2561 09/07/2005 01:07 PM sgarg

Removing support for 'site' from pathquery

2560 09/07/2005 01:05 PM sgarg

Replaced SQL queries in getMaxDocid() which used INSTR with queries which dont use INSTR. Now the INSTR related computation is done in Java code

2559 09/07/2005 09:44 AM sgarg

Modified the code so that users show up outside the groups also in the tree constructed by action=getPrincipals.

2558 09/06/2005 11:29 AM sgarg

Added new methods to MetaCatUtil: isAdministrator and isModerator.

These methods are used to check if a given username is part of the admin and moderator list specified in metacat.properties

Modified DocumentImpl and MetaCatServlet to use these functions.

2557 09/06/2005 08:45 AM sgarg

Added fix for http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2172.

normalize method now checks for & in the text passed to the method

2556 09/06/2005 08:42 AM sgarg

Added the patch provided by Johnoel. Check out the following link to bugzilla for more info: http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2081

2555 08/30/2005 05:04 PM Jing Tao

Add some method to setting replication start time.

2554 08/30/2005 05:03 PM Jing Tao

Add new method to set options.

2526 07/26/2005 09:17 AM sgarg

Bugfix to the previous commit.

Also made changes so that while indexing the path in buildIndex(), instead of seperate database calls to the database for each path, one call is made with all the paths in it.

2524 07/25/2005 11:57 AM sgarg

Modified code to enter/remove data from xml_path_index and enter data into xml_nodes_revision when action=insert, update and delete are performed.

2523 07/25/2005 11:54 AM sgarg

Check if all the paths in returnfield are indexed. If yes, then you xml_path_index for getting values of returnfields instead of using xml_nodes + xml_index

2522 07/25/2005 11:52 AM sgarg

Adding code to check if all the paths being searched for indexed are not. If all paths are indexed, the code will use xml_path_index instead of using xml_nodes and xml_index

2521 07/25/2005 11:49 AM sgarg

Adding a new method to MetaCatServlet for getting the value of paths to be indexed from metacat.properties file and indexing those paths in xml_path_index

2517 07/21/2005 04:54 PM sgarg

Changed the name of the function

2512 07/21/2005 04:08 PM sgarg

Added a new function which can used to control the carriage return at the end of the debug message and 'Metacat' in front of the message...

2503 04/22/2005 02:18 PM sgarg

Fixed a bug in printSQL function. The bug came into the picture for queries which involve multiple query groups and one of the query groups does a % search.

2491 04/14/2005 07:44 PM sgarg

Added code to delete all entries in xml_queryresult table when buildIndex for a docid is called.

2489 04/14/2005 01:51 PM sgarg

Adding the call to normalize function for now -- too many calls to normalize function are made and this needs to be looked into. Removing call to normalize function caused trouble in text like this "A&B"

2487 04/13/2005 06:22 PM sgarg

Fixed a bug in last commit. Doing a search like
pathquery version="1.2">
<returndoctype>eml://ecoinformatics.org/eml-2.0.0</returndoctype><returnfield>originator/individualName/surName</returnfield><querygroup operator="INTERSECT"><queryterm casesensitive="false" searchmode="contains"><value>%</value></queryterm><queryterm casesensitive="false" searchmode="contains"><value>National Center for Ecological Analysis and Synthesis</value><pathexpr>organizationName</pathexpr></queryterm></querygroup></pathquery>...

2486 04/13/2005 11:38 AM sgarg

Fixed a bug - when returnfield_id is not found in xml_returnfield, records are not added to xml_queryresults

2474 04/07/2005 05:04 PM sgarg

1. removed the call to QuerySpecification.printAttributeSQL() from QuerySpecification.printExtendedSQL()
2. in QuerySpecification.printExtendedSQL() if ( returnFieldList.size() == 0 ) then it returns null
3. DBQuery.addReturnfield() doesnt execute the element query if printExtendedSQL returns null

2473 04/07/2005 04:08 PM Chris Jones

A minor change from containAtrributeReturnField to
containsAttributeReturnField

2472 04/07/2005 04:06 PM Chris Jones

I've added in a test in QuerySpecification.printExtendedSQL that checks
to see if attributes, and sometimes only attributes, are in the original
returnfield request. If so, the printAttributeQuery is called.

2467 04/07/2005 10:53 AM Chris Jones

Changed the handleReturnField() method so that it handles path expressions with
only attributes in the path.

2466 04/06/2005 07:04 PM sgarg

Added a check if printAttributeQuery() for returnPath to see that it is not null so that that this doesnt happen

xml_index.path like 'null' AND xml_nodes.nodename like 'id'

2465 04/06/2005 06:46 PM sgarg

Fixed a bug in previous commit

2464 04/06/2005 06:25 PM sgarg

Modified code for computing the returnfield string - earlier only elements were used to construct the string. e.g. /dataset/title
Now attributes are also added to the returnfield. e.g. title/@id

2462 04/06/2005 02:21 PM sgarg

Replaced 1.4.0 with release

2459 04/06/2005 02:23 AM Chris Jones

When a path expression includes element content and attribute content, then
the SQL generated needs to search for attribute nodetypes with parent
nodenames equal to the path expression element content. However, when
only searching for attribute content (such as just @packageId), then...

2458 04/06/2005 02:13 AM Chris Jones

When searching for attributes in the XPATH expression, an 'index out of bounds'
exception was thrown when only an attribute was included in the path string.

This fix changes the pathexpr.indexOf comparison to 0 rather than 1, since
the index starts at 0....

2450 04/04/2005 04:50 PM sgarg

Removing call to normalize from getNodeRecordList()

2449 04/04/2005 04:45 PM sgarg

Changing the normalize function. Adding changes submitted by Johnoel. Removing code for converting " as " can be stored as it on Oracle. Removing code which strips out \n and \r

2447 04/04/2005 04:17 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

2446 04/04/2005 04:15 PM sgarg

Removed occurence of enum which is a keyword in Java 1.5

Changed the queries so that PreparedStatement.setString() and .setInt() are used instead of write the string directly into the sql statements

2437 03/31/2005 06:00 PM sgarg

Fixed a bug from previous commit which removed whitespaces from documents.