Fixes up dirty tracking of cultures and published cultures the same way we handle that with other entities which uses observable collection events. This simplifies the dirty tracking logic and means we dont require lookup the original object, but now we need to figure out the fixme stuff

This commit is contained in:
Shannon
2019-02-06 16:10:20 +11:00
parent b65dac946f
commit 92606e7122
22 changed files with 682 additions and 413 deletions

View File

@@ -132,33 +132,5 @@ namespace Umbraco.Core.Models
/// <remarks>Values 'null' and 'empty' are equivalent for culture and segment.</remarks>
void SetValue(string propertyTypeAlias, object value, string culture = null, string segment = null);
/// <summary>
/// Copies values from another document.
/// </summary>
void CopyFrom(IContent other, string culture = "*");
/// <summary>
/// Validates the content item's properties pass variant rules
/// </summary>
/// <para>If the content type is variant, then culture can be either '*' or an actual culture, but neither 'null' nor
/// 'empty'. If the content type is invariant, then culture can be either '*' or null or empty.</para>
Property[] ValidateProperties(string culture = "*");
/// <summary>
/// Determines whether a culture is being saved, during a Saving event.
/// </summary>
/// <remarks>Outside of a Saving event handler, the returned value is unspecified.</remarks>
bool IsSavingCulture(string culture);
/// <summary>
/// Determines whether a culture has been saved, during a Saved event.
/// </summary>
/// <remarks>Outside of a Saved event handler, the returned value is unspecified.</remarks>
bool HasSavedCulture(string culture);
/// <summary>
/// Updates a culture date, if the culture exists.
/// </summary>
void TouchCulture(string culture);
}
}