Class DataSetUploadClientModel


  • public class DataSetUploadClientModel
    extends java.lang.Object
    • Constructor Detail

      • DataSetUploadClientModel

        public DataSetUploadClientModel​(DssCommunicationState commState,
                                        ch.systemsx.cisd.common.utilities.ITimeProvider timeProvider,
                                        IUserNotifier userNotifier)
    • Method Detail

      • reloadDataFromServer

        public void reloadDataFromServer()
      • sampleExists

        public boolean sampleExists​(java.lang.String identifier)
      • listSamplesWithNoExperiments

        public void listSamplesWithNoExperiments​(IAsyncAction<java.util.List<Sample>> action)
      • getDataSetTypes

        public java.util.List<DataSetType> getDataSetTypes()
        Get the data set types that are shown here.
      • getDataSetType

        public DataSetType getDataSetType​(java.lang.String dataSetTypeCode)
      • getIndexOfDataSetType

        public int getIndexOfDataSetType​(java.lang.String dataSetTypeCode)
      • cleanNewDataSetDTO

        public NewDataSetDTO cleanNewDataSetDTO​(NewDataSetDTO newDataSetDTO)
        Clean the newDataSetDTO object. This means removing any properties that are not valid for the data set type.
      • queueUploadOfDataSet

        public void queueUploadOfDataSet​(DataSetUploadClientModel.NewDataSetInfo newDataSetInfo)
        Start a data set upload in a separate thread. Callers need to ensure that queuing makes sense.
      • userDidSelectFile

        public void userDidSelectFile​(ValidatedFile selectedFile)
      • getUserSelectedFiles

        public java.util.List<ValidatedFile> getUserSelectedFiles()
      • validateNewDataSetInfoAndNotifyObservers

        public final void validateNewDataSetInfoAndNotifyObservers​(DataSetUploadClientModel.NewDataSetInfo newDataSetInfo)
        Validate a new data set info and update the validation errors.
      • validatePropertyType

        protected void validatePropertyType​(PropertyType propertyType,
                                            java.lang.String valueOrNull,
                                            java.util.ArrayList<ValidationError> errors)
      • addUnofficialVocabularyTerm

        public void addUnofficialVocabularyTerm​(Vocabulary vocabulary,
                                                java.lang.String code,
                                                java.lang.String label,
                                                java.lang.String description,
                                                java.lang.Long previousTermOrdinal)
      • getExperiments

        public java.util.List<Experiment> getExperiments()
      • getProjectIdentifiers

        public java.util.List<java.lang.String> getProjectIdentifiers()
      • getVocabulary

        public Vocabulary getVocabulary​(java.lang.String code)