Exemple #1
0
        public MetadataEntry ValidateMetadata(string uuid)
        {
            MetadataEntry metadataEntry = null;

            try
            {
                metadataEntry = new MetadataValidator().RetrieveAndValidate(uuid);
                _metadataRepository.SaveMetadata(metadataEntry);

                Log.Info("Validating uuid=" + uuid + ", result=" + metadataEntry.GetResultAsText());
            }
            catch (Exception e)
            {
                Log.Error("Exception during validation of metadata [uuid=" + uuid + "]: " + e.Message, e);
            }
            return(metadataEntry);
        }
        public MetadataEntry ValidateMetadata(string uuid)
        {
            MetadataEntry metadataEntry = null;
            try
            {
                metadataEntry = new MetadataValidator().RetrieveAndValidate(uuid);
                _metadataRepository.SaveMetadata(metadataEntry);

                Log.Info("Validating uuid=" + uuid + ", result=" + metadataEntry.GetResultAsText());
            }
            catch (Exception e)
            {
                Log.Error("Exception during validation of metadata [uuid=" + uuid + "]: " + e.Message);
            }
            return metadataEntry;
        }