// Umbraco.Code.MapAll -CreateDate -UpdateDate -ListViewEditorName -Errors -LockedCompositeContentTypes private void MapTypeToDisplayBase(ContentTypeSave source, ContentTypeCompositionDisplay target) { target.Alias = source.Alias; target.AllowAsRoot = source.AllowAsRoot; target.AllowedContentTypes = source.AllowedContentTypes; target.Blueprints = source.Blueprints; target.CompositeContentTypes = source.CompositeContentTypes; target.Description = source.Description; target.Icon = source.Icon; target.IconFilePath = target.IconIsClass ? string.Empty : $"{_globalSettings.GetBackOfficePath(_hostingEnvironment).EnsureEndsWith("/")}images/umbraco/{source.Icon}"; target.Id = source.Id; target.IsContainer = source.IsContainer; target.IsElement = source.IsElement; target.Key = source.Key; target.Name = source.Name; target.ParentId = source.ParentId; target.Path = source.Path; target.Thumbnail = source.Thumbnail; target.ThumbnailFilePath = target.ThumbnailIsClass ? string.Empty : _hostingEnvironment.ToAbsolute("~/umbraco/images/thumbnails/" + source.Thumbnail); target.Trashed = source.Trashed; target.Udi = source.Udi; }
// Umbraco.Code.MapAll -Blueprints -Errors -ListViewEditorName -Trashed private void MapTypeToDisplayBase(IContentTypeComposition source, ContentTypeCompositionDisplay target) { target.Alias = source.Alias; target.AllowAsRoot = source.AllowedAsRoot; target.CreateDate = source.CreateDate; target.Description = source.Description; target.Icon = source.Icon; target.IconFilePath = target.IconIsClass ? string.Empty : $"{_globalSettings.GetBackOfficePath(_hostingEnvironment).EnsureEndsWith("/")}images/umbraco/{source.Icon}"; target.Id = source.Id; target.IsContainer = source.IsContainer; target.IsElement = source.IsElement; target.Key = source.Key; target.Name = source.Name; target.ParentId = source.ParentId; target.Path = source.Path; target.Thumbnail = source.Thumbnail; target.ThumbnailFilePath = target.ThumbnailIsClass ? string.Empty : _hostingEnvironment.ToAbsolute("~/umbraco/images/thumbnails/" + source.Thumbnail); target.Udi = MapContentTypeUdi(source); target.UpdateDate = source.UpdateDate; target.AllowedContentTypes = source.AllowedContentTypes.OrderBy(c => c.SortOrder).Select(x => x.Id.Value); target.CompositeContentTypes = source.ContentTypeComposition.Select(x => x.Alias); target.LockedCompositeContentTypes = MapLockedCompositions(source); }
// Umbraco.Code.MapAll -CreateDate -UpdateDate -ListViewEditorName -Errors -LockedCompositeContentTypes private void MapTypeToDisplayBase(ContentTypeSave source, ContentTypeCompositionDisplay target) { target.Alias = source.Alias; target.AllowAsRoot = source.AllowAsRoot; target.AllowedContentTypes = source.AllowedContentTypes; target.Blueprints = source.Blueprints; target.CompositeContentTypes = source.CompositeContentTypes; target.Description = source.Description; target.Icon = source.Icon; target.Id = source.Id; target.IsContainer = source.IsContainer; target.IsElement = source.IsElement; target.Key = source.Key; target.Name = source.Name; target.ParentId = source.ParentId; target.Path = source.Path; target.Thumbnail = source.Thumbnail; target.Trashed = source.Trashed; target.Udi = source.Udi; }
// Umbraco.Code.MapAll -Blueprints -Errors -ListViewEditorName -Trashed private void MapTypeToDisplayBase(IContentTypeComposition source, ContentTypeCompositionDisplay target) { target.Alias = source.Alias; target.AllowAsRoot = source.AllowedAsRoot; target.CreateDate = source.CreateDate; target.Description = source.Description; target.Icon = source.Icon; target.Id = source.Id; target.IsContainer = source.IsContainer; target.IsElement = source.IsElement; target.Key = source.Key; target.Name = source.Name; target.ParentId = source.ParentId; target.Path = source.Path; target.Thumbnail = source.Thumbnail; target.Udi = MapContentTypeUdi(source); target.UpdateDate = source.UpdateDate; target.AllowedContentTypes = source.AllowedContentTypes.OrderBy(c => c.SortOrder).Select(x => x.Id.Value); target.CompositeContentTypes = source.ContentTypeComposition.Select(x => x.Alias); target.LockedCompositeContentTypes = MapLockedCompositions(source); }