tempDir.deleteOnExit();
tempDigitalObjects.clear();
allowRemove = -1;
jhoveTree = new JHoveTree();
jHoveAdaptor=new JHoveAdaptor();
try {
fits = new FitsIntegration();
} catch (Throwable e) {
fits = null;
log.error("Could not instantiate FITS, it is not configured properly.", e);
FacesMessages.instance().add(FacesMessage.SEVERITY_WARN, "Could not instantiate FITS, it is not configured properly.");
}
records = selectedPlan.getSampleRecordsDefinition().getRecords();
boolean updated = false;
for (SampleObject record : records) {
if (record.getJhoveXMLString() == null || "".equals(record.getJhoveXMLString())) {
record.setJhoveXMLString(new JHoveAdaptor().describe(em.merge(record)));
updated = true;
}
}
if (updated) {
em.persist(em.merge(selectedPlan.getSampleRecordsDefinition()));