ch.systemsx.cisd.openbis.generic.shared.api.v1
Class Translator

java.lang.Object
  extended by ch.systemsx.cisd.openbis.generic.shared.api.v1.Translator

public class Translator
extends java.lang.Object


Method Summary
static java.util.List<VocabularyTerm> translate(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)
           
static DataSetType translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType privateDataSetType, java.util.HashMap<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
           
static Experiment translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment privateExperiment)
           
static DataSet translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExternalData externalDatum, java.util.EnumSet<DataSet.Connections> connectionsToGet)
          Translates the specified ExternalData instance into a DataSet instance.
static java.util.List<DataSet> translate(java.lang.Iterable<ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExternalData> dataSets, java.util.EnumSet<DataSet.Connections> connectionsToGet)
          Translates specified iterable collection of ExternalData into a list of DataSet instance.
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 Role translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy.RoleCode roleCode, boolean spaceLevel)
           
static Role translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy role)
           
static Sample translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample privateSample)
           
static Vocabulary translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary privateVocabulary)
           
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
equals, 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 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 DataSetType translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataSetType privateDataSetType,
                                    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.ExternalData> dataSets,
                                                java.util.EnumSet<DataSet.Connections> connectionsToGet)
Translates specified iterable collection of ExternalData into a list of DataSet instance.

Parameters:
connectionsToGet - Set of data set connections which should also be translated. This assumes that the ExternalData instances are populated with these connections.

translate

public static DataSet translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.ExternalData externalDatum,
                                java.util.EnumSet<DataSet.Connections> connectionsToGet)
Translates the specified ExternalData instance into a DataSet instance.

Parameters:
connectionsToGet - Set of data set connections which should also be translated. This assumes that the ExternalData 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)