removes commented out Relation type editor and the unused/disabled xml health check
This commit is contained in:
@@ -1,97 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Umbraco.Core.Composing;
|
||||
using Umbraco.Core.Services;
|
||||
using Umbraco.Web.PublishedCache;
|
||||
|
||||
namespace Umbraco.Web.HealthCheck.Checks.DataIntegrity
|
||||
{
|
||||
/// <summary>
|
||||
/// This moves the functionality from the XmlIntegrity check dashboard into a health check
|
||||
/// </summary>
|
||||
[HealthCheck(
|
||||
"D999EB2B-64C2-400F-B50C-334D41F8589A",
|
||||
"XML Data Integrity",
|
||||
Description = "This checks the data integrity for the xml structures for content, media and members that are stored in the cmsContentXml table. This does not check the data integrity of the xml cache file, only the xml structures stored in the database used to create the xml cache file.",
|
||||
Group = "Data Integrity")]
|
||||
[HideFromTypeFinder] // only if running the Xml cache! added by XmlCacheComponent!
|
||||
public class XmlDataIntegrityHealthCheck : HealthCheck
|
||||
{
|
||||
private readonly ILocalizedTextService _textService;
|
||||
private readonly PublishedCache.XmlPublishedCache.PublishedSnapshotService _publishedSnapshotService;
|
||||
|
||||
private const string CheckContentXmlTableAction = "checkContentXmlTable";
|
||||
private const string CheckMediaXmlTableAction = "checkMediaXmlTable";
|
||||
private const string CheckMembersXmlTableAction = "checkMembersXmlTable";
|
||||
|
||||
public XmlDataIntegrityHealthCheck(ILocalizedTextService textService, IPublishedSnapshotService publishedSnapshotService)
|
||||
{
|
||||
_textService = textService;
|
||||
|
||||
_publishedSnapshotService = publishedSnapshotService as PublishedCache.XmlPublishedCache.PublishedSnapshotService;
|
||||
if (_publishedSnapshotService == null)
|
||||
throw new NotSupportedException("Unsupported IPublishedSnapshotService, only the Xml one is supported.");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the status for this health check
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public override IEnumerable<HealthCheckStatus> GetStatus()
|
||||
{
|
||||
//return the statuses
|
||||
return new[] { CheckContent(), CheckMedia(), CheckMembers() };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Executes the action and returns it's status
|
||||
/// </summary>
|
||||
/// <param name="action"></param>
|
||||
/// <returns></returns>
|
||||
public override HealthCheckStatus ExecuteAction(HealthCheckAction action)
|
||||
{
|
||||
switch (action.Alias)
|
||||
{
|
||||
case CheckContentXmlTableAction:
|
||||
_publishedSnapshotService.RebuildContentAndPreviewXml();
|
||||
return CheckContent();
|
||||
case CheckMediaXmlTableAction:
|
||||
_publishedSnapshotService.RebuildMediaXml();
|
||||
return CheckMedia();
|
||||
case CheckMembersXmlTableAction:
|
||||
_publishedSnapshotService.RebuildMemberXml();
|
||||
return CheckMembers();
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
}
|
||||
|
||||
private HealthCheckStatus CheckMembers()
|
||||
{
|
||||
return Check(_publishedSnapshotService.VerifyMemberXml(), CheckMembersXmlTableAction, "healthcheck/xmlDataIntegrityCheckMembers");
|
||||
}
|
||||
|
||||
private HealthCheckStatus CheckMedia()
|
||||
{
|
||||
return Check(_publishedSnapshotService.VerifyMediaXml(), CheckMediaXmlTableAction, "healthcheck/xmlDataIntegrityCheckMedia");
|
||||
}
|
||||
|
||||
private HealthCheckStatus CheckContent()
|
||||
{
|
||||
return Check(_publishedSnapshotService.VerifyContentAndPreviewXml(), CheckContentXmlTableAction, "healthcheck/xmlDataIntegrityCheckContent");
|
||||
}
|
||||
|
||||
private HealthCheckStatus Check(bool ok, string action, string text)
|
||||
{
|
||||
var actions = new List<HealthCheckAction>();
|
||||
if (ok == false)
|
||||
actions.Add(new HealthCheckAction(action, Id));
|
||||
|
||||
return new HealthCheckStatus(_textService.Localize(text, new[] { ok ? "ok" : "not ok" }))
|
||||
{
|
||||
ResultType = ok ? StatusResultType.Success : StatusResultType.Error,
|
||||
Actions = actions
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -272,7 +272,6 @@
|
||||
<Compile Include="HealthCheck\HealthCheckStatus.cs" />
|
||||
<Compile Include="HealthCheck\Checks\Security\HttpsCheck.cs" />
|
||||
<Compile Include="HealthCheck\StatusResultType.cs" />
|
||||
<Compile Include="HealthCheck\Checks\DataIntegrity\XmlDataIntegrityHealthCheck.cs" />
|
||||
<Compile Include="Models\BackOfficeTour.cs" />
|
||||
<Compile Include="Models\BackOfficeTourFile.cs" />
|
||||
<Compile Include="Models\BackOfficeTourStep.cs" />
|
||||
@@ -1237,12 +1236,6 @@
|
||||
<Compile Include="umbraco.presentation\umbraco\dashboard\FeedProxy.aspx.designer.cs">
|
||||
<DependentUpon>FeedProxy.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="umbraco.presentation\umbraco\developer\RelationTypes\EditRelationType.aspx.cs">
|
||||
<DependentUpon>EditRelationType.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="umbraco.presentation\umbraco\developer\RelationTypes\EditRelationType.aspx.designer.cs">
|
||||
<DependentUpon>EditRelationType.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="umbraco.presentation\umbraco\developer\RelationTypes\NewRelationType.aspx.cs">
|
||||
<DependentUpon>NewRelationType.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1321,9 +1314,6 @@
|
||||
<EmbeddedResource Include="UI\JavaScript\PreviewInitialize.js" />
|
||||
<!--<Content Include="umbraco.presentation\umbraco\users\PermissionEditor.aspx" />-->
|
||||
<Content Include="PublishedCache\NuCache\notes.txt" />
|
||||
<Content Include="umbraco.presentation\umbraco\developer\RelationTypes\EditRelationType.aspx">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Content>
|
||||
<Content Include="umbraco.presentation\umbraco\developer\RelationTypes\NewRelationType.aspx">
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Content>
|
||||
|
||||
@@ -1,148 +0,0 @@
|
||||
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditRelationType.aspx.cs" Inherits="umbraco.cms.presentation.developer.RelationTypes.EditRelationType" MasterPageFile="../../masterpages/umbracoPage.Master" %>
|
||||
<%@ Register TagPrefix="umb" Namespace="Umbraco.Web._Legacy.Controls" %>
|
||||
|
||||
<asp:Content ID="headContent" ContentPlaceHolderID="head" runat="server">
|
||||
<style type="text/css">
|
||||
table.relations { }
|
||||
table.relations th { width:auto; }
|
||||
|
||||
table.relations th.objectTypeIcon { width:20px; }
|
||||
table.relations th.directionIcon { width:16px; height:16px; }
|
||||
|
||||
table.relations td { background: transparent none no-repeat scroll center center }
|
||||
|
||||
table.relations td a { text-decoration: underline; }
|
||||
|
||||
/* objectType icons */
|
||||
table.relations td.ContentItemType {}
|
||||
table.relations td.ROOT {}
|
||||
table.relations td.Document {}
|
||||
table.relations td.Media {}
|
||||
table.relations td.MemberType {}
|
||||
table.relations td.Template {}
|
||||
table.relations td.MemberGroup {}
|
||||
table.relations td.ContentItem {}
|
||||
table.relations td.MediaType {}
|
||||
table.relations td.DocumentType {}
|
||||
table.relations td.RecycleBin {}
|
||||
table.relations td.Stylesheet {}
|
||||
table.relations td.Member {}
|
||||
table.relations td.DataType {}
|
||||
|
||||
/* direction icons */
|
||||
table.relations td.parentToChild { background-image: url('/umbraco/developer/RelationTypes/Images/ParentToChild.png'); }
|
||||
table.relations td.bidirectional { background-image: url('/umbraco/developer/RelationTypes/Images/Bidirectional.png'); }
|
||||
</style>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="bodyContent" ContentPlaceHolderID="body" runat="server">
|
||||
|
||||
<umb:TabView runat="server" ID="tabControl" Width="200" />
|
||||
|
||||
<umb:Pane ID="idPane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" id="idPropertyPanel" Text="Id">
|
||||
<asp:Literal ID="idLiteral" runat="server" />
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
<umb:Pane ID="nameAliasPane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" ID="nameProperyPanel" Text="Name">
|
||||
<asp:TextBox ID="nameTextBox" runat="server" Columns="40" ></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="nameRequiredFieldValidator" runat="server" ControlToValidate="nameTextBox" ValidationGroup="RelationType" ErrorMessage="Name Required" Display="Dynamic" />
|
||||
|
||||
</umb:PropertyPanel>
|
||||
|
||||
<umb:PropertyPanel runat="server" id="aliasPropertyPanel" Text="Alias">
|
||||
<asp:TextBox ID="aliasTextBox" runat="server" Columns="40"></asp:TextBox>
|
||||
<asp:RequiredFieldValidator ID="aliasRequiredFieldValidator" runat="server" ControlToValidate="aliasTextBox" ValidationGroup="RelationType" ErrorMessage="Alias Required" Display="Dynamic" />
|
||||
<asp:CustomValidator ID="aliasCustomValidator" runat="server" ControlToValidate="aliasTextBox" ValidationGroup="RelationType" onservervalidate="AliasCustomValidator_ServerValidate" ErrorMessage="Duplicate Alias" Display="Dynamic" />
|
||||
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
<umb:Pane ID="directionPane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" id="dualPropertyPanel" Text="Direction">
|
||||
<asp:RadioButtonList ID="dualRadioButtonList" runat="server" RepeatDirection="Horizontal">
|
||||
<asp:ListItem Enabled="true" Selected="False" Text="Parent to Child" Value="0" />
|
||||
<asp:ListItem Enabled="true" Selected="False" Text="Bidirectional" Value="1"/>
|
||||
</asp:RadioButtonList>
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
<umb:Pane ID="objectTypePane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" id="parentPropertyPanel" Text="Parent">
|
||||
<asp:Literal ID="parentLiteral" runat="server" />
|
||||
</umb:PropertyPanel>
|
||||
|
||||
<umb:PropertyPanel runat="server" id="childPropertyPanel" Text="Child">
|
||||
<asp:Literal ID="childLiteral" runat="server" />
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
<umb:Pane ID="relationsCountPane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" id="relationsCountPropertyPanel" Text="Count">
|
||||
<asp:Literal ID="relationsCountLiteral" runat="server" />
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
<umb:Pane ID="relationsPane" runat="server" Text="">
|
||||
|
||||
<umb:PropertyPanel runat="server" id="relationsPropertyPanel" Text="Relations">
|
||||
|
||||
<asp:Repeater ID="relationsRepeater" runat="server">
|
||||
<HeaderTemplate>
|
||||
<table class="relations">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="objectTypeIcon"> </th>
|
||||
<th>Parent</th>
|
||||
<th class="directionIcon"> </th>
|
||||
<th class="objectTypeIcon"> </th>
|
||||
<th>Child</th>
|
||||
<th>Created</th>
|
||||
<th>Comment</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
</HeaderTemplate>
|
||||
<ItemTemplate>
|
||||
<tr>
|
||||
<td class="<%= this.ParentObjectType %>"> </td>
|
||||
<td><a href="<%# GetEditUrl(this.ParentObjectType, (int)DataBinder.Eval(Container.DataItem, "ParentId")) %>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "ParentText") %></a></td>
|
||||
<td class="<%= this.RelationTypeDirection %>"> </td>
|
||||
<td class="<%= this.ChildObjectType %>"> </td>
|
||||
<td><a href="<%# GetEditUrl(this.ChildObjectType, (int)DataBinder.Eval(Container.DataItem, "ChildId")) %>" target="_blank"><%# DataBinder.Eval(Container.DataItem, "ChildText") %></a></td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "DateTime") %></td>
|
||||
<td><%# DataBinder.Eval(Container.DataItem, "Comment") %></td>
|
||||
</tr>
|
||||
</ItemTemplate>
|
||||
<FooterTemplate>
|
||||
</tbody>
|
||||
</table>
|
||||
</FooterTemplate>
|
||||
</asp:Repeater>
|
||||
|
||||
|
||||
</umb:PropertyPanel>
|
||||
|
||||
</umb:Pane>
|
||||
|
||||
|
||||
</asp:Content>
|
||||
@@ -1,287 +0,0 @@
|
||||
//TODO: Rebuild with new tree format and apis and then remove
|
||||
//using umbraco.uicontrols;
|
||||
|
||||
//using System;
|
||||
//using System.Collections.Generic;
|
||||
//using System.Web.UI;
|
||||
//using System.Web.UI.WebControls;
|
||||
//
|
||||
//using umbraco.BusinessLogic;
|
||||
//using Umbraco.Core;
|
||||
//using Umbraco.Core.Models;
|
||||
//using RelationType = umbraco.cms.businesslogic.relation.RelationType;
|
||||
|
||||
//namespace umbraco.cms.presentation.developer.RelationTypes
|
||||
//{
|
||||
// /// <summary>
|
||||
// /// Edit an existing RelationType
|
||||
// /// </summary>
|
||||
// [WebformsPageTreeAuthorize(Constants.Trees.RelationTypes)]
|
||||
// public partial class EditRelationType : UmbracoEnsuredPage
|
||||
// {
|
||||
|
||||
// /// <summary>
|
||||
// /// Class scope reference to the current RelationType being edited
|
||||
// /// </summary>
|
||||
// private IRelationType _relationType;
|
||||
|
||||
// /// <summary>
|
||||
// /// Class scope reference to the relations associated with the current RelationType
|
||||
// /// </summary>
|
||||
// private List<ReadOnlyRelation> _relations;
|
||||
|
||||
// /// <summary>
|
||||
// /// Umbraco ObjectType used to represent all parent items in this relation type
|
||||
// /// </summary>
|
||||
// ///
|
||||
// private UmbracoObjectTypes _parentObjectType;
|
||||
|
||||
// /// <summary>
|
||||
// /// Umbraco ObjectType used to represent all child items in this relation type
|
||||
// /// </summary>
|
||||
// private UmbracoObjectTypes _childObjectType;
|
||||
|
||||
// /// <summary>
|
||||
// /// Gets the name of the parent object type for all relations in this relation type
|
||||
// /// </summary>
|
||||
// protected string ParentObjectType
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return this._parentObjectType.GetName(); //UmbracoHelper.GetName(this.parentObjectType);
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Gets the name of the child object type for all relations in this relation type
|
||||
// /// </summary>
|
||||
// protected string ChildObjectType
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return this._childObjectType.GetName(); //UmbracoHelper.GetName(this.childObjectType);
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Gets a string representing the current relation type direction
|
||||
// /// </summary>
|
||||
// protected string RelationTypeDirection
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// return this._relationType.IsBidirectional ? "bidirectional" : "parentToChild";
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Gets the Relations for this RelationType, via lazy load
|
||||
// /// </summary>
|
||||
// private List<ReadOnlyRelation> Relations
|
||||
// {
|
||||
// get
|
||||
// {
|
||||
// if (this._relations == null)
|
||||
// {
|
||||
// this._relations = new List<ReadOnlyRelation>();
|
||||
|
||||
// using (var reader = uQuery.SqlHelper.ExecuteReader(@"
|
||||
// SELECT A.id,
|
||||
// A.parentId,
|
||||
// B.[text] AS parentText,
|
||||
// A.childId,
|
||||
// C.[text] AS childText,
|
||||
// A.relType,
|
||||
// A.[datetime],
|
||||
// A.comment
|
||||
// FROM umbracoRelation A
|
||||
// LEFT OUTER JOIN umbracoNode B ON A.parentId = B.id
|
||||
// LEFT OUTER JOIN umbracoNode C ON A.childId = C.id
|
||||
// WHERE A.relType = " + this._relationType.Id.ToString()))
|
||||
// {
|
||||
// while (reader.Read())
|
||||
// {
|
||||
// var readOnlyRelation = new ReadOnlyRelation();
|
||||
|
||||
// readOnlyRelation.Id = reader.GetInt("id");
|
||||
// readOnlyRelation.ParentId = reader.GetInt("parentId");
|
||||
// readOnlyRelation.ParentText = reader.GetString("parentText");
|
||||
// readOnlyRelation.ChildId = reader.GetInt("childId");
|
||||
// readOnlyRelation.ChildText = reader.GetString("childText");
|
||||
// readOnlyRelation.RelType = reader.GetInt("relType");
|
||||
// readOnlyRelation.DateTime = reader.GetDateTime("datetime");
|
||||
// readOnlyRelation.Comment = reader.GetString("comment");
|
||||
|
||||
// this._relations.Add(readOnlyRelation);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
|
||||
// return this._relations;
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// On Load event
|
||||
// /// </summary>
|
||||
// /// <param name="sender">this aspx page</param>
|
||||
// /// <param name="e">EventArgs (expect empty)</param>
|
||||
// protected void Page_Load(object sender, EventArgs e)
|
||||
// {
|
||||
// int id;
|
||||
// if (int.TryParse(Request.QueryString["id"], out id))
|
||||
// {
|
||||
// var relationService = Services.RelationService;
|
||||
|
||||
// this._relationType = relationService.GetRelationTypeById(id);
|
||||
// if (this._relationType != null)
|
||||
// {
|
||||
// this._parentObjectType = UmbracoObjectTypesExtensions.GetUmbracoObjectType(this._relationType.ParentObjectType);
|
||||
// this._childObjectType = UmbracoObjectTypesExtensions.GetUmbracoObjectType(this._relationType.ChildObjectType);
|
||||
|
||||
// // -----------
|
||||
|
||||
// if (!this.IsPostBack)
|
||||
// {
|
||||
// this.EnsureChildControls();
|
||||
|
||||
// this.idLiteral.Text = this._relationType.Id.ToString();
|
||||
// this.nameTextBox.Text = this._relationType.Name;
|
||||
// this.aliasTextBox.Text = this._relationType.Alias;
|
||||
|
||||
// if (this._relationType.IsBidirectional)
|
||||
// {
|
||||
// this.dualRadioButtonList.Items.FindByValue("1").Selected = true;
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// this.dualRadioButtonList.Items.FindByValue("0").Selected = true;
|
||||
// }
|
||||
|
||||
// this.parentLiteral.Text = this._parentObjectType.GetFriendlyName();
|
||||
// // UmbracoHelper.GetFriendlyName(this.parentObjectType);
|
||||
// this.childLiteral.Text = this._childObjectType.GetFriendlyName();
|
||||
// // UmbracoHelper.GetFriendlyName(this.childObjectType);
|
||||
|
||||
// this.relationsCountLiteral.Text = this.Relations.Count.ToString();
|
||||
|
||||
// this.relationsRepeater.DataSource = this.Relations;
|
||||
// this.relationsRepeater.DataBind();
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// throw new Exception("Unable to get RelationType where ID = " + id);
|
||||
// }
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// throw new Exception("Invalid RelationType ID");
|
||||
// }
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Creates the child controls used in this page
|
||||
// /// </summary>
|
||||
// protected override void CreateChildControls()
|
||||
// {
|
||||
// base.CreateChildControls();
|
||||
/*
|
||||
var save = tabControl.Menu.NewButton();
|
||||
save.Click +=saveMenuImageButton_Click;
|
||||
save.CausesValidation = true;
|
||||
save.Text = ui.Text("save");
|
||||
save.ButtonType = MenuButtonType.Primary;
|
||||
save.ID = "save";
|
||||
save.ValidationGroup = "RelationType";*/
|
||||
|
||||
// var relationsTabPage = this.tabControl.NewTabPage("Relations");
|
||||
// saveMenuImageButton.ToolTip = "save relation type";
|
||||
// saveMenuImageButton.Click +=saveMenuImageButton_Click;
|
||||
// saveMenuImageButton.CausesValidation = true;
|
||||
// saveMenuImageButton.Text = Services.TextService.Localize("save");
|
||||
// saveMenuImageButton.ValidationGroup = "RelationType";
|
||||
|
||||
// var relationsTabPage = this.tabControl.NewTabPage("Relations");
|
||||
// relationsTabPage.Controls.Add(this.relationsCountPane);
|
||||
// relationsTabPage.Controls.Add(this.relationsPane);
|
||||
|
||||
// /*
|
||||
// var refreshMenuImageButton = relationsTabPage.Menu.NewImageButton();
|
||||
// refreshMenuImageButton.AlternateText = "refresh relations";
|
||||
// refreshMenuImageButton.Click += this.RefreshMenuImageButton_Click;
|
||||
// refreshMenuImageButton.ImageUrl = "/umbraco/developer/RelationTypes/Images/Refresh.gif";
|
||||
// refreshMenuImageButton.CausesValidation = false;*/
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// check that alias hasn't been changed to clash with another (except itself)
|
||||
// /// </summary>
|
||||
// /// <param name="source">the aliasCustomValidator control</param>
|
||||
// /// <param name="args">to set validation respose</param>
|
||||
// protected void AliasCustomValidator_ServerValidate(object source, ServerValidateEventArgs args)
|
||||
// {
|
||||
// args.IsValid = (RelationType.GetByAlias(this.aliasTextBox.Text.Trim()) == null) ||
|
||||
// (this.aliasTextBox.Text.Trim() == this._relationType.Alias);
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Reload the relations, in case they have changed
|
||||
// /// </summary>
|
||||
// /// <param name="sender">expects refreshMenuImageButton</param>
|
||||
// /// <param name="e">expects ImageClickEventArgs</param>
|
||||
// private void RefreshMenuImageButton_Click(object sender, ImageClickEventArgs e)
|
||||
// {
|
||||
// }
|
||||
|
||||
// /// <summary>
|
||||
// /// Save button in Umbraco menu
|
||||
// /// </summary>
|
||||
// /// <param name="sender">expects saveMenuImageButton object</param>
|
||||
// /// <param name="e">expects ImageClickEventArgs</param>
|
||||
// void saveMenuImageButton_Click(object sender, EventArgs e)
|
||||
// {
|
||||
// if (this.Page.IsValid)
|
||||
// {
|
||||
// var nameChanged = this._relationType.Name != this.nameTextBox.Text.Trim();
|
||||
// var aliasChanged = this._relationType.Alias != this.aliasTextBox.Text.Trim();
|
||||
// var directionChanged = this._relationType.IsBidirectional != (this.dualRadioButtonList.SelectedValue == "1");
|
||||
|
||||
// if (nameChanged || aliasChanged || directionChanged)
|
||||
// {
|
||||
// string bubbleBody = string.Empty;
|
||||
|
||||
// if (nameChanged)
|
||||
// {
|
||||
// bubbleBody += "Name, ";
|
||||
|
||||
// this._relationType.Name = this.nameTextBox.Text.Trim();
|
||||
|
||||
// // Refresh tree, as the name as changed
|
||||
// ClientTools.SyncTree(this._relationType.Id.ToString(), true);
|
||||
// }
|
||||
|
||||
// if (directionChanged)
|
||||
// {
|
||||
// bubbleBody += "Direction, ";
|
||||
// this._relationType.IsBidirectional = this.dualRadioButtonList.SelectedValue == "1";
|
||||
// }
|
||||
|
||||
// if (aliasChanged)
|
||||
// {
|
||||
// bubbleBody += "Alias, ";
|
||||
// this._relationType.Alias = this.aliasTextBox.Text.Trim();
|
||||
// }
|
||||
|
||||
// bubbleBody = bubbleBody.Remove(bubbleBody.LastIndexOf(','), 1);
|
||||
// bubbleBody = bubbleBody + "Changed";
|
||||
|
||||
// var relationService = Services.RelationService;
|
||||
// relationService.Save(this._relationType);
|
||||
|
||||
// ClientTools.ShowSpeechBubble(SpeechBubbleIcon.Save, "Relation Type Updated", bubbleBody);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
@@ -1,249 +0,0 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace umbraco.cms.presentation.developer.RelationTypes {
|
||||
|
||||
|
||||
public partial class EditRelationType {
|
||||
|
||||
/// <summary>
|
||||
/// tabControl control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.TabView tabControl;
|
||||
|
||||
/// <summary>
|
||||
/// idPane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane idPane;
|
||||
|
||||
/// <summary>
|
||||
/// idPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel idPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// idLiteral control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal idLiteral;
|
||||
|
||||
/// <summary>
|
||||
/// nameAliasPane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane nameAliasPane;
|
||||
|
||||
/// <summary>
|
||||
/// nameProperyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel nameProperyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// nameTextBox control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox nameTextBox;
|
||||
|
||||
/// <summary>
|
||||
/// nameRequiredFieldValidator control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator nameRequiredFieldValidator;
|
||||
|
||||
/// <summary>
|
||||
/// aliasPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel aliasPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// aliasTextBox control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.TextBox aliasTextBox;
|
||||
|
||||
/// <summary>
|
||||
/// aliasRequiredFieldValidator control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RequiredFieldValidator aliasRequiredFieldValidator;
|
||||
|
||||
/// <summary>
|
||||
/// aliasCustomValidator control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.CustomValidator aliasCustomValidator;
|
||||
|
||||
/// <summary>
|
||||
/// directionPane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane directionPane;
|
||||
|
||||
/// <summary>
|
||||
/// dualPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel dualPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// dualRadioButtonList control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.RadioButtonList dualRadioButtonList;
|
||||
|
||||
/// <summary>
|
||||
/// objectTypePane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane objectTypePane;
|
||||
|
||||
/// <summary>
|
||||
/// parentPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel parentPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// parentLiteral control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal parentLiteral;
|
||||
|
||||
/// <summary>
|
||||
/// childPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel childPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// childLiteral control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal childLiteral;
|
||||
|
||||
/// <summary>
|
||||
/// relationsCountPane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane relationsCountPane;
|
||||
|
||||
/// <summary>
|
||||
/// relationsCountPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel relationsCountPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// relationsCountLiteral control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Literal relationsCountLiteral;
|
||||
|
||||
/// <summary>
|
||||
/// relationsPane control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.Pane relationsPane;
|
||||
|
||||
/// <summary>
|
||||
/// relationsPropertyPanel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Umbraco.Web._Legacy.Controls.PropertyPanel relationsPropertyPanel;
|
||||
|
||||
/// <summary>
|
||||
/// relationsRepeater control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Repeater relationsRepeater;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user