Update to ensure file size property is also updated when file is replaced.
This commit is contained in:
parent
fa143a168b
commit
18e9991839
1 changed files with 1 additions and 1 deletions
|
@ -426,7 +426,7 @@ public class FedoraDatastreamController extends VitroHttpServlet implements Cons
|
||||||
wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, fileSize);
|
wdf.getDataPropertyStatementDao().deleteDataPropertyStatementsForIndividualByDataProperty(fileEntity, fileSize);
|
||||||
dps = new DataPropertyStatementImpl();
|
dps = new DataPropertyStatementImpl();
|
||||||
dps.setIndividualURI(fileEntity.getURI());
|
dps.setIndividualURI(fileEntity.getURI());
|
||||||
dps.setDatapropURI(VitroVocabulary.FILE_SIZE);
|
dps.setDatapropURI(fileSize.getURI());
|
||||||
dps.setData(Long.toString(fileRes.getSize()));
|
dps.setData(Long.toString(fileRes.getSize()));
|
||||||
wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps);
|
wdf.getDataPropertyStatementDao().insertNewDataPropertyStatement(dps);
|
||||||
//System.out.println("Updated file size with " + fileRes.getSize());
|
//System.out.println("Updated file size with " + fileRes.getSize());
|
||||||
|
|
Loading…
Add table
Reference in a new issue