add Application Pools Restart Quota
This commit is contained in:
parent
c65ec921f7
commit
62cbb7e4ab
6 changed files with 32 additions and 11 deletions
|
@ -450,3 +450,7 @@ INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName]
|
||||||
VALUES (1401, 41, N'Lync2013', N'Microsoft Lync Server 2013 Multitenant Hosting Pack', N'WebsitePanel.Providers.HostedSolution.Lync2013, WebsitePanel.Providers.HostedSolution.Lync2013', N'Lync', NULL)
|
VALUES (1401, 41, N'Lync2013', N'Microsoft Lync Server 2013 Multitenant Hosting Pack', N'WebsitePanel.Providers.HostedSolution.Lync2013, WebsitePanel.Providers.HostedSolution.Lync2013', N'Lync', NULL)
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
-- add Application Pools Restart Quota
|
||||||
|
INSERT [dbo].[Quotas] ([QuotaID], [GroupID], [QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID], [HideQuota]) VALUES (411, 2, 13, N'Web.AppPoolsRestart', N'Application Pools Restart', 1, 0, NULL, NULL)
|
||||||
|
GO
|
||||||
|
|
|
@ -65,6 +65,7 @@ order by rg.groupOrder
|
||||||
public const string WEB_SECURITY = "Web.Security"; // Custom Security Settings
|
public const string WEB_SECURITY = "Web.Security"; // Custom Security Settings
|
||||||
public const string WEB_DEFAULTDOCS = "Web.DefaultDocs"; // Custom Default Documents
|
public const string WEB_DEFAULTDOCS = "Web.DefaultDocs"; // Custom Default Documents
|
||||||
public const string WEB_APPPOOLS = "Web.AppPools"; // Dedicated Application Pools
|
public const string WEB_APPPOOLS = "Web.AppPools"; // Dedicated Application Pools
|
||||||
|
public const string WEB_APPPOOLSRESTART = "Web.AppPoolsRestart"; // Application Pools Restart
|
||||||
public const string WEB_HEADERS = "Web.Headers"; // Custom Headers
|
public const string WEB_HEADERS = "Web.Headers"; // Custom Headers
|
||||||
public const string WEB_ERRORS = "Web.Errors"; // Custom Errors
|
public const string WEB_ERRORS = "Web.Errors"; // Custom Errors
|
||||||
public const string WEB_MIME = "Web.Mime"; // Custom MIME Types
|
public const string WEB_MIME = "Web.Mime"; // Custom MIME Types
|
||||||
|
|
|
@ -1623,6 +1623,9 @@
|
||||||
<data name="Quota.Web.AppPools" xml:space="preserve">
|
<data name="Quota.Web.AppPools" xml:space="preserve">
|
||||||
<value>Dedicated Application Pools</value>
|
<value>Dedicated Application Pools</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="Quota.Web.AppPoolsRestart" xml:space="preserve">
|
||||||
|
<value>Application Pools Restart</value>
|
||||||
|
</data>
|
||||||
<data name="Quota.Web.ColdFusion" xml:space="preserve">
|
<data name="Quota.Web.ColdFusion" xml:space="preserve">
|
||||||
<value>ColdFusion</value>
|
<value>ColdFusion</value>
|
||||||
</data>
|
</data>
|
||||||
|
|
|
@ -191,12 +191,14 @@
|
||||||
<asp:Literal ID="litAppPoolStatus" runat="server"></asp:Literal>
|
<asp:Literal ID="litAppPoolStatus" runat="server"></asp:Literal>
|
||||||
</td>
|
</td>
|
||||||
<td align="center">
|
<td align="center">
|
||||||
|
<asp:Panel runat="server" ID="AppPoolRestartPanel">
|
||||||
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
|
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
|
||||||
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
|
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
|
||||||
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
|
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
|
||||||
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
|
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
|
||||||
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
|
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
|
||||||
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
|
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
|
||||||
|
</asp:Panel>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -265,6 +265,8 @@ namespace WebsitePanel.Portal
|
||||||
ToggleFrontPageControls(site.FrontPageInstalled);
|
ToggleFrontPageControls(site.FrontPageInstalled);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
AppPoolRestartPanel.Visible = Utils.CheckQouta(Quotas.WEB_APPPOOLSRESTART, cntx);
|
||||||
|
|
||||||
// bind controls
|
// bind controls
|
||||||
webSitesHomeFolderControl.BindWebItem(PackageId, site);
|
webSitesHomeFolderControl.BindWebItem(PackageId, site);
|
||||||
webSitesSecuredFoldersControl.BindSecuredFolders(site);
|
webSitesSecuredFoldersControl.BindSecuredFolders(site);
|
||||||
|
|
|
@ -390,6 +390,15 @@ namespace WebsitePanel.Portal {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::System.Web.UI.WebControls.Literal litAppPoolStatus;
|
protected global::System.Web.UI.WebControls.Literal litAppPoolStatus;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// AppPoolRestartPanel 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.Panel AppPoolRestartPanel;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// cmdAppPoolStart control.
|
/// cmdAppPoolStart control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue