Exemplo n.º 1
0
        /// <summary>
        /// Deletes the DataSet From EvMaster
        /// </summary>
        /// <param name="task">DeleteDataSetTaskBEO</param>
        /// <param name="jobParameters">DeleteDataSetJobBEO</param>
        private void DeleteDataSetFromEvMaster(DeleteDataSetTaskBEO task, DeleteDataSetJobBEO jobParameters)
        {
            if (jobParameters != null)
            {
                string datasetUuid = string.Format("{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}", Constants.Matter, Constants.Hyphen,
                                                   jobParameters.MatterId, Constants.Hyphen, Constants.Dataset, Constants.Hyphen, jobParameters.DataSetId,
                                                   Constants.Hyphen, Constants.Collection, Constants.Hyphen, jobParameters.CollectionId);

                DataSetBO.DeleteDataSetFromEVMaster(datasetUuid);

                var externalizationEnabled = Convert.ToBoolean(CmgServiceConfigBO.GetServiceConfigurationsforConfig(Constants.ExternalizationConfiguration));
                if (externalizationEnabled)
                {
                    DocumentBO.DeleteExternalization(jobParameters.MatterId, task.ExtractionPath, task.DocumentSets);
                }
            }
        }