Migrating current AIP Backup/Restore code (DS-466) from 'aip-external-1_6-prototype' Branch into Trunk! See https://wiki.duraspace.org/display/DSPACE/AipBackupRestorePrototype for much more details on this work, and how to export/import AIPs. WARNING -- This changes the PackageIngester and PackageDisseminator interfaces. Any of your local, custom Packagers will require refactoring to support the updated interfaces (obviously all DSpace out-of-the-box Packagers have already been refactored).

git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5265 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
Tim Donohue
2010-08-13 20:10:32 +00:00
parent d1a93e3510
commit 075a913755
46 changed files with 7733 additions and 1557 deletions

View File

@@ -1972,13 +1972,7 @@ public class Item extends DSpaceObject
AuthorizeManager.removeAllPolicies(ourContext, this);
// Remove any Handle
// FIXME: HandleManager should provide a way of doing this.
// Plus, deleting a Handle may have ramifications
// that need considering.
DatabaseManager.updateQuery(ourContext,
"DELETE FROM handle WHERE resource_type_id= ? " +
"AND resource_id= ? ",
Constants.ITEM,getID());
HandleManager.unbindHandle(ourContext, this);
// Finally remove item row
DatabaseManager.delete(ourContext, itemRow);