SetMetadata() public method

public SetMetadata ( Metadata metadata ) : void
metadata Metadata
return void
        public BloomLibraryPublishModel(BookUpload uploader, BookInstance book, PublishModel model)
        {
            Book          = book;
            _uploader     = uploader;
            _publishModel = model;

            _licenseMetadata = Book.GetLicenseMetadata();
            // This is usually redundant, but might not be on old books where the license was set before the new
            // editing code was written.
            Book.SetMetadata(_licenseMetadata);
            _license = _licenseMetadata.License;

            EnsureBookAndUploaderId();
        }