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:
Richard Jones
2007-11-12 11:59:47 +00:00
parent 8a7e41a5fe
commit 8d7b59f45d
17 changed files with 1315 additions and 12 deletions

View File

@@ -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);