1616package org .labkey .ms2extensions ;
1717
1818import org .apache .logging .log4j .Logger ;
19+ import org .jetbrains .annotations .NotNull ;
1920import org .jetbrains .annotations .Nullable ;
2021import org .labkey .api .data .Container ;
2122import org .labkey .api .exp .ExperimentDataHandler ;
2829import org .labkey .api .view .ActionURL ;
2930import org .labkey .api .view .ViewBackgroundInfo ;
3031
31- import java .io .File ;
32+ import org .labkey .vfs .FileLike ;
33+
3234import java .io .OutputStream ;
3335import java .util .List ;
3436
@@ -52,15 +54,15 @@ public DataType getDataType()
5254 }
5355
5456 @ Override
55- public void importFile (ExpData data , File dataFile , ViewBackgroundInfo info , Logger log , XarContext context ) throws ExperimentException
57+ public void importFile (@ NotNull ExpData data , @ NotNull FileLike dataFile , @ NotNull ViewBackgroundInfo info , @ NotNull Logger log , @ NotNull XarContext context ) throws ExperimentException
5658 {
5759 _realHandler .importFile (data , dataFile , info , log , context );
5860 PeptideCountUpdater updater = new PeptideCountUpdater ();
5961 updater .update (data .getContainer (), info .getUser ());
6062 }
6163
6264 @ Override
63- public void exportFile (ExpData data , File dataFile , User user , OutputStream out ) throws ExperimentException
65+ public void exportFile (ExpData data , FileLike dataFile , User user , OutputStream out ) throws ExperimentException
6466 {
6567 _realHandler .exportFile (data , dataFile , user , out );
6668 }
@@ -84,7 +86,7 @@ public void deleteData(ExpData data, Container container, User user)
8486 }
8587
8688 @ Override
87- public boolean hasContentToExport (ExpData data , File file )
89+ public boolean hasContentToExport (ExpData data , FileLike file )
8890 {
8991 return _realHandler .hasContentToExport (data , file );
9092 }
0 commit comments