From 25ec52e22f6d61ef034696bb57de70b8bb15611e Mon Sep 17 00:00:00 2001 From: Philip Durbin Date: Thu, 23 Jun 2016 15:18:21 -0400 Subject: [PATCH] DCM: capture todos #3145 --- src/main/java/edu/harvard/iq/dataverse/Dataset.java | 1 + .../dataverse/engine/command/impl/CreateDatasetCommand.java | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/src/main/java/edu/harvard/iq/dataverse/Dataset.java b/src/main/java/edu/harvard/iq/dataverse/Dataset.java index 817b05bf22d..231c8aff03f 100644 --- a/src/main/java/edu/harvard/iq/dataverse/Dataset.java +++ b/src/main/java/edu/harvard/iq/dataverse/Dataset.java @@ -41,6 +41,7 @@ public class Dataset extends DvObjectContainer { public enum FileUploadMechanism { + /** @todo Eventually, rather than hard-coding "RSYNC" et al here, each should be a row in a table. */ /** * Files are uploaded through the GUI or SWORD. * diff --git a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDatasetCommand.java b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDatasetCommand.java index 95c648fe6fd..04b199c65ad 100644 --- a/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDatasetCommand.java +++ b/src/main/java/edu/harvard/iq/dataverse/engine/command/impl/CreateDatasetCommand.java @@ -213,6 +213,11 @@ public Dataset execute(CommandContext ctxt) throws CommandException { } logger.log(Level.FINE,"after create version user " + formatter.format(new Date().getTime())); + /** @todo use something like this as a trigger instead? */ +// if (savedDataset.getOwner().getFileUploadMechanisms().contains("RSYNC")) { +// +// } + /** @todo Go ahead and create the folder for files. Don't wait */ for (DatasetField datasetField : savedDataset.getLatestVersion().getDatasetFields()) { /** * @todo What should the trigger be for kicking off the