Commit Graph

5560 Commits

Author SHA1 Message Date
Peter Breton
cfd5f0b515 indexAll method uses ItemIterator and returns number of Items indexed
Add getNormalizedTitle method
Implementation cleanups:
  + getTotalInIndex method returns the number of Items in a Browse index.
      previously this functionality was clumped together in the
      getSomethingInternal() method
 + getTargetColumns() returns the correct columns for a browse type
 + getSubqueryClause() does what its name says
 + getItemId() ditto
 + addScopeClause() puts all the scoping logic in one place

Added examples of generated SQL to javadoc
Remove unused main method from NormalizedTitle class
Resource cleanups in BrowseCache class


git-svn-id: http://scm.dspace.org/svn/repo/trunk@111 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 15:27:03 +00:00
Peter Breton
fdfed51292 Tweak printing of results for readability
git-svn-id: http://scm.dspace.org/svn/repo/trunk@110 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 15:04:26 +00:00
Peter Breton
c339f8d1ea Resource cleanups
git-svn-id: http://scm.dspace.org/svn/repo/trunk@109 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 15:03:39 +00:00
Peter Breton
9308ba6ff7 In deleteWithContents, ensure that WorkspaceItems related to the
collection are also deleted.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@108 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 15:02:26 +00:00
Peter Breton
5c4c689d8d SQL fix: use "is null" instead of "=null". The latter form is accepted,
but silently fails.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@107 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 15:00:36 +00:00
Peter Breton
f0bf1e8f57 Minor doc cleanups
git-svn-id: http://scm.dspace.org/svn/repo/trunk@106 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 14:58:40 +00:00
Peter Breton
8d6bec20ae Test always simply does a rollback; this ensures that no stray test data
is left around, and works around a Postgres 7.1 bug


git-svn-id: http://scm.dspace.org/svn/repo/trunk@105 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-06 14:55:00 +00:00
Robert Tansley
8277de56d4 - Documentation improvements
- Changed behaviour with mappings - adding/removing bitstreams, bundles, etc
  now has instant effect, since before, the methods were halfway-instant -
  the bitstream/bundle would get created but not the mapping.  Hopefully
  it now makes more sense.
- Added relevant Browse index update calls to Item.update() and
  deleteWithContents().


git-svn-id: http://scm.dspace.org/svn/repo/trunk@104 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-04 18:22:52 +00:00
Peter Breton
fbb0bdfea3 CNRI Handle Jar, Version 5.2.0
git-svn-id: http://scm.dspace.org/svn/repo/trunk@103 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-04 14:12:23 +00:00
Peter Breton
aebbbaaeb6 Removing non-binary jar
git-svn-id: http://scm.dspace.org/svn/repo/trunk@102 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-04 14:11:30 +00:00
Peter Breton
543408e4da Last version was somehow corrupted.
This is the handle jar that comes with Handle Server 5.2


git-svn-id: http://scm.dspace.org/svn/repo/trunk@101 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:56:42 +00:00
Peter Breton
beffcdb567 Change one remaining org.dspace.handles package name to org.dspace.handle
git-svn-id: http://scm.dspace.org/svn/repo/trunk@100 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:50:26 +00:00
Peter Breton
d8a03d994e Fix handle package name
git-svn-id: http://scm.dspace.org/svn/repo/trunk@99 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:36:56 +00:00
Peter Breton
f8a1791958 Fix package name
git-svn-id: http://scm.dspace.org/svn/repo/trunk@98 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:35:58 +00:00
Peter Breton
3d0b7ca5c7 CNRI Handle jar
git-svn-id: http://scm.dspace.org/svn/repo/trunk@97 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:16:09 +00:00
Robert Tansley
b8b6766426 When authorising updating or deleting a workspace item, the permissions on the
contained item are checked, since the authorisation system doesn't (and
needn't) know about workspace items.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@96 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:15:01 +00:00
Peter Breton
df971c1044 Package org.dspace.handles renamed to org.dspace.handle
git-svn-id: http://scm.dspace.org/svn/repo/trunk@95 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:07:00 +00:00
Peter Breton
9c7e286498 JUnit test for HandleManager
git-svn-id: http://scm.dspace.org/svn/repo/trunk@94 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:05:01 +00:00
Peter Breton
e2ff59c51d Manager for Handles
git-svn-id: http://scm.dspace.org/svn/repo/trunk@93 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:04:39 +00:00
Peter Breton
115ba5cc1b DSpace-specific storage plugin for CNRI Handle Server
git-svn-id: http://scm.dspace.org/svn/repo/trunk@92 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 21:04:13 +00:00
Peter Breton
721c74209f Fold in BrowseInfo changes
git-svn-id: http://scm.dspace.org/svn/repo/trunk@91 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 20:51:20 +00:00
Peter Breton
33da915484 Doc cleanups
getResultSize method renamed to getResultCount
Eliminate constructor with element/qualifier parameters


git-svn-id: http://scm.dspace.org/svn/repo/trunk@90 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-06-03 20:49:13 +00:00
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