Project

General

Profile

  • svn:eol-style: native
  • svn:executable: *
  • svn:keywords: Author Date Id Revision
  • svn:mergeinfo:

# Date Author Comment
5742 12/15/2010 11:05 AM berkley

fixed bug where comparisons didn't work because of my change this morning

5741 12/15/2010 10:29 AM berkley

made this method more robust

5735 12/14/2010 02:47 PM berkley

fixed bug in new code

5734 12/14/2010 02:38 PM berkley

fixed bug where permission would get set to -1 for no good reason

5098 10/30/2009 03:39 PM daigle

change AccessControlForSingleFile to only be instantiated for one file. move ACL methods to AccessControlForSingleFile. Change format of access sections returned to EML 2.1.0.

5089 10/16/2009 11:10 AM daigle

Move access control source to it's own directory.

5082 10/13/2009 03:01 PM daigle

Add ability for doc owner to add user access to workflows.

5030 08/24/2009 02:34 PM daigle

Change location of PropertyService to properties directory

5015 08/04/2009 02:32 PM daigle

Create database and shared directories for database management code and shared code respectively.

4861 03/25/2009 02:41 PM daigle

Roll back replication user changes. Fix code that converts access levels to integer and to text.

4698 12/26/2008 01:07 PM daigle

Renamed MetaCatUtil to MetacatUtil

4497 11/03/2008 10:58 AM daigle

Add check for null access control list

4447 10/13/2008 09:11 AM ben leinfelder

translate numeric permission to text permission when serializing.

4335 08/29/2008 10:20 AM daigle

Move the DBAdaptor accessor into a DatabaseService class

4213 08/05/2008 05:50 PM daigle

qualify xml and eml properties with an xml. prefix

4212 08/05/2008 05:33 PM daigle

Continue to qualify property names

4140 07/18/2008 09:30 AM daigle

Add sql debug statements

4123 07/15/2008 09:58 AM daigle

Append context url onto system id instead of server url.

4080 07/06/2008 09:25 PM daigle

Merge 1.9 changes into Head

3077 11/10/2006 10:25 AM Matt Jones

Removed the release ant token from all files in 'src'.

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

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

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

Change setString to setInt for ticket account because driver changes.

1754 07/23/2003 06:11 PM Jing Tao

Delete a debug line.

1750 07/23/2003 11:58 AM Jing Tao

using toDate method rather than to_date function directly.

1426 02/26/2003 05:29 PM Jing Tao

Move the permission checking part.

1424 02/26/2003 11:29 AM Jing Tao

Get rid of the permission code to handle ticket count and duration.

1368 01/16/2003 05:22 PM Jing Tao

Remove some genric stuff to AccessControlInterface.

1336 12/10/2002 02:05 PM Jing Tao

Delete the code that adding access rule for access file itself.

1330 11/08/2002 01:56 PM Jing Tao

In creating xml_access table, add a condition for assigning a access document to itself: if there is not triple. If there is a triple that access file points itself, we don't need inserting again. Otherwise we will get duplicate records.

1214 06/13/2002 11:37 AM Jing Tao

Merge branch to head.

1139 05/24/2002 03:47 PM Jing Tao

Change to using Connection back rather than DBConnection. DBConnection will be store in a cvs branch.

1123 05/23/2002 05:54 PM Jing Tao

Make a every method check in and check out DBConnection if this method need a connection.

1096 05/20/2002 05:23 PM Jing Tao

Add debugMessage level in this class

975 03/18/2002 05:02 PM Jing Tao

In hasPermission method, a situation was considered: if no user and group, the permssion will be true. This is for the command line invocation.

968 03/08/2002 02:41 PM Jing Tao

Method endElement in AccessControList was revised. A feature that put access document itset into xml_access was added.

966 03/07/2002 02:14 PM Jing Tao

In hasPermission method, a rule for access document is implements. If user want to write a access document, it should hhave "all" permission.
The permission for access document now is looking up in xml_access table directly, rather get same permission to data set document.

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.

952 03/04/2002 08:34 PM Jing Tao

The method - hasAllowRule was revised. If a action -read or update was approved, all ticket count of allow rule entries for this action will minus one if the entries have ticket count number (not null).

951 03/01/2002 06:07 PM Jing Tao

The two hasPermission methods were rewritten. Some logic bugs were fixed. Now user, public and group will not be checked speratedly, but they will be check together as string array. In order to do this, private methods isAccessDocument, containDocumentOwner, isAllowFirst, hasAllowRule, hasExplicitDenyRule, hasImplicitDenyRule, and createUsersPackage were added.

944 02/26/2002 08:18 AM Jing Tao

Code to handle "read" permission was changed in hasPermission method. The old code used old way to look up the public_access field in xml_documents table.

899 01/18/2002 10:24 AM berkley

made a ton of changes related to keeping oracle SQL code out of the main classes. fixed a bug where the timing of the index thread was off so when it went to index a document, the document was not already in xml_documents thus breaking the FK relation between xml_documents and xml_index. I think that bug might be the reason for the blank resultset screens in morpho. made the postgres implementation much more robust.

