Files
Umbraco-CMS/tests/Umbraco.Tests.Integration/Umbraco.Infrastructure/Services/Importing/ImportResources.Designer.cs
Paul Johnson fce97314bd Cherry-pick: support import/export for doc type history cleanup policy (#11708)
* 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>
2021-12-02 11:37:12 +01:00

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 &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;CheckboxListTest&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;NewType key=&quot;9c9b55d0-2fbf-4f12-afea-023bd7b2519d&quot; id=&quot;1148&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;9&quot; createDate=&quot;2013-07-23T12:06:07&quot; updateDate=&quot;2013-07-23T15:56:37&quot; nodeName=&quot;DoIt&quot; urlName=&quot;doit&quot; path=&quot;-1,1148&quot; isDoc=&quot;&quot; nodeType=&quot;1134&quot; creatorName=&quot;admin&quot; writerName= [rest of string was truncated]&quot;;.
/// </summary>
internal static string CheckboxList_Content_Package {
get {
return ResourceManager.GetString("CheckboxList_Content_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Compositions Packaged&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;umbHomePage key=&quot;9c9b55d0-2fbf-4f12-afea-023bd7b2519d&quot; id=&quot;1068&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;0&quot; createDate=&quot;2014-11-26T12:52:35&quot; updateDate=&quot;2014-11-26T12:52:36&quot; nodeName=&quot;Home&quot; urlName=&quot;home&quot; path=&quot;-1,1068&quot; isDoc=&quot;&quot; nodeType=&quot;1056&quot; creatorName=&quot;Morten Ch [rest of string was truncated]&quot;;.
/// </summary>
internal static string CompositionsTestPackage {
get {
return ResourceManager.GetString("CompositionsTestPackage", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Composite Test&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;CompositeTest id=&quot;1083&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;1&quot; createDate=&quot;2014-11-26T15:02:43&quot; updateDate=&quot;2014-11-26T15:02:43&quot; nodeName=&quot;Composite test&quot; urlName=&quot;composite-test&quot; path=&quot;-1,1083&quot; isDoc=&quot;&quot; nodeType=&quot;1082&quot; creatorName=&quot;Niels Hartvig&quot; writerName=&quot;Niels Hart [rest of string was truncated]&quot;;.
/// </summary>
internal static string CompositionsTestPackage_Random {
get {
return ResourceManager.GetString("CompositionsTestPackage_Random", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Dictionary-Package&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;DictionaryItems&gt;
/// &lt;DictionaryItem Key=&quot;28f2e02a-8c66-4fcd-85e3-8524d551c0d3&quot; Name=&quot;Parent&quot;&gt;
/// &lt;Value LanguageId=&quot;2&quot; LanguageCultureAlias=&quot;nb-NO&quot;&gt;&lt;![CDATA[ForelderVerdi]]&gt;&lt;/Value&gt;
/// &lt;Value LanguageId=&quot;3&quot; LanguageCultureAlias=&quot;en-GB&quot;&gt;&lt;![CDATA[ParentValue]]&gt;&lt;/Value&gt;
/// &lt;DictionaryItem Key=&quot;e7dba0a9-d517-4ba4-8e18-2764d392c611&quot; Name=&quot; [rest of string was truncated]&quot;;.
/// </summary>
internal static string Dictionary_Package {
get {
return ResourceManager.GetString("Dictionary_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Fanoe&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;Home id=&quot;1057&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;0&quot; createDate=&quot;2014-11-25T12:23:30&quot; updateDate=&quot;2014-12-01T13:45:08&quot; nodeName=&quot;Home&quot; urlName=&quot;home&quot; path=&quot;-1,1057&quot; isDoc=&quot;&quot; nodeType=&quot;1055&quot; creatorName=&quot;Rune Strand&quot; writerName=&quot;Rune Strand&quot; writerID=&quot;0&quot; template=&quot;1054&quot; nodeTypeAlias=&quot;Home&quot;&gt; [rest of string was truncated]&quot;;.
/// </summary>
internal static string Fanoe_Package {
get {
return ResourceManager.GetString("Fanoe_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;DocTypeError&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;DocumentTypes&gt;
/// &lt;DocumentType&gt;
/// &lt;Info&gt;
/// &lt;Name&gt;MR Basisseite&lt;/Name&gt;
/// &lt;Key&gt;02e4e119-2eeb-4b92-9880-0c35d66a16b2&lt;/Key&gt;
/// &lt;Alias&gt;MRBasePage&lt;/Alias&gt;
/// &lt;Icon&gt;folder.gif&lt;/Icon&gt;
/// &lt;Thumbnail&gt;folder.png&lt;/Thumbnail&gt;
/// &lt;Description&gt;Basistyp für alle Seiten der MR-Racing Website.&lt;/Description&gt;
/// [rest of string was truncated]&quot;;.
/// </summary>
internal static string InheritedDocTypes_Package {
get {
return ResourceManager.GetString("InheritedDocTypes_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Package With MediaTypes And Media + Folder&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;DocumentTypes /&gt;
/// &lt;MediaTypes&gt;
/// &lt;MediaType&gt;
/// &lt;Info&gt;
/// &lt;Name&gt;Folder&lt;/Name&gt;
/// &lt;Key&gt;c3ddc08e-3b5e-42b2-9f0b-6e5c79a2e2e0&lt;/Key&gt;
/// &lt;Alias&gt;Folder&lt;/Alias&gt;
/// &lt;Icon&gt;icon-folder&lt;/Icon&gt;
/// &lt;Thumbnail&gt;icon-folder&lt;/Thumbnail&gt;
/// &lt;Description /&gt;
/// &lt;AllowAtRoot&gt;True&lt;/AllowAtRoot&gt;
/// [rest of string was truncated]&quot;;.
/// </summary>
internal static string MediaTypesAndMedia_Package_xml {
get {
return ResourceManager.GetString("MediaTypesAndMedia_Package.xml", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
///&lt;DocumentType&gt;
/// &lt;Info&gt;
/// &lt;Name&gt;test&lt;/Name&gt;
/// &lt;Key&gt;150ead17-d359-42a2-ac33-6504cc52ced1&lt;/Key&gt;
/// &lt;Alias&gt;test&lt;/Alias&gt;
/// &lt;Icon&gt;folder.gif&lt;/Icon&gt;
/// &lt;Thumbnail&gt;folder.png&lt;/Thumbnail&gt;
/// &lt;Description&gt;
/// &lt;/Description&gt;
/// &lt;AllowAtRoot&gt;False&lt;/AllowAtRoot&gt;
/// &lt;AllowedTemplates&gt;
/// &lt;Template&gt;test&lt;/Template&gt;
/// &lt;/AllowedTemplates&gt;
/// &lt;DefaultTemplate&gt;test&lt;/DefaultTemplate&gt;
/// &lt;/Info&gt;
/// &lt;Structure&gt;
/// &lt;DocumentType&gt;test&lt;/DocumentType&gt;
/// &lt;/Str [rest of string was truncated]&quot;;.
/// </summary>
internal static string SingleDocType {
get {
return ResourceManager.GetString("SingleDocType", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; ?&gt;
///&lt;DocumentType&gt;
/// &lt;Info&gt;
/// &lt;Name&gt;test&lt;/Name&gt;
/// &lt;Key&gt;150ead17-d359-42a2-ac33-6504cc52ced1&lt;/Key&gt;
/// &lt;Alias&gt;test&lt;/Alias&gt;
/// &lt;Icon&gt;folder.gif&lt;/Icon&gt;
/// &lt;Thumbnail&gt;folder.png&lt;/Thumbnail&gt;
/// &lt;Description&gt;
/// &lt;/Description&gt;
/// &lt;AllowAtRoot&gt;False&lt;/AllowAtRoot&gt;
/// &lt;AllowedTemplates&gt;
/// &lt;Template&gt;test&lt;/Template&gt;
/// &lt;/AllowedTemplates&gt;
/// &lt;DefaultTemplate&gt;test&lt;/DefaultTemplate&gt;
/// &lt;/Info&gt;
/// &lt;Structure&gt;
/// &lt;DocumentType&gt;test&lt;/DocumentType&gt;
/// &lt;/Str [rest of string was truncated]&quot;;.
/// </summary>
internal static string SingleDocType_WithCleanupPolicy {
get {
return ResourceManager.GetString("SingleDocType_WithCleanupPolicy", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;StandardWebsiteMVC&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;Homepage key=&quot;9c9b55d0-2fbf-4f12-afea-023bd7b2519d&quot; id=&quot;1072&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;0&quot; createDate=&quot;2013-02-17T09:04:39&quot; updateDate=&quot;2013-02-17T09:10:47&quot; nodeName=&quot;Home&quot; urlName=&quot;home&quot; path=&quot;-1,1072&quot; isDoc=&quot;&quot; nodeType=&quot;1062&quot; creatorName=&quot;admin&quot; writerName=&quot;admin&quot; wr [rest of string was truncated]&quot;;.
/// </summary>
internal static string StandardMvc_Package {
get {
return ResourceManager.GetString("StandardMvc_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Template-Update&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;DocumentTypes /&gt;
/// &lt;Templates&gt;
/// &lt;Template&gt;
/// &lt;Name&gt;Homepage&lt;/Name&gt;
/// &lt;Alias&gt;umbHomepage&lt;/Alias&gt;
/// &lt;Master&gt;umbMaster&lt;/Master&gt;
/// &lt;Design&gt;
/// &lt;![CDATA[&lt;%@ Master Language=&quot;C#&quot; MasterPageFile=&quot;~/masterpages/umbMaster.master&quot; AutoEventWireup=&quot;true&quot; %&gt;
///&lt;asp:content id=&quot;Content1&quot; contentplaceholderid=&quot;cp_content [rest of string was truncated]&quot;;.
/// </summary>
internal static string TemplateOnly_Package {
get {
return ResourceManager.GetString("TemplateOnly_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;files /&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;Template-Update&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;DocumentTypes /&gt;
/// &lt;Templates&gt;
/// &lt;Template&gt;
/// &lt;Name&gt;Homepage&lt;/Name&gt;
/// &lt;Alias&gt;umbHomepage&lt;/Alias&gt;
/// &lt;Master&gt;umbMaster&lt;/Master&gt;
/// &lt;Design&gt;
/// &lt;![CDATA[&lt;%@ Master Language=&quot;C#&quot; MasterPageFile=&quot;~/masterpages/umbMaster.master&quot; AutoEventWireup=&quot;true&quot; %&gt;
///&lt;asp:content id=&quot;Content1&quot; contentplaceholderid=&quot;cp_content [rest of string was truncated]&quot;;.
/// </summary>
internal static string TemplateOnly_Updated_Package {
get {
return ResourceManager.GetString("TemplateOnly_Updated_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;uBlogsy&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;uBlogsySiteRoot id=&quot;1266&quot; parentID=&quot;-1&quot; level=&quot;1&quot; creatorID=&quot;0&quot; sortOrder=&quot;1&quot; createDate=&quot;2013-02-21T18:38:53&quot; updateDate=&quot;2013-03-18T22:35:23&quot; nodeName=&quot;Sample Site Root&quot; urlName=&quot;sample-site-root&quot; path=&quot;-1,1266&quot; isDoc=&quot;&quot; nodeType=&quot;1263&quot; creatorName=&quot;admin&quot; writerName=&quot;admin&quot; writerID=&quot;0&quot; template=&quot;12 [rest of string was truncated]&quot;;.
/// </summary>
internal static string uBlogsy_Package {
get {
return ResourceManager.GetString("uBlogsy_Package", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;no&quot;?&gt;
///&lt;umbPackage&gt;
/// &lt;info&gt;
/// &lt;package&gt;
/// &lt;name&gt;XSLTsearch&lt;/name&gt;
/// &lt;/package&gt;
/// &lt;/info&gt;
/// &lt;Documents&gt;
/// &lt;DocumentSet importMode=&quot;root&quot;&gt;
/// &lt;XSLTsearch id=&quot;1090&quot; parentID=&quot;-1&quot; level=&quot;1&quot; writerID=&quot;0&quot; creatorID=&quot;0&quot; nodeType=&quot;1087&quot; template=&quot;1086&quot; sortOrder=&quot;39&quot; createDate=&quot;2010-11-09T13:45:22&quot; updateDate=&quot;2010-11-09T14:18:04&quot; nodeName=&quot;Search&quot; urlName=&quot;search&quot; writerName=&quot;Administrator&quot; creatorName=&quot;Administrator&quot; path=&quot;-1,1090&quot; isDoc=&quot;&quot;&gt;
/// [rest of string was truncated]&quot;;.
/// </summary>
internal static string XsltSearch_Package {
get {
return ResourceManager.GetString("XsltSearch_Package", resourceCulture);
}
}
}
}