Commit Graph

189 Commits

Author SHA1 Message Date
Robert Tansley
b17a311595 Added findAll() method
git-svn-id: http://scm.dspace.org/svn/repo/trunk@39 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-27 19:38:05 +00:00
Robert Tansley
00239c8f6c Tests now pass; they leave some content around. Need a re-work - several
things aren't really right.  Will do when I have time.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@38 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:52:09 +00:00
Robert Tansley
abac47d9eb - Fixed getID()
- After creating DB rows, they're updated when submitter + item_id are set


git-svn-id: http://scm.dspace.org/svn/repo/trunk@37 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:51:23 +00:00
Robert Tansley
19313090e3 Fixed bugs in getDC() and clearDC()
git-svn-id: http://scm.dspace.org/svn/repo/trunk@36 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:50:30 +00:00
Robert Tansley
5962e378d0 Removed debug println
git-svn-id: http://scm.dspace.org/svn/repo/trunk@35 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:49:49 +00:00
Robert Tansley
72b0c1567a deleteWithContents() fixed
git-svn-id: http://scm.dspace.org/svn/repo/trunk@34 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:49:05 +00:00
Robert Tansley
cce44b43d9 Fixed typo in SQL in "findByElement"
git-svn-id: http://scm.dspace.org/svn/repo/trunk@33 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 20:48:16 +00:00
Robert Tansley
4c318847e5 Fixes to community and tests.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@32 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-24 15:06:09 +00:00
Robert Tansley
09c29f4e28 WorkspaceItem used to create items now instead of having an item "shim"
git-svn-id: http://scm.dspace.org/svn/repo/trunk@31 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-22 20:06:44 +00:00
Robert Tansley
98d06954d4 Added some extra documentation about configuration.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@30 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-22 17:33:05 +00:00
Dan Chudnov
de0dd282ba Fixed typo
git-svn-id: http://scm.dspace.org/svn/repo/trunk@29 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-22 15:06:31 +00:00
Robert Tansley
327a582475 - Added a lot of overview and package information to the javadoc.
- Modified the javadoc target in build.xml to include the overview.
- Removed links to core Java classes in the javadoc in Utils.java (was
  causing warnings)


git-svn-id: http://scm.dspace.org/svn/repo/trunk@28 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-21 20:32:38 +00:00
Robert Tansley
d13eaf1c4b Added simplified e-mail handling
- Updated configuration + ConfigurationManager
- Added relevant libraries and Email class


git-svn-id: http://scm.dspace.org/svn/repo/trunk@27 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-21 18:03:31 +00:00
Robert Tansley
c451fc54d3 Updated CM API:
- Added logging
- Changed the way creating objects works for Bitstream, Bundle and Collection
  in preparation for authorisation integration.  It makes no sense to create
  a Bitstream, Bundle or Collection without it being associated with something,
  so to create one you need to call the relevant method on the container,
  for example "Bundle.createBitstream".  create() methods remain but have
  package-level access.  Logo-related methods take InputStreams again.
- Removed references to Handles - these are to be in a separate, pluggable
  module


git-svn-id: http://scm.dspace.org/svn/repo/trunk@26 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-20 19:36:20 +00:00
Robert Tansley
a3277ecd0d Upgraded log4j to 1.2.1.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@25 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-20 19:31:56 +00:00
Peter Breton
f06a889cd6 JUnit tests for CM API
git-svn-id: http://scm.dspace.org/svn/repo/trunk@24 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-17 14:56:01 +00:00
Peter Breton
46029dc069 Add equals method, needed for testing
git-svn-id: http://scm.dspace.org/svn/repo/trunk@23 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-17 14:54:46 +00:00
Robert Tansley
b95e70ad70 Added getAll()
git-svn-id: http://scm.dspace.org/svn/repo/trunk@22 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 21:03:54 +00:00
Robert Tansley
ee3ea2891e - Added useful description text (appears on ant -projecthelp)
- public_api target doesn't include internal classes in javadoc


git-svn-id: http://scm.dspace.org/svn/repo/trunk@21 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 20:49:48 +00:00
Robert Tansley
88d70803c0 SimplePoolInfo internal class now has package level access, simplifying
public API


git-svn-id: http://scm.dspace.org/svn/repo/trunk@20 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 20:47:27 +00:00
Robert Tansley
2f847e8a46 getCommunities() now works.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@19 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 20:47:00 +00:00
Robert Tansley
08cd7def28 - Added DCType registry manipulation class
- Added	RegistryLoader + associated build targets
- Fixed	a few javadoc comments in org.dspace.content


git-svn-id: http://scm.dspace.org/svn/repo/trunk@18 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 20:12:22 +00:00
Robert Tansley
70112164b4 Registries ported from DSpace early-adopters-2.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@17 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 20:11:57 +00:00
Peter Breton
49d5613436 Use new Bitstream schema; remove references to Storage and
Bitstream2Storage tables


git-svn-id: http://scm.dspace.org/svn/repo/trunk@16 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 18:57:26 +00:00
Robert Tansley
7160ceb7db Schema tweaks:
Changes from original SQL:


MODIFIED DCValue

  from:

    CREATE TABLE DCValue
    (
      dc_value_id   INTEGER PRIMARY KEY,
      text_value TEXT,
      text_lang  VARCHAR(24),
      source_id  INTEGER
    );


  to:

    CREATE TABLE DCValue
    (
      dc_value_id   INTEGER PRIMARY KEY,
      item_id       INTEGER REFERENCES Item(item_id),
      dc_type_id    INTEGER REFERENCES DCTypeRegistry(dc_type_id),
      text_value TEXT,
      text_lang  VARCHAR(24),
      place      INTEGER
      source_id  INTEGER
    );
    CREATE INDEX dcvalue_dc_type_id_idx  on DCValue(dc_type_id);



