Class ConversionUtils


  • public class ConversionUtils
    extends java.lang.Object
    Utility methods to convert transaction-layer DTOs to objects accepted by openBIS.
    • Constructor Detail

      • ConversionUtils

        public ConversionUtils()
    • Method Detail

      • convertToNewExperiment

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewExperiment convertToNewExperiment​(ch.systemsx.cisd.etlserver.registrator.api.v2.impl.Experiment apiExperiment)
      • convertToExperimentUpdateDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.ExperimentUpdatesDTO convertToExperimentUpdateDTO​(ch.systemsx.cisd.etlserver.registrator.api.v2.impl.ExperimentUpdatable apiExperiment)
      • convertToNewSample

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewSample convertToNewSample​(Sample apiSample)
      • convertToSampleUpdateDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.SampleUpdatesDTO convertToSampleUpdateDTO​(Sample apiSample)
      • convertToNewExternalData

        public static ch.systemsx.cisd.openbis.generic.shared.dto.NewExternalData convertToNewExternalData​(DataSetRegistrationDetails<?> registrationDetails,
                                                                                                           java.lang.String dataStoreCode,
                                                                                                           ch.systemsx.cisd.openbis.generic.shared.dto.StorageFormat storageFormat,
                                                                                                           java.lang.String dataFileRelativePath)
      • convertToNewLinkDataSet

        public static ch.systemsx.cisd.openbis.generic.shared.dto.NewLinkDataSet convertToNewLinkDataSet​(DataSetRegistrationDetails<?> registrationDetails,
                                                                                                         java.lang.String dataStoreCode)
      • convertToNewContainerDataSet

        public static ch.systemsx.cisd.openbis.generic.shared.dto.NewContainerDataSet convertToNewContainerDataSet​(DataSetRegistrationDetails<?> registrationDetails,
                                                                                                                   java.lang.String dataStoreCode)
      • convertToNewSpace

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewSpace convertToNewSpace​(Space apiSpace)
      • convertToNewProject

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewProject convertToNewProject​(ch.systemsx.cisd.etlserver.registrator.api.v2.impl.Project apiProject)
      • convertToProjectUpdateDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.ProjectUpdatesDTO convertToProjectUpdateDTO​(ch.systemsx.cisd.etlserver.registrator.api.v2.impl.Project apiProject)
      • convertToDataSetUpdatesDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.DataSetUpdatesDTO convertToDataSetUpdatesDTO​(DataSetUpdatable dataSet)
      • convertToDataSetBatchUpdatesDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.DataSetBatchUpdatesDTO convertToDataSetBatchUpdatesDTO​(DataSetUpdatable dataSet)
      • convertToNewMaterial

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewMaterial convertToNewMaterial​(Material material)
      • convertToMaterialUpdateDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.MaterialUpdateDTO convertToMaterialUpdateDTO​(Material material)
      • convertToNewMetaproject

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.NewMetaproject convertToNewMetaproject​(Metaproject metaproject)
      • convertToMetaprojectUpdatesDTO

        public static ch.systemsx.cisd.openbis.generic.shared.dto.MetaprojectUpdatesDTO convertToMetaprojectUpdatesDTO​(Metaproject metaproject)
      • convertToMetaprojectsImmutable

        public static java.util.List<IMetaprojectImmutable> convertToMetaprojectsImmutable​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Metaproject> metaprojects)