More segment-only values
This commit is contained in:
@@ -48,7 +48,7 @@ namespace Umbraco.Core.Models
|
||||
/// </summary>
|
||||
/// <param name="propertyTypeAlias">Alias of the PropertyType</param>
|
||||
/// <returns>True if Property with given alias exists, otherwise False</returns>
|
||||
bool HasProperty(string propertyTypeAlias);
|
||||
bool HasProperty(string propertyTypeAlias); // fixme - what does this mean????
|
||||
|
||||
/// <summary>
|
||||
/// Gets the neutral value of a Property
|
||||
@@ -58,12 +58,17 @@ namespace Umbraco.Core.Models
|
||||
/// <summary>
|
||||
/// Gets the culture value of a Property
|
||||
/// </summary>
|
||||
object GetValue(string propertyTypeAlias, int languageId, bool published = false);
|
||||
object GetValue(string propertyTypeAlias, int? languageId, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the segment value of a Property
|
||||
/// </summary>
|
||||
object GetValue(string propertyTypeAlias, int languageId, string segment, bool published = false);
|
||||
object GetValue(string propertyTypeAlias, string segment, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the culture+segment value of a Property
|
||||
/// </summary>
|
||||
object GetValue(string propertyTypeAlias, int? languageId, string segment, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the typed neutral value of a Property
|
||||
@@ -71,34 +76,63 @@ namespace Umbraco.Core.Models
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the typed neutral value of a Property
|
||||
/// Gets the typed culture value of a Property
|
||||
/// </summary>
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, int languageId, bool published = false);
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, int? languageId, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Gets the typed neutral value of a Property
|
||||
/// Gets the typed segment value of a Property
|
||||
/// </summary>
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, int languageId, string segment, bool published = false);
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, string segment, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the neutral (draft) value of a Property
|
||||
/// Gets the typed culture+segment value of a Property
|
||||
/// </summary>
|
||||
TPropertyValue GetValue<TPropertyValue>(string propertyTypeAlias, int? languageId, string segment, bool published = false);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the neutral (edited) value of a Property
|
||||
/// </summary>
|
||||
void SetValue(string propertyTypeAlias, object value);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the culture (draft) value of a Property
|
||||
/// Sets the culture (edited) value of a Property
|
||||
/// </summary>
|
||||
void SetValue(string propertyTypeAlias, int languageId, object value);
|
||||
void SetValue(string propertyTypeAlias, int? languageId, object value);
|
||||
|
||||
/// <summary>
|
||||
/// Sets the segment (draft) value of a Property
|
||||
/// Sets the segment (edited) value of a Property
|
||||
/// </summary>
|
||||
void SetValue(string propertyTypeAlias, int languageId, string segment, object value);
|
||||
void SetValue(string propertyTypeAlias, string segment, object value);
|
||||
|
||||
/// <summary>
|
||||
/// Boolean indicating whether the content and its properties are valid
|
||||
/// Sets the culture+segment (edited) value of a Property
|
||||
/// </summary>
|
||||
void SetValue(string propertyTypeAlias, int? languageId, string segment, object value);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content and its neutral properties values are valid.
|
||||
/// </summary>
|
||||
/// <returns>True if content is valid otherwise false</returns>
|
||||
bool Validate();
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content and its culture properties values are valid.
|
||||
/// </summary>
|
||||
bool Validate(int? languageId);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content and its segment properties values are valid.
|
||||
/// </summary>
|
||||
bool Validate(string segment);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content and its culture+segment properties values are valid.
|
||||
/// </summary>
|
||||
bool Validate(int? languageId, string segment);
|
||||
|
||||
/// <summary>
|
||||
/// Gets a value indicating whether the content and all its properties values are valid.
|
||||
/// </summary>
|
||||
bool ValidateAll();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user