diff --git a/roda-core/roda-core/src/main/java/org/roda/core/plugins/base/preservation/EditFileFormatPlugin.java b/roda-core/roda-core/src/main/java/org/roda/core/plugins/base/preservation/EditFileFormatPlugin.java index be0b086492..1d7e166031 100644 --- a/roda-core/roda-core/src/main/java/org/roda/core/plugins/base/preservation/EditFileFormatPlugin.java +++ b/roda-core/roda-core/src/main/java/org/roda/core/plugins/base/preservation/EditFileFormatPlugin.java @@ -40,6 +40,7 @@ import org.roda.core.plugins.orchestrate.JobPluginInfo; import org.roda.core.storage.DirectResourceAccess; import org.roda.core.storage.StorageService; +import org.roda.core.util.IdUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -144,7 +145,7 @@ private void processFiles(IndexService index, ModelService model, StorageService Report parametersReport = validateParameters(); for (File file : files) { - Report reportItem = PluginHelper.initPluginReportItem(this, file.getId(), File.class); + Report reportItem = PluginHelper.initPluginReportItem(this, IdUtils.getFileId(file), File.class); PluginHelper.updatePartialJobReport(this, model, reportItem, false, cachedJob); if (parametersReport.getPluginState().equals(PluginState.SUCCESS)) { if (file.isDirectory()) { diff --git a/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java b/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java index d582b179d4..8c5334800f 100644 --- a/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java +++ b/roda-ui/roda-wui/src/main/java/org/roda/wui/client/services/Services.java @@ -10,7 +10,9 @@ import org.roda.core.data.exceptions.RODAException; import org.roda.core.data.v2.disposal.confirmation.DisposalConfirmation; import org.roda.core.data.v2.index.IsIndexed; +import org.roda.core.data.v2.ip.AIP; import org.roda.core.data.v2.ip.DIPFile; +import org.roda.core.data.v2.ip.File; import org.roda.core.data.v2.ip.IndexedAIP; import org.roda.core.data.v2.ip.IndexedDIP; import org.roda.core.data.v2.ip.IndexedFile; @@ -124,7 +126,7 @@ private , O extends IsIndexed, T> Completable service = GWT.create(TransferredResourceRestService.class); } else if (Notification.class.getName().equals(objectClassString)) { service = GWT.create(NotificationRestService.class); - } else if (IndexedAIP.class.getName().equals(objectClassString)) { + } else if (IndexedAIP.class.getName().equals(objectClassString) || AIP.class.getName().equals(objectClassString)) { service = GWT.create(AIPRestService.class); } else if (DisposalConfirmation.class.getName().equals(objectClassString)) { service = GWT.create(DisposalConfirmationRestService.class); @@ -148,7 +150,8 @@ private , O extends IsIndexed, T> Completable service = GWT.create(DIPRestService.class); } else if (IndexedRepresentation.class.getName().equals(objectClassString)) { service = GWT.create(RepresentationRestService.class); - } else if (IndexedFile.class.getName().equals(objectClassString)) { + } else if (IndexedFile.class.getName().equals(objectClassString) + || File.class.getName().equals(objectClassString)) { service = GWT.create(FileRestService.class); } else if (LogEntry.class.getName().equals(objectClassString)) { service = GWT.create(AuditLogRestService.class);