* cherry-pick 13a51d32 (V8 History cleanup import/export)
Support import/export for doc type history cleanup policy (#11660)
* Support import/export for doc type history cleanup policy
* Support unset/null history cleanup value
* Resolve issue when api endpoints called without cleanup policy.
noop isn't good enough as map fails for response.
* null conditional vs null coalesce assignment
* Don't overwrite existing policy if omitted in import XML
* Update history cleanup warning and translations
* Change history cleanup alert to infomational styling
* Remove margin around history cleanup config
Co-authored-by: Ronald Barendse <ronald@barend.se>
# Conflicts:
# src/Umbraco.Core/Models/IContentType.cs
# src/Umbraco.Core/Packaging/PackageDataInstallation.cs
# src/Umbraco.Infrastructure/Persistence/Repositories/Implement/ContentTypeRepository.cs
# src/Umbraco.Infrastructure/Services/Implement/EntityXmlSerializer.cs
# src/Umbraco.Tests/Packaging/PackageDataInstallationTests.cs
# src/Umbraco.Tests/Services/Importing/ImportResources.Designer.cs
# src/Umbraco.Tests/Umbraco.Tests.csproj
# src/Umbraco.Web.UI/umbraco/config/lang/en.xml
# src/Umbraco.Web.UI/umbraco/config/lang/en_us.xml
# src/Umbraco.Web/Models/Mapping/ContentTypeMapDefinition.cs
# tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.resx
# tests/Umbraco.Tests.UnitTests/Umbraco.Core/Services/Importing/SingleDocType-WithCleanupPolicy.xml
* Remove namespace aliases
* Update IContentTypeWithHistoryCleanup documentation
Co-authored-by: Ronald Barendse <ronald@barend.se>
373 lines
20 KiB
C#
373 lines
20 KiB
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
// Runtime Version:4.0.30319.42000
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
namespace Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services.Importing {
|
|
using System;
|
|
|
|
|
|
/// <summary>
|
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
|
/// </summary>
|
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
|
// class via a tool like ResGen or Visual Studio.
|
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
|
// with the /str option, or rebuild your VS project.
|
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
|
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
|
internal class ImportResources {
|
|
|
|
private static global::System.Resources.ResourceManager resourceMan;
|
|
|
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
|
|
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
|
internal ImportResources() {
|
|
}
|
|
|
|
/// <summary>
|
|
/// Returns the cached ResourceManager instance used by this class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
|
get {
|
|
if (object.ReferenceEquals(resourceMan, null)) {
|
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Umbraco.Cms.Tests.Integration.Umbraco.Infrastructure.Services.Importing.ImportRes" +
|
|
"ources", typeof(ImportResources).Assembly);
|
|
resourceMan = temp;
|
|
}
|
|
return resourceMan;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Overrides the current thread's CurrentUICulture property for all
|
|
/// resource lookups using this strongly typed resource class.
|
|
/// </summary>
|
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
|
internal static global::System.Globalization.CultureInfo Culture {
|
|
get {
|
|
return resourceCulture;
|
|
}
|
|
set {
|
|
resourceCulture = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>CheckboxListTest</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <NewType key="9c9b55d0-2fbf-4f12-afea-023bd7b2519d" id="1148" parentID="-1" level="1" creatorID="0" sortOrder="9" createDate="2013-07-23T12:06:07" updateDate="2013-07-23T15:56:37" nodeName="DoIt" urlName="doit" path="-1,1148" isDoc="" nodeType="1134" creatorName="admin" writerName= [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string CheckboxList_Content_Package {
|
|
get {
|
|
return ResourceManager.GetString("CheckboxList_Content_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Compositions Packaged</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <umbHomePage key="9c9b55d0-2fbf-4f12-afea-023bd7b2519d" id="1068" parentID="-1" level="1" creatorID="0" sortOrder="0" createDate="2014-11-26T12:52:35" updateDate="2014-11-26T12:52:36" nodeName="Home" urlName="home" path="-1,1068" isDoc="" nodeType="1056" creatorName="Morten Ch [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string CompositionsTestPackage {
|
|
get {
|
|
return ResourceManager.GetString("CompositionsTestPackage", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Composite Test</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <CompositeTest id="1083" parentID="-1" level="1" creatorID="0" sortOrder="1" createDate="2014-11-26T15:02:43" updateDate="2014-11-26T15:02:43" nodeName="Composite test" urlName="composite-test" path="-1,1083" isDoc="" nodeType="1082" creatorName="Niels Hartvig" writerName="Niels Hart [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string CompositionsTestPackage_Random {
|
|
get {
|
|
return ResourceManager.GetString("CompositionsTestPackage_Random", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Dictionary-Package</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <DictionaryItems>
|
|
/// <DictionaryItem Key="28f2e02a-8c66-4fcd-85e3-8524d551c0d3" Name="Parent">
|
|
/// <Value LanguageId="2" LanguageCultureAlias="nb-NO"><![CDATA[ForelderVerdi]]></Value>
|
|
/// <Value LanguageId="3" LanguageCultureAlias="en-GB"><![CDATA[ParentValue]]></Value>
|
|
/// <DictionaryItem Key="e7dba0a9-d517-4ba4-8e18-2764d392c611" Name=" [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string Dictionary_Package {
|
|
get {
|
|
return ResourceManager.GetString("Dictionary_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Fanoe</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <Home id="1057" parentID="-1" level="1" creatorID="0" sortOrder="0" createDate="2014-11-25T12:23:30" updateDate="2014-12-01T13:45:08" nodeName="Home" urlName="home" path="-1,1057" isDoc="" nodeType="1055" creatorName="Rune Strand" writerName="Rune Strand" writerID="0" template="1054" nodeTypeAlias="Home"> [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string Fanoe_Package {
|
|
get {
|
|
return ResourceManager.GetString("Fanoe_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>DocTypeError</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <DocumentTypes>
|
|
/// <DocumentType>
|
|
/// <Info>
|
|
/// <Name>MR Basisseite</Name>
|
|
/// <Key>02e4e119-2eeb-4b92-9880-0c35d66a16b2</Key>
|
|
/// <Alias>MRBasePage</Alias>
|
|
/// <Icon>folder.gif</Icon>
|
|
/// <Thumbnail>folder.png</Thumbnail>
|
|
/// <Description>Basistyp für alle Seiten der MR-Racing Website.</Description>
|
|
/// [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string InheritedDocTypes_Package {
|
|
get {
|
|
return ResourceManager.GetString("InheritedDocTypes_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Package With MediaTypes And Media + Folder</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <DocumentTypes />
|
|
/// <MediaTypes>
|
|
/// <MediaType>
|
|
/// <Info>
|
|
/// <Name>Folder</Name>
|
|
/// <Key>c3ddc08e-3b5e-42b2-9f0b-6e5c79a2e2e0</Key>
|
|
/// <Alias>Folder</Alias>
|
|
/// <Icon>icon-folder</Icon>
|
|
/// <Thumbnail>icon-folder</Thumbnail>
|
|
/// <Description />
|
|
/// <AllowAtRoot>True</AllowAtRoot>
|
|
/// [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string MediaTypesAndMedia_Package_xml {
|
|
get {
|
|
return ResourceManager.GetString("MediaTypesAndMedia_Package.xml", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
|
///<DocumentType>
|
|
/// <Info>
|
|
/// <Name>test</Name>
|
|
/// <Key>150ead17-d359-42a2-ac33-6504cc52ced1</Key>
|
|
/// <Alias>test</Alias>
|
|
/// <Icon>folder.gif</Icon>
|
|
/// <Thumbnail>folder.png</Thumbnail>
|
|
/// <Description>
|
|
/// </Description>
|
|
/// <AllowAtRoot>False</AllowAtRoot>
|
|
/// <AllowedTemplates>
|
|
/// <Template>test</Template>
|
|
/// </AllowedTemplates>
|
|
/// <DefaultTemplate>test</DefaultTemplate>
|
|
/// </Info>
|
|
/// <Structure>
|
|
/// <DocumentType>test</DocumentType>
|
|
/// </Str [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string SingleDocType {
|
|
get {
|
|
return ResourceManager.GetString("SingleDocType", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="utf-8" ?>
|
|
///<DocumentType>
|
|
/// <Info>
|
|
/// <Name>test</Name>
|
|
/// <Key>150ead17-d359-42a2-ac33-6504cc52ced1</Key>
|
|
/// <Alias>test</Alias>
|
|
/// <Icon>folder.gif</Icon>
|
|
/// <Thumbnail>folder.png</Thumbnail>
|
|
/// <Description>
|
|
/// </Description>
|
|
/// <AllowAtRoot>False</AllowAtRoot>
|
|
/// <AllowedTemplates>
|
|
/// <Template>test</Template>
|
|
/// </AllowedTemplates>
|
|
/// <DefaultTemplate>test</DefaultTemplate>
|
|
/// </Info>
|
|
/// <Structure>
|
|
/// <DocumentType>test</DocumentType>
|
|
/// </Str [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string SingleDocType_WithCleanupPolicy {
|
|
get {
|
|
return ResourceManager.GetString("SingleDocType_WithCleanupPolicy", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>StandardWebsiteMVC</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <Homepage key="9c9b55d0-2fbf-4f12-afea-023bd7b2519d" id="1072" parentID="-1" level="1" creatorID="0" sortOrder="0" createDate="2013-02-17T09:04:39" updateDate="2013-02-17T09:10:47" nodeName="Home" urlName="home" path="-1,1072" isDoc="" nodeType="1062" creatorName="admin" writerName="admin" wr [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string StandardMvc_Package {
|
|
get {
|
|
return ResourceManager.GetString("StandardMvc_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Template-Update</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <DocumentTypes />
|
|
/// <Templates>
|
|
/// <Template>
|
|
/// <Name>Homepage</Name>
|
|
/// <Alias>umbHomepage</Alias>
|
|
/// <Master>umbMaster</Master>
|
|
/// <Design>
|
|
/// <![CDATA[<%@ Master Language="C#" MasterPageFile="~/masterpages/umbMaster.master" AutoEventWireup="true" %>
|
|
///<asp:content id="Content1" contentplaceholderid="cp_content [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string TemplateOnly_Package {
|
|
get {
|
|
return ResourceManager.GetString("TemplateOnly_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <files />
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>Template-Update</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <DocumentTypes />
|
|
/// <Templates>
|
|
/// <Template>
|
|
/// <Name>Homepage</Name>
|
|
/// <Alias>umbHomepage</Alias>
|
|
/// <Master>umbMaster</Master>
|
|
/// <Design>
|
|
/// <![CDATA[<%@ Master Language="C#" MasterPageFile="~/masterpages/umbMaster.master" AutoEventWireup="true" %>
|
|
///<asp:content id="Content1" contentplaceholderid="cp_content [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string TemplateOnly_Updated_Package {
|
|
get {
|
|
return ResourceManager.GetString("TemplateOnly_Updated_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>uBlogsy</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <uBlogsySiteRoot id="1266" parentID="-1" level="1" creatorID="0" sortOrder="1" createDate="2013-02-21T18:38:53" updateDate="2013-03-18T22:35:23" nodeName="Sample Site Root" urlName="sample-site-root" path="-1,1266" isDoc="" nodeType="1263" creatorName="admin" writerName="admin" writerID="0" template="12 [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string uBlogsy_Package {
|
|
get {
|
|
return ResourceManager.GetString("uBlogsy_Package", resourceCulture);
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// Looks up a localized string similar to <?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
///<umbPackage>
|
|
/// <info>
|
|
/// <package>
|
|
/// <name>XSLTsearch</name>
|
|
/// </package>
|
|
/// </info>
|
|
/// <Documents>
|
|
/// <DocumentSet importMode="root">
|
|
/// <XSLTsearch id="1090" parentID="-1" level="1" writerID="0" creatorID="0" nodeType="1087" template="1086" sortOrder="39" createDate="2010-11-09T13:45:22" updateDate="2010-11-09T14:18:04" nodeName="Search" urlName="search" writerName="Administrator" creatorName="Administrator" path="-1,1090" isDoc="">
|
|
/// [rest of string was truncated]";.
|
|
/// </summary>
|
|
internal static string XsltSearch_Package {
|
|
get {
|
|
return ResourceManager.GetString("XsltSearch_Package", resourceCulture);
|
|
}
|
|
}
|
|
}
|
|
}
|