Commit Graph

189 Commits

Author SHA1 Message Date
Peter Breton
2b2445b8fe All context objects are created via the new createContext() method,
which ensures that setIgnoreAuthorization is set to true.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@89 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 20:34:38 +00:00
Robert Tansley
645d64c307 Added "org.dspace.handle" to public API packages.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@88 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 20:19:30 +00:00
Peter Breton
f57dcbbb87 Added support for Community objects
git-svn-id: http://scm.dspace.org/svn/repo/trunk@87 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 20:13:23 +00:00
Peter Breton
5f51d41ac4 Added handle.item.prefix property
git-svn-id: http://scm.dspace.org/svn/repo/trunk@86 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 19:53:41 +00:00
Peter Breton
3369c6e03f Accessor methods are now public, no real gain from hiding them
git-svn-id: http://scm.dspace.org/svn/repo/trunk@85 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 19:43:42 +00:00
David Stuve
2337285184 isAdmin() now honors context.ignoreAuthorization()
git-svn-id: http://scm.dspace.org/svn/repo/trunk@84 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 18:21:23 +00:00
David Stuve
25826969e0 honored context.ignoreAuthorization() method
git-svn-id: http://scm.dspace.org/svn/repo/trunk@83 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 18:06:52 +00:00
Peter Breton
96868f4243 getId() method factored out from assignId method
git-svn-id: http://scm.dspace.org/svn/repo/trunk@82 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 17:09:23 +00:00
Peter Breton
f48e7ee1bf Added equals method
git-svn-id: http://scm.dspace.org/svn/repo/trunk@81 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 16:18:59 +00:00
Peter Breton
f256de6738 Fix typo: epersongroup_id -> eperson_group_id throughout
git-svn-id: http://scm.dspace.org/svn/repo/trunk@80 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 16:15:38 +00:00
Robert Tansley
0be51a69d3 Further authorisation integration.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@79 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 15:31:36 +00:00
Robert Tansley
ce8dfebad9 - Created ItemIterator
- Added Item.findAll, Item.getCommunities, Collection.getItems
- Renamed Collection.getAllCollections to Collection.findAll for consistency


git-svn-id: http://scm.dspace.org/svn/repo/trunk@78 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 14:23:51 +00:00
David Stuve
d8848cfbbd cleaned up interface a bit - removed eperson from most methods' args
git-svn-id: http://scm.dspace.org/svn/repo/trunk@77 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 21:41:09 +00:00
Peter Breton
26b19810db Updated to use BrowseScope object
git-svn-id: http://scm.dspace.org/svn/repo/trunk@76 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 20:57:08 +00:00
Peter Breton
13d88fe794 Use BrowseScope object throughout
Add getScope method, which returns a constant indicating the scope
Delete main method, as it duplicates the InitializeBrowse class


git-svn-id: http://scm.dspace.org/svn/repo/trunk@75 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 20:55:36 +00:00
Peter Breton
a94b4cd7ea Touched up the javadoc
Focus can be specified as an integer, the item id


git-svn-id: http://scm.dspace.org/svn/repo/trunk@74 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 20:53:55 +00:00
Robert Tansley
1eb7c4c5bf Initial authorisation manager integration
- All write (including creation and deletion) operations authorised
- Bitstream.retrieve() authorised (the only read authorisation)
- Added "ignore authorisation" flag to Context object for registry loading,
  tests etc.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@73 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 19:09:46 +00:00
Robert Tansley
5a6e0646d1 org.dspace.browse added to the javadoc public API packages.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@72 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 19:08:20 +00:00
Peter Breton
34466e1da0 Add printlns
git-svn-id: http://scm.dspace.org/svn/repo/trunk@71 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 17:34:34 +00:00
Peter Breton
9b87853c0f Object representing the scope of a Browse
git-svn-id: http://scm.dspace.org/svn/repo/trunk@70 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 17:34:14 +00:00
David Stuve
d21bd60630 modified to use eperson from context object
git-svn-id: http://scm.dspace.org/svn/repo/trunk@69 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-31 16:32:14 +00:00
Peter Breton
f26c165288 SQL dump of old dspace Browse data
This is expected to be used for the short term, and obsoleted by ingest

How to load the data:
  * Load the schema definitions if not already present
  * Load the registries if not already present
  * Load this file, either via psql (\i FILE) or the InitializeDatabase class
  * Create the Browse index, either via Ant target (setup_browse) or
    via the InitializeBrowse class


git-svn-id: http://scm.dspace.org/svn/repo/trunk@68 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:42:10 +00:00
Peter Breton
5bea039fda Simple program which calls Browse APIs (not a JUnit test)
git-svn-id: http://scm.dspace.org/svn/repo/trunk@67 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:33:32 +00:00
Robert Tansley
0cce31e99d Initial handling of workflow groups.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@66 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:33:21 +00:00
Peter Breton
aef8609420 Added setup_browse target
git-svn-id: http://scm.dspace.org/svn/repo/trunk@65 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:31:23 +00:00
Peter Breton
12af9f5159 Browse classes
git-svn-id: http://scm.dspace.org/svn/repo/trunk@64 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:30:40 +00:00
Robert Tansley
eefb15465a - Removed DCResult
- Renamed workflow-related columns in Collection:
    reviewers => workflow_step_1
    approvers => workflow_step_2
    editors   => workflow_step 3


