Update to ensure file size property is also updated when file is replaced.

This commit is contained in:
hjk54 2010-03-11 18:22:09 +00:00
parent fa143a168b
commit 18e9991839

View file

@ -426,7 +426,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons
wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, fileSize);
dps = new DataPropertyStatementImpl();
dps.setIndividualURI(fileEntity.getURI());
dps.setDatapropURI(VitroVocabulary.FILE_SIZE);
dps.setDatapropURI(fileSize.getURI());
dps.setData(Long.toString(fileRes.getSize()));
wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps);
//System.out.println("Updated file size with " + fileRes.getSize());