Class Translator
- java.lang.Object
-
- ch.systemsx.cisd.openbis.generic.shared.api.v1.Translator
-
public class Translator extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DeletionType
translate(DeletionType deletionType)
static IDataSetId
translate(IDataSetId id)
static IExperimentId
translate(IExperimentId id)
static IObjectId
translate(IObjectId id)
static IMaterialId
translate(IMaterialId id)
static IMetaprojectId
translate(IMetaprojectId id)
static IProjectId
translate(IProjectId id)
static ISampleId
translate(ISampleId id)
static MetaprojectAssignmentsIds
translate(MetaprojectAssignmentsIds assignments)
static DataSet
translate(AbstractExternalData externalDatum, java.util.EnumSet<DataSet.Connections> connectionsToGet, java.util.Map<java.lang.String,DataSet> alreadyTranslatedMap)
Translates the specifiedAbstractExternalData
instance into aDataSet
instance.static DataSetType
translate(DataSetType dataSetType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
static DataStore
translate(DataStore dataStore)
static DeletedEntity
translate(DeletedEntity entity)
static Deletion
translate(Deletion deletion)
static EntityKind
translate(EntityKind kind)
static Experiment
translate(Experiment privateExperiment)
static ExperimentType
translate(ExperimentType experimentType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
static Material
translate(Material material, java.util.Map<java.lang.Long,Material> materialsCache)
static Project
translate(Project project)
static PropertyType
translate(PropertyType propertyType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
static Role
translate(RoleWithHierarchy role)
static Role
translate(RoleWithHierarchy.RoleCode roleCode, boolean spaceLevel)
static Sample
translate(Sample privateSample)
static SampleType
translate(SampleType sampleType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
static Vocabulary
translate(Vocabulary privateVocabulary)
static java.util.List<DataSet>
translate(java.lang.Iterable<AbstractExternalData> dataSets, java.util.EnumSet<DataSet.Connections> connectionsToGet)
Translates specified iterable collection ofAbstractExternalData
into a list ofDataSet
instance.static java.util.List<VocabularyTerm>
translate(java.util.Collection<VocabularyTerm> privateTerms)
static java.util.List<Deletion>
translate(java.util.List<Deletion> deletions)
static java.util.Set<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<DataStore> dataStores)
static java.util.List<Experiment>
translateExperiments(java.util.Collection<Experiment> privateExperiments)
static java.util.List<Material>
translateMaterials(java.util.Collection<Material> materials)
static java.util.List<Project>
translateProjects(java.util.List<Project> projects)
static java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>
translatePropertyTypeTerms(java.util.Collection<VocabularyTerm> privateTerms)
static java.util.List<Sample>
translateSamples(java.util.Collection<Sample> privateSamples)
-
-
-
Method Detail
-
translate
public static Role translate(RoleWithHierarchy role)
-
translate
public static Role translate(RoleWithHierarchy.RoleCode roleCode, boolean spaceLevel)
-
translateProjects
public static java.util.List<Project> translateProjects(java.util.List<Project> projects)
-
translateDataStores
public static java.util.List<DataStore> translateDataStores(java.util.List<DataStore> dataStores)
-
translateSamples
public static java.util.List<Sample> translateSamples(java.util.Collection<Sample> privateSamples)
-
translateExperiments
public static java.util.List<Experiment> translateExperiments(java.util.Collection<Experiment> privateExperiments)
-
translate
public static Experiment translate(Experiment privateExperiment)
-
translate
public static DataSetType translate(DataSetType dataSetType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
-
translate
public static SampleType translate(SampleType sampleType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
-
translate
public static ExperimentType translate(ExperimentType experimentType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
-
translatePropertyTypeTerms
public static java.util.List<ControlledVocabularyPropertyType.VocabularyTerm> translatePropertyTypeTerms(java.util.Collection<VocabularyTerm> privateTerms)
-
translate
public static java.util.List<VocabularyTerm> translate(java.util.Collection<VocabularyTerm> privateTerms)
-
translate
public static java.util.List<DataSet> translate(java.lang.Iterable<AbstractExternalData> dataSets, java.util.EnumSet<DataSet.Connections> connectionsToGet)
Translates specified iterable collection ofAbstractExternalData
into a list ofDataSet
instance.- Parameters:
connectionsToGet
- Set of data set connections which should also be translated. This assumes that theAbstractExternalData
instances are populated with these connections.
-
translate
public static DataSet translate(AbstractExternalData externalDatum, java.util.EnumSet<DataSet.Connections> connectionsToGet, java.util.Map<java.lang.String,DataSet> alreadyTranslatedMap)
Translates the specifiedAbstractExternalData
instance into aDataSet
instance.- Parameters:
connectionsToGet
- Set of data set connections which should also be translated. This assumes that theAbstractExternalData
instance is populated with these connections.
-
translate
public static Vocabulary translate(Vocabulary privateVocabulary)
-
translate
public static Material translate(Material material, java.util.Map<java.lang.Long,Material> materialsCache)
-
translateMaterials
public static java.util.List<Material> translateMaterials(java.util.Collection<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 PropertyType translate(PropertyType propertyType, java.util.HashMap<Vocabulary,java.util.List<ControlledVocabularyPropertyType.VocabularyTerm>> vocabTerms)
-
translate
public static IProjectId translate(IProjectId id)
-
translate
public static IExperimentId translate(IExperimentId id)
-
translate
public static IDataSetId translate(IDataSetId id)
-
translate
public static IMaterialId translate(IMaterialId id)
-
translate
public static IMetaprojectId translate(IMetaprojectId id)
-
translate
public static MetaprojectAssignmentsIds translate(MetaprojectAssignmentsIds assignments)
-
translate
public static DeletionType translate(DeletionType deletionType)
-
translate
public static DeletedEntity translate(DeletedEntity entity)
-
translate
public static EntityKind translate(EntityKind kind)
-
-