git-svn-id: http://scm.dspace.org/svn/repo/trunk@63 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 21:02:39 +00:00
Peter Breton
963caace58 JUnit test for AccountManager
git-svn-id: http://scm.dspace.org/svn/repo/trunk@62 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 20:58:30 +00:00
Robert Tansley
40e9b07073 Updated the names and added some Javadoc comments.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@61 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 20:56:32 +00:00
Peter Breton
dd6843904f Manager for registration and forgotten passwords
git-svn-id: http://scm.dspace.org/svn/repo/trunk@60 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 20:54:36 +00:00
David Stuve
a7264d107c resourcepolicy edits
renamed resource_filter => container_type_id
renamed resource_filter_arg => container_id
del notes
del eperson_owner
del priority


git-svn-id: http://scm.dspace.org/svn/repo/trunk@59 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 17:56:45 +00:00
Peter Breton
c092c85287 Use Utils.getMD5 method for MD5 encoding
git-svn-id: http://scm.dspace.org/svn/repo/trunk@58 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 16:04:00 +00:00
Peter Breton
2cbf4386e3 Add getNonPrimaryKeyColumnNames method which gets column names
from ResultSetMetaData
In canonicalize method, the canonical name of a null table is null
In process method, if the table name is null, obtain the column
  names from the ResultSetMetaData
In process method, support BIGINT/long data type
Add query method which uses PreparedStatements


git-svn-id: http://scm.dspace.org/svn/repo/trunk@57 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 16:00:18 +00:00
Peter Breton
21a56e8b3c Support long datatype (getLongColumn, setColumn)
git-svn-id: http://scm.dspace.org/svn/repo/trunk@56 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:53:38 +00:00
Peter Breton
54ddd5583e Authorship credited to DSpace team
Remove some old comments
Remove test tables
Remove sorttitle function


git-svn-id: http://scm.dspace.org/svn/repo/trunk@55 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:45:28 +00:00
Peter Breton
e19f8871d0 Top-level browse views (ItemsByTitle, ItemsByDate, ItemsByAuthor, ItemsByDateAccessioned) converted to tables
Community and Collection browse views remain views, but are no longer
  dynamically ordered.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@54 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:17:27 +00:00
David Stuve
b314297b4e added some documentation
git-svn-id: http://scm.dspace.org/svn/repo/trunk@53 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 15:16:50 +00:00
Robert Tansley
67fd4e93a9 Made some changes to the DB. ContentTest fails - will check when I have time
git-svn-id: http://scm.dspace.org/svn/repo/trunk@52 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 14:50:46 +00:00
David Stuve
7adfb999c7 now uses core.Constants instead of core.DSpaceTypes
git-svn-id: http://scm.dspace.org/svn/repo/trunk@51 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 14:17:25 +00:00
Robert Tansley
d7acd10e75 Documentation fix
git-svn-id: http://scm.dspace.org/svn/repo/trunk@50 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 13:21:02 +00:00
Robert Tansley
2c1b4f5d45 findByName() no longer throws AuthorizeException
git-svn-id: http://scm.dspace.org/svn/repo/trunk@49 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-30 13:20:43 +00:00
David Stuve
7942ddb7ea first version
git-svn-id: http://scm.dspace.org/svn/repo/trunk@48 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-29 20:20:18 +00:00
Robert Tansley
652740210f - getDC() now returns DCValue objects instead of String objects.
- Fixed tests - the way the tests work still needs redoing though


git-svn-id: http://scm.dspace.org/svn/repo/trunk@47 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 21:27:20 +00:00
David Stuve
e867a465d9 got 'fullname' method working
git-svn-id: http://scm.dspace.org/svn/repo/trunk@46 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 21:20:19 +00:00
David Stuve
7b200e5790 fixed typo in create (missing column name) and missing fast lookup method
(isMember w/out instantiating the entire group)


git-svn-id: http://scm.dspace.org/svn/repo/trunk@45 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 21:15:16 +00:00
David Stuve
d29ea593da newly ported EPerson Group object, ready for testing
git-svn-id: http://scm.dspace.org/svn/repo/trunk@44 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 20:49:19 +00:00
David Stuve
04b996dc90 newly ported EPerson object, ready for testing
git-svn-id: http://scm.dspace.org/svn/repo/trunk@43 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 20:48:56 +00:00
David Stuve
c2196fa33f first version
git-svn-id: http://scm.dspace.org/svn/repo/trunk@42 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 18:49:10 +00:00
Robert Tansley
ed391e2355 Minor fixes to javadoc.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@41 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-28 14:19:49 +00:00
Robert Tansley
a971b548e6 Oops, getAll was already there. Left in findAll for consistency.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@40 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-27 19:42:18 +00:00