public class Translator
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static DataSet |
translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData externalDatum,
java.util.EnumSet<DataSet.Connections> connectionsToGet)
Translates the specified
AbstractExternalData instance into a DataSet
instance. |
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 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 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 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 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 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<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) |
public static Role translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy role)
public static Role translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.RoleWithHierarchy.RoleCode roleCode, boolean spaceLevel)
public static java.util.List<Project> translateProjects(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project> projects)
public static DataStore translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore dataStore)
public static java.util.List<DataStore> translateDataStores(java.util.List<ch.systemsx.cisd.openbis.generic.shared.basic.dto.DataStore> dataStores)
public static Project translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Project project)
public static java.util.List<Sample> translateSamples(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample> privateSamples)
public static Sample translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Sample privateSample)
public static java.util.List<Experiment> translateExperiments(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment> privateExperiments)
public static Experiment translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Experiment privateExperiment)
public 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)
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)
public 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)
public static java.util.List<ControlledVocabularyPropertyType.VocabularyTerm> translatePropertyTypeTerms(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)
public static java.util.List<VocabularyTerm> translate(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.VocabularyTerm> privateTerms)
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)
AbstractExternalData
into a list of
DataSet
instance.connectionsToGet
- Set of data set connections which should also be translated. This
assumes that the AbstractExternalData
instances are populated with these
connections.public static DataSet translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.AbstractExternalData externalDatum, java.util.EnumSet<DataSet.Connections> connectionsToGet)
AbstractExternalData
instance into a DataSet
instance.connectionsToGet
- Set of data set connections which should also be translated. This
assumes that the AbstractExternalData
instance is populated with these
connections.public static Vocabulary translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Vocabulary privateVocabulary)
public static Material translate(ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material material, java.util.Map<java.lang.Long,Material> materialsCache)
public static java.util.List<Material> translateMaterials(java.util.Collection<ch.systemsx.cisd.openbis.generic.shared.basic.dto.Material> materials)
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)