Class Translator


  • public class Translator
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DeletionType translate​(DeletionType deletionType)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.dataset.IDataSetId translate​(IDataSetId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.experiment.IExperimentId translate​(IExperimentId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.IObjectId translate​(IObjectId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.material.IMaterialId translate​(IMaterialId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.metaproject.IMetaprojectId translate​(IMetaprojectId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.project.IProjectId translate​(IProjectId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.sample.ISampleId translate​(ISampleId id)  
      static ch.systemsx.cisd.openbis.generic.shared.basic.dto.MetaprojectAssignmentsIds translate​(MetaprojectAssignmentsIds assignments)  
      static DataSet translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData externalDatum, java.util.EnumSet<DataSet.Connections> connectionsToGet, java.util.Map<java.lang.String,​DataSet> alreadyTranslatedMap)
      Translates the specified AbstractExternalData instance into a DataSet instance.
      static DataSetType translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType dataSetType, java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,​java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)  
      static DataStore translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore dataStore)  
      static DeletedEntity translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DeletedEntity entity)  
      static Deletion translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Deletion deletion)  
      static EntityKind translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind kind)  
      static Experiment translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment privateExperiment)  
      static ExperimentType translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExperimentType experimentType, java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,​java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)  
      static Material translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material, java.util.Map<java.lang.Long,​Material> materialsCache)  
      static Project translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project project)  
      static PropertyType translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.PropertyType propertyType, java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,​java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)  
      static Role translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy role)  
      static Role translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy.RoleCode roleCode, boolean spaceLevel)  
      static Sample translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample privateSample)  
      static SampleType translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleType sampleType, java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,​java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)  
      static Vocabulary translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary privateVocabulary)  
      static java.util.List<DataSet> translate​(java.lang.Iterable<ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData> dataSets, java.util.EnumSet<DataSet.Connections> connectionsToGet)
      Translates specified iterable collection of AbstractExternalData into a list of DataSet instance.
      static java.util.List<VocabularyTerm> translate​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)  
      static java.util.List<Deletion> translate​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Deletion> deletions)  
      static java.util.Set<ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.IObjectId> translate​(java.util.Set<IObjectId> ids)  
      static java.util.List<Attachment> translateAttachments​(java.lang.String sessionToken, IObjectId attachmentHolderId, ch.systemsx.cisd.openbis.generic.shared.dto.AttachmentHolderPE attachmentHolderPE, java.util.List<ch.systemsx.cisd.openbis.generic.shared.dto.AttachmentPE> attachments, boolean allVersions)  
      static java.util.List<DataStore> translateDataStores​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore> dataStores)  
      static java.util.List<Experiment> translateExperiments​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment> privateExperiments)  
      static java.util.List<Material> translateMaterials​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material> materials)  
      static java.util.List<Project> translateProjects​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project> projects)  
      static java.util.List<ControlledVocabularyPropertyType.VocabularyTerm> translatePropertyTypeTerms​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)  
      static java.util.List<Sample> translateSamples​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample> privateSamples)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • translate

        public static Role translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy role)
      • translate

        public static Role translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy.RoleCode roleCode,
                                     boolean spaceLevel)
      • translateProjects

        public static java.util.List<Project> translateProjects​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project> projects)
      • translate

        public static DataStore translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore dataStore)
      • translateDataStores

        public static java.util.List<DataStore> translateDataStores​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore> dataStores)
      • translate

        public static Project translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project project)
      • translateSamples

        public static java.util.List<Sample> translateSamples​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample> privateSamples)
      • translate

        public static Sample translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample privateSample)
      • translateExperiments

        public static java.util.List<Experiment> translateExperiments​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment> privateExperiments)
      • translate

        public static Experiment translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment privateExperiment)
      • translate

        public static SampleType translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.SampleType sampleType,
                                           java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,​java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
      • translatePropertyTypeTerms

        public static java.util.List<ControlledVocabularyPropertyType.VocabularyTerm> translatePropertyTypeTerms​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)
      • translate

        public static java.util.List<VocabularyTerm> translate​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)
      • translate

        public static java.util.List<DataSet> translate​(java.lang.Iterable<ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData> dataSets,
                                                        java.util.EnumSet<DataSet.Connections> connectionsToGet)
        Translates specified iterable collection of AbstractExternalData into a list of DataSet instance.
        Parameters:
        connectionsToGet - Set of data set connections which should also be translated. This assumes that the AbstractExternalData instances are populated with these connections.
      • translate

        public static DataSet translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData externalDatum,
                                        java.util.EnumSet<DataSet.Connections> connectionsToGet,
                                        java.util.Map<java.lang.String,​DataSet> alreadyTranslatedMap)
        Translates the specified AbstractExternalData instance into a DataSet instance.
        Parameters:
        connectionsToGet - Set of data set connections which should also be translated. This assumes that the AbstractExternalData instance is populated with these connections.
      • translate

        public static Vocabulary translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary privateVocabulary)
      • translate

        public static Material translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material,
                                         java.util.Map<java.lang.Long,​Material> materialsCache)
      • translateMaterials

        public static java.util.List<Material> translateMaterials​(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material> materials)
      • translateAttachments

        public static java.util.List<Attachment> translateAttachments​(java.lang.String sessionToken,
                                                                      IObjectId attachmentHolderId,
                                                                      ch.systemsx.cisd.openbis.generic.shared.dto.AttachmentHolderPE attachmentHolderPE,
                                                                      java.util.List<ch.systemsx.cisd.openbis.generic.shared.dto.AttachmentPE> attachments,
                                                                      boolean allVersions)
      • translate

        public static java.util.Set<ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.IObjectId> translate​(java.util.Set<IObjectId> ids)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.IObjectId translate​(IObjectId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.project.IProjectId translate​(IProjectId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.experiment.IExperimentId translate​(IExperimentId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.sample.ISampleId translate​(ISampleId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.dataset.IDataSetId translate​(IDataSetId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.material.IMaterialId translate​(IMaterialId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.id.metaproject.IMetaprojectId translate​(IMetaprojectId id)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.MetaprojectAssignmentsIds translate​(MetaprojectAssignmentsIds assignments)
      • translate

        public static ch.systemsx.cisd.openbis.generic.shared.basic.dto.DeletionType translate​(DeletionType deletionType)
      • translate

        public static java.util.List<Deletion> translate​(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Deletion> deletions)
      • translate

        public static Deletion translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Deletion deletion)
      • translate

        public static DeletedEntity translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DeletedEntity entity)
      • translate

        public static EntityKind translate​(ch.systemsx.cisd.openbis.generic.shared.basic.dto.EntityKind kind)