A file registered with this module
 /// <summary>Fills the <paramref name="contentItem"/> with the properties from the <paramref name="file"/>.</summary>
 /// <param name="file">The file.</param>
 /// <param name="contentItem">The content item.</param>
 private static void FillContentItem(JackrabbitFile file, ContentItem contentItem)
 {
     contentItem.Content = file.FilePath;
     contentItem.Metadata["FileType"] = file.FileType.ToString();
     contentItem.Metadata["PathPrefixName"] = file.PathPrefixName;
     contentItem.Metadata["Provider"] = file.Provider;
     contentItem.Metadata["Priority"] = file.Priority.ToString(CultureInfo.InvariantCulture);
 }
 /// <summary>Adds the file.</summary>
 /// <param name="moduleId">The module ID.</param>
 /// <param name="file">The file.</param>
 public void AddFile(int moduleId, JackrabbitFile file)
 {
     var contentItem = new ContentItem { ContentTypeId = this.JackrabbitFileContentType.ContentTypeId, ModuleID = moduleId, };
     FillContentItem(file, contentItem);
     this.contentController.AddContentItem(contentItem);
 }
        /// <summary>Updates the file.</summary>
        /// <param name="file">The file.</param>
        public void UpdateFile(JackrabbitFile file)
        {
            var contentItem = this.contentController.GetContentItem(file.Id);
            if (contentItem == null)
            {
                return;
            }

            FillContentItem(file, contentItem);
            this.contentController.UpdateContentItem(contentItem);
        }