887 12/20/2001 12:13 PM berkley

made it so we can now use multiple accessfilestypes and packagdfiletypes in the metacat.properties file. Also fixed a bug introduced when the 'http://' was removed from behind the server name in the loaddtd.sql script and the knb.xml file

870 11/20/2001 08:10 AM berkley

fixed error where person with 'all' permission could not update the access file.

869 11/20/2001 08:10 AM berkley

fixed error where person with 'all' permission could not update the access file.

862 10/24/2001 10:53 AM berkley

added new permission 'changepermission' and made 'all' inclusive for all permissions

859 10/22/2001 04:06 PM berkley

fixed access control bug. the character data in the sax parser was not getting trimmed and causing problems. also fixed hard coded eml-dataset public id in the web index file

830 09/13/2001 10:28 PM Matt Jones

Removed the requirement that the relationship for ACL associations be
"isRelatedTo". Now the relationship in the triple can be anything, like
"describes access control rules for". This doesn't affect the ACL
processing because it is based on the ACL document type, not the...

819 08/08/2001 12:56 PM bojilova

- when the Access file goes first before the Package file (eml-dataset-2.0)
relations are not available in xml_relation, thus updated the code
to check and run ACL also after the Package file is saved.
- cut out the rev# from subject and object in xml_relation as needed by ACL...

815 07/31/2001 07:34 PM bojilova

look for relationship "isRelatedTo" b' that is the word that is used in the triples

802 07/20/2001 09:03 PM bojilova

added support for multiple group membership

777 06/08/2001 12:02 PM bojilova

changed all mentions of DBAdapter to the new name AbstractDatabase

774 06/06/2001 01:50 PM bojilova

use the non-null function name from db adapter

765 06/01/2001 12:51 PM bojilova

changed
SELECT ... WHERE LIKE ? ...
to:
SELECT ... WHERE = ? ...

It should be changed everywhere it is found

688 01/31/2001 10:05 AM bojilova

added new "getaccesscontrol" action for a given docid

684 01/19/2001 04:12 PM bojilova

Solving the problem with relication of access file where access files were rejected from the replication servers.
In AccessControlList check for serverCode is included,
so only on the local server the connected user is checked for having "all" permissions on the resources specified in it...

682 01/19/2001 11:31 AM bojilova

fixed typo

678 01/18/2001 03:38 PM berkley

added location info to catch statements

672 01/18/2001 12:38 PM bojilova

included implementation for public "read" access as specified from the access file

669 01/18/2001 11:52 AM Matt Jones

Added license terms to source code files, and cleaned up some javadoc
documentation in a few places.

667 01/18/2001 11:25 AM berkley

closed all preparedStatement variables

665 01/17/2001 02:45 PM bojilova

implementation for multiple <resourceIndentifier> tags under <resource>

660 01/12/2001 09:55 AM bojilova

- turned on the validation in order only valid xml docs comformed to the specified dtd (if any) to be submitted in metacat
- with validation "on" white spaces are reported from ignorableWhitespace() callback, not from characters() (as with validation "off")...

652 01/09/2001 05:37 PM bojilova

unified getting "docid" value from metacat URLs specified in <resourceIdentifier> tags
by using MetaCatUtil.parseQuery() method in the same way as in MetaCatServlet.

645 01/08/2001 05:11 PM bojilova

- appling acl through access files only
- clearing around update/delete of access files - to delete the related records from both xml_access and xml_relation tables
- included check for user permissions for setting acl on the resources in the access file
- moved RelationHandler.deleteRelations(docid) down in RelationHandler obj just before the write of the new relations

638 01/04/2001 05:12 PM bojilova

included support for submition of access files
+ storing the acl info in xml_access table and relationship records in xml_relation table like
<aclfile, "isaclfilefor", recourceIdentifier> for every resource included in the access file

613 12/13/2000 02:54 PM bojilova

fixed typo

611 12/13/2000 12:57 PM bojilova

fixed typo

609 12/13/2000 12:35 PM bojilova

fixed typo

608 12/13/2000 11:37 AM bojilova

problems with passing the connection between objects

607 12/13/2000 11:29 AM bojilova

problems with passing the connection between objects

605 12/13/2000 10:56 AM bojilova

problem with passing the connection between objects

604 12/13/2000 10:23 AM bojilova

problem with passing the connection between objects

598 12/12/2000 12:50 PM bojilova

DBEntityResolver:
- added new parameter dtd for upload on Metacat file system; optional; Reader
- new routines to upload dtd if provided
- systemID of metadata document is used to exctract the filename of new dtd;
- the new dtd is uploaded on Metacat file system as specified by dtdPath property;...

570 11/28/2000 05:15 PM bojilova

AccessControlList
- methods for parsing and loading acl file
- checkup method for permission for given principal on given resource
DBQuery
- checkup for READ permission using AccessControlList.hasPermission()
DocumentImpl
- using AccessControlList object to parse and load an acl file into xml_access table...

555 11/21/2000 10:04 AM bojilova

new class for parsing ACL XML file and loading acl data into metacat db