public GetDatasetVersion ( System.Int64 versionId ) : |
||
versionId | System.Int64 | The identifier of the dataset version requested. |
리턴 |
private void getEffectiveTuples(Int64 versionId) { DatasetManager dm = new DatasetManager(); DatasetVersion workingCopy = dm.GetDatasetVersion(versionId); var changed = dm.GetDatasetVersionEffectiveTuples(workingCopy); }
private string Export(long datasetVersionId) { DatasetManager datasetManager = new DatasetManager(); DatasetVersion datasetVersion = datasetManager.GetDatasetVersion(datasetVersionId); MetadataStructureManager metadataStructureManager = new MetadataStructureManager(); MetadataStructure metadataStructure = metadataStructureManager.Repo.Get(datasetVersion.Dataset.MetadataStructure.Id); string fileName = getMappingFileName(datasetVersion, TransmissionType.mappingFileExport, metadataStructure.Name); string path_mapping_file = ""; try { path_mapping_file = Path.Combine(AppConfiguration.GetModuleWorkspacePath("DIM"), fileName); xmlMapperManager = new XmlMapperManager(TransactionDirection.InternToExtern); xmlMapperManager.Load(path_mapping_file, GetUsernameOrDefault()); return xmlMapperManager.Export(datasetVersion.Metadata,datasetVersion.Id, fileName); } catch(Exception ex) { return ex.Message; } return ""; }
private string getStorePath(long datasetVersionId,string exportTo) { DatasetManager datasetManager = new DatasetManager(); DatasetVersion datasetVersion = datasetManager.GetDatasetVersion(datasetVersionId); Dataset dataset = datasetManager.GetDataset(datasetVersionId); MetadataStructureManager metadataStructureManager = new MetadataStructureManager(); string md_title = metadataStructureManager.Repo.Get(datasetVersion.Dataset.MetadataStructure.Id).Name; string path; if (string.IsNullOrEmpty(exportTo) || exportTo.ToLower().Equals("generic")) path = IOHelper.GetDynamicStorePath(datasetVersion.Dataset.Id, datasetVersionId,"metadata", ".xml"); else path = IOHelper.GetDynamicStorePath(datasetVersion.Dataset.Id, datasetVersionId, "metadata_"+ exportTo, ".xml"); return path; }