mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 03:53:07 +00:00
Option to generate community and collection "strength" as a batch job
git-svn-id: http://scm.dspace.org/svn/repo/branches/dspace-1_5_x@2328 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -1053,6 +1053,19 @@ public class Collection extends DSpaceObject
|
||||
wsarray[x].deleteAll();
|
||||
}
|
||||
|
||||
// get rid of the content count cache if it exists
|
||||
try
|
||||
{
|
||||
ItemCounter ic = new ItemCounter(ourContext);
|
||||
ic.remove(this);
|
||||
}
|
||||
catch (ItemCountException e)
|
||||
{
|
||||
// FIXME: upside down exception handling due to lack of good
|
||||
// exception framework
|
||||
throw new SQLException(e);
|
||||
}
|
||||
|
||||
// Delete collection row
|
||||
DatabaseManager.delete(ourContext, collectionRow);
|
||||
|
||||
|
Reference in New Issue
Block a user