REMOVED Item2DCValue

REMOVED Storage

REMOVED Bitstream2Storage

CHANGED Bitstream

  from:
    -------------------------------------------------------
    -- Bitstream table
    -------------------------------------------------------
    DROP TABLE Bitstream;

    CREATE TABLE Bitstream
    (
      bitstream_id          INTEGER PRIMARY KEY,
      bitstream_type_id     INTEGER REFERENCES BitstreamTypeRegistry(bitstream_type_id),
      name                  VARCHAR(256),
      size                  INTEGER,
      checksum              VARCHAR(64),
      checksum_algorithm    VARCHAR(32),
      description           TEXT,
      user_type_description TEXT,
      source                VARCHAR(256),
      deleted               BOOL
    );


  to:

    -------------------------------------------------------
    -- Bitstream table
    -------------------------------------------------------
    DROP TABLE Bitstream;

    CREATE TABLE Bitstream
    (
       bitstream_id          INTEGER PRIMARY KEY,
       bitstream_type_id     INTEGER REFERENCES BitstreamTypeRegistry(bitstream_type_id),
       name                  VARCHAR(256),
       size                  INTEGER,
       checksum              VARCHAR(64),
       checksum_algorithm    VARCHAR(32),
       description           TEXT,
       user_type_description TEXT,
       source                VARCHAR(256),
       internal_id           VARCHAR(256),
       deleted               BOOL
    );


Views:

REMOVED Item2Bitstream

REMOVED Collection2Bitstream

REMOVED Community2Bitstream

REMOVED WorkflowItemsBySubmitter

REMOVED PersonalWorkspaceBySubmitter

REMOVED AllStorage

REMOVED ItemVersion

CHANGED DCResult

  from:

    -------------------------------------------------------
    --  DCResult view
    -------------------------------------------------------
    DROP VIEW DCResult;

    CREATE VIEW DCResult as
    SELECT Item.item_id, Item.in_archive, Item.submitter_id, dc_type_id, DCValue.*
    FROM Item2DCValue, DCValue, Item
    WHERE Item2DCValue.dc_value_id = DCValue.dc_value_id
    AND Item.item_id = Item2DCValue.item_id
    ;


  to:
    -------------------------------------------------------
    --  DCResult view
    -------------------------------------------------------
    DROP VIEW DCResult;

    CREATE VIEW DCResult as
    SELECT DCValue.*, Item.in_archive, Item.submitter_id
    FROM DCValue, Item
    WHERE Item.item_id = DCValue.item_id
    ;


git-svn-id: http://scm.dspace.org/svn/repo/trunk@15 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-16 18:10:04 +00:00
Robert Tansley
85c7430ba7 - Added checkstyle target to build.xml. checkstyle-all-2.2 (or higher)
must be on the CLASSPATH.
- Fixed some style issues.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@14 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-15 15:26:36 +00:00
Robert Tansley
2d81704286 - First revision at Content Management API, but not complete:
+ Largely untested.
  + No authorisation.
  + No logging.
  + Some e-person/groups functionality not implemented.
- ConfigurationManager updated to load default submission license.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@13 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-14 21:42:30 +00:00
Robert Tansley
ba68d6062d Jacobe 5.3 configuration file for DSpace code conventions
git-svn-id: http://scm.dspace.org/svn/repo/trunk@12 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-14 18:27:12 +00:00
Robert Tansley
64382e44b1 Integrated new Bitstore.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@11 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-14 18:25:03 +00:00
Peter Breton
7fdffbad97 delete method (delete by primary key) changed from private to public
git-svn-id: http://scm.dspace.org/svn/repo/trunk@10 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-13 22:58:06 +00:00
Peter Breton
426be6e8ba Remove unused lines
git-svn-id: http://scm.dspace.org/svn/repo/trunk@9 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-10 14:53:01 +00:00
Robert Tansley
1f14de8491 Added test targets.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@8 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-09 15:06:17 +00:00
Robert Tansley
79dfe61844 Added DBMS build tasks:
- Added schema file
- Add InitializeDatabase command line class
- Can now pass in "dspace.configuration" system property which will get
  ConfigurationManager to load a specific configuration
- Added a simple log4j properties file for use during builds (e.g. when
  executing InitializeDatabase)
- Changed a couple of INFO level logs to DEBUG in DatabaseManager


git-svn-id: http://scm.dspace.org/svn/repo/trunk@7 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-08 20:56:00 +00:00
Peter Breton
8ad4f8baed Fixed off-by-one bug in assignId method
git-svn-id: http://scm.dspace.org/svn/repo/trunk@6 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-07 19:51:34 +00:00
Peter Breton
290956c1c6 Update property names to match dspace.cfg
git-svn-id: http://scm.dspace.org/svn/repo/trunk@5 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-07 16:26:20 +00:00
Robert Tansley
72fa283120 Simplified RDBMS storage code in place.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@4 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-07 13:58:08 +00:00
Robert Tansley
193739429b - Added content management API stub classes.
- Updated build.xml with a javadoc target for building the public API docs.


git-svn-id: http://scm.dspace.org/svn/repo/trunk@3 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-06 19:36:15 +00:00
Robert Tansley
c67dc34fed Basic file structure, and configuration, and some core classes
git-svn-id: http://scm.dspace.org/svn/repo/trunk@2 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-03 20:19:46 +00:00
DSpace Developer
b2f7a288b7 New repository initialized by cvs2svn.
git-svn-id: http://scm.dspace.org/svn/repo/trunk@1 9c30dcfa-912a-0410-8fc2-9e0234be79fd
2002-05-03 20:19:46 +00:00