@@ -38,7 +38,7 @@ public interface ExportDataProvider {
3838 * dataset-level metadata along with basic file metadata for each file
3939 * in the dataset.
4040 */
41- JsonObject getDatasetORE ();
41+ JsonObject getDatasetORE (ExportDataOption ... options );
4242
4343 /**
4444 * Dataverse is capable of extracting DDI-centric metadata from tabular
@@ -53,7 +53,7 @@ public interface ExportDataProvider {
5353 * edu.harvard.iq.dataverse.util.json.JSONPrinter classes where this
5454 * output is used/generated (respectively).
5555 */
56- JsonArray getDatasetFileDetails ();
56+ JsonArray getDatasetFileDetails (ExportDataOption ... options );
5757
5858 /**
5959 * Similar to the above, but
@@ -78,7 +78,7 @@ public interface ExportDataProvider {
7878 * a starting point for an Exporter if it simplifies your exporter
7979 * relative to using the JSON or OAI_ORE exports.
8080 */
81- JsonObject getDatasetSchemaDotOrg ();
81+ JsonObject getDatasetSchemaDotOrg (ExportDataOption ... options );
8282
8383 /**
8484 *
@@ -88,7 +88,7 @@ public interface ExportDataProvider {
8888 * a starting point for an Exporter if it simplifies your exporter
8989 * relative to using the JSON or OAI_ORE exports.
9090 */
91- String getDataCiteXml ();
91+ String getDataCiteXml (ExportDataOption ... options );
9292
9393 /**
9494 * If an Exporter has specified a prerequisite format name via the
@@ -108,13 +108,8 @@ public interface ExportDataProvider {
108108 * Exporter is configured to replace the internal ddi Exporter in
109109 * Dataverse.
110110 */
111- default Optional <InputStream > getPrerequisiteInputStream () {
111+ default Optional <InputStream > getPrerequisiteInputStream (ExportDataOption ... options ) {
112112 return Optional .empty ();
113113 }
114-
115- public enum ExportDataOption {
116- DatasetMetadataOnly ,
117- PublicFilesOnly ;
118- }
119-
120- }
114+
115+ }
0 commit comments