Merge branch 'dev-v7.7' into user-group-permissions
# Conflicts: # src/Umbraco.Core/Persistence/Migrations/Initial/BaseDataCreation.cs # src/Umbraco.Tests/Services/UserServiceTests.cs # src/Umbraco.Web.UI.Client/src/common/services/util.service.js # src/Umbraco.Web.UI/config/trees.config # src/Umbraco.Web/Umbraco.Web.csproj
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Runtime.Serialization;
|
||||
@@ -18,6 +19,11 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
[DataContract(Name = "contentType", Namespace = "")]
|
||||
public class ContentTypeBasic : EntityBasic
|
||||
{
|
||||
public ContentTypeBasic()
|
||||
{
|
||||
Blueprints = new Dictionary<int, string>();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overridden to apply our own validation attributes since this is not always required for other classes
|
||||
/// </summary>
|
||||
@@ -105,5 +111,9 @@ namespace Umbraco.Web.Models.ContentEditing
|
||||
: IOHelper.ResolveUrl("~/umbraco/images/thumbnails/" + Thumbnail);
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Name = "blueprints")]
|
||||
[ReadOnly(true)]
|
||||
public IDictionary<int, string> Blueprints { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -163,11 +163,14 @@ namespace Umbraco.Web.Models.Mapping
|
||||
});
|
||||
|
||||
config.CreateMap<IMemberType, ContentTypeBasic>()
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.MemberType, content.Key)));
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.MemberType, content.Key)))
|
||||
.ForMember(x => x.Blueprints, expression => expression.Ignore());
|
||||
config.CreateMap<IMediaType, ContentTypeBasic>()
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.MediaType, content.Key)));
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.MediaType, content.Key)))
|
||||
.ForMember(x => x.Blueprints, expression => expression.Ignore());
|
||||
config.CreateMap<IContentType, ContentTypeBasic>()
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.DocumentType, content.Key)));
|
||||
.ForMember(x => x.Udi, expression => expression.MapFrom(content => Udi.Create(Constants.UdiEntityType.DocumentType, content.Key)))
|
||||
.ForMember(x => x.Blueprints, expression => expression.Ignore());
|
||||
|
||||
config.CreateMap<PropertyTypeBasic, PropertyType>()
|
||||
|
||||
|
||||
@@ -129,6 +129,7 @@ namespace Umbraco.Web.Models.Mapping
|
||||
return mapping
|
||||
.ForMember(x => x.Udi, expression => expression.ResolveUsing(new ContentTypeUdiResolver()))
|
||||
.ForMember(display => display.Notifications, expression => expression.Ignore())
|
||||
.ForMember(display => display.Blueprints, expression => expression.Ignore())
|
||||
.ForMember(display => display.Errors, expression => expression.Ignore())
|
||||
.ForMember(display => display.AllowAsRoot, expression => expression.MapFrom(type => type.AllowedAsRoot))
|
||||
.ForMember(display => display.ListViewEditorName, expression => expression.Ignore())
|
||||
|
||||
@@ -24,6 +24,10 @@ namespace Umbraco.Web.Models
|
||||
[DataMember(Name = "zipFilePath")]
|
||||
public string ZipFilePath { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// During installation this can be used to track any pending appdomain restarts
|
||||
/// </summary>
|
||||
[DataMember(Name = "isRestarting")]
|
||||
public bool IsRestarting { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user