Project

General

Profile

Statistics
| Revision:
Name Size Revision Age Author Comment
  nceas 965 over 22 years Jing Tao In order to increase data file docid, method re...

Latest revisions

# Date Author Comment
965 03/06/2002 06:30 PM Jing Tao

In order to increase data file docid, method registerDocument was revised. Now it not only insert a new data file record to xml_documents table, but also can update the data file documents. Moreover, it can archieve the old version to xml_revisions table. Two other private methods were added to handl these futures: deleteXMLDocuments and getLatestRevisionNumber.

963 03/06/2002 04:17 PM berkley

fixed my tagging error

962 03/06/2002 03:58 PM berkley

some small changes I had to make to get the QAENGINE demo to work right. this should be committing in a branch

961 03/06/2002 09:00 AM Jing Tao

We decided that the permission for a user to an access documents is as same as to the data set document(which contains the access document). In order to do this, we need to look-up xml-relation table. If we could find the data set document id, just check the id. If we couldn't find one, we need check if the user is owner. If it is, has permission. Otherwise, doesn't have.

959 03/05/2002 01:14 PM Jing Tao

Add a new method getDataSetId to the class. The permission policy for access documents is: the user will have the same permission as data set file. (There is no entry in xml_access table for access document.

958 03/05/2002 01:11 PM Jing Tao

Add a throwing exception in hasPermission and hasReadPermission methods.

957 03/05/2002 01:09 PM Jing Tao

Add a throwing exception in haspermission method.

956 03/05/2002 11:38 AM Jing Tao

A constructor for this class was added. In the new constructor, user can specify the revision number he want to update. In method writeDocumentToDB, when a update action happend, the rev number would not automatictlly to add one, but it can go to specified number. This is for bug 417.

955 03/05/2002 11:33 AM Jing Tao

A constructor was added to this class. In this constructor, user can specify the revision number he want to update. And the number can be passed into a DocumentImpl object constructor in startElement method. But the number should be greater than current number in database.

954 03/05/2002 11:28 AM Jing Tao

A method named getLastRevisionNumber was added. And condition for checking accession number was revised too. Now metacat wouldn't refuse a revsion number which is 2 or more greater than current revision number in the database. This is for bug 417.

View revisions

Also available in: Atom