* Rename Umbraco.Core namespace to Umbraco.Cms.Core * Move extension methods in core project to Umbraco.Extensions * Move extension methods in core project to Umbraco.Extensions * Rename Umbraco.Examine namespace to Umbraco.Cms.Examine * Move examine extensions to Umbraco.Extensions namespace * Reflect changed namespaces in Builder and fix unit tests * Adjust namespace in Umbraco.ModelsBuilder.Embedded * Adjust namespace in Umbraco.Persistence.SqlCe * Adjust namespace in Umbraco.PublishedCache.NuCache * Align namespaces in Umbraco.Web.BackOffice * Align namespaces in Umbraco.Web.Common * Ensure that SqlCeSupport is still enabled after changing the namespace * Align namespaces in Umbraco.Web.Website * Align namespaces in Umbraco.Web.UI.NetCore * Align namespaces in Umbraco.Tests.Common * Align namespaces in Umbraco.Tests.UnitTests * Align namespaces in Umbraco.Tests.Integration * Fix errors caused by changed namespaces * Fix integration tests * Undo the Umbraco.Examine.Lucene namespace change This breaks integration tests on linux, since the namespace wont exists there because it's only used on windows. * Fix merge * Fix Merge
56 lines
1.9 KiB
C#
56 lines
1.9 KiB
C#
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Runtime.Serialization;
|
|
|
|
namespace Umbraco.Cms.Core.Models.ContentEditing
|
|
{
|
|
[DataContract(Name = "propertyGroup", Namespace = "")]
|
|
public abstract class PropertyGroupBasic
|
|
{
|
|
/// <summary>
|
|
/// Gets the special generic properties tab identifier.
|
|
/// </summary>
|
|
public const int GenericPropertiesGroupId = -666;
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether this tab is the generic properties tab.
|
|
/// </summary>
|
|
[IgnoreDataMember]
|
|
public bool IsGenericProperties => Id == GenericPropertiesGroupId;
|
|
|
|
/// <summary>
|
|
/// Gets a value indicating whether the property group is inherited through
|
|
/// content types composition.
|
|
/// </summary>
|
|
/// <remarks>A property group can be inherited and defined on the content type
|
|
/// currently being edited, at the same time. Inherited is true when there exists at least
|
|
/// one property group higher in the composition, with the same alias.</remarks>
|
|
[DataMember(Name = "inherited")]
|
|
public bool Inherited { get; set; }
|
|
|
|
// needed - so we can handle alias renames
|
|
[DataMember(Name = "id")]
|
|
public int Id { get; set; }
|
|
|
|
[DataMember(Name = "sortOrder")]
|
|
public int SortOrder { get; set; }
|
|
|
|
[Required]
|
|
[DataMember(Name = "name")]
|
|
public string Name { get; set; }
|
|
}
|
|
|
|
[DataContract(Name = "propertyGroup", Namespace = "")]
|
|
public class PropertyGroupBasic<TPropertyType> : PropertyGroupBasic
|
|
where TPropertyType: PropertyTypeBasic
|
|
{
|
|
public PropertyGroupBasic()
|
|
{
|
|
Properties = new List<TPropertyType>();
|
|
}
|
|
|
|
[DataMember(Name = "properties")]
|
|
public IEnumerable<TPropertyType> Properties { get; set; }
|
|
}
|
|
}
|