add Application Pools Restart Quota

This commit is contained in:
dev_amdtel 2013-05-14 23:28:03 +04:00
parent c65ec921f7
commit 62cbb7e4ab
6 changed files with 32 additions and 11 deletions

View file

@ -449,4 +449,8 @@ BEGIN
INSERT [dbo].[Providers] ([ProviderID], [GroupID], [ProviderName], [DisplayName], [ProviderType], [EditorControl], [DisableAutoDiscovery])
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
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

View file

@ -65,7 +65,8 @@ order by rg.groupOrder
public const string WEB_SECURITY = "Web.Security"; // Custom Security Settings
public const string WEB_DEFAULTDOCS = "Web.DefaultDocs"; // Custom Default Documents
public const string WEB_APPPOOLS = "Web.AppPools"; // Dedicated Application Pools
public const string WEB_HEADERS = "Web.Headers"; // Custom Headers
public const string WEB_APPPOOLSRESTART = "Web.AppPoolsRestart"; // Application Pools Restart
public const string WEB_HEADERS = "Web.Headers"; // Custom Headers
public const string WEB_ERRORS = "Web.Errors"; // Custom Errors
public const string WEB_MIME = "Web.Mime"; // Custom MIME Types
public const string WEB_CGIBIN = "Web.CgiBin"; // CGI-BIN Folder

View file

@ -1623,6 +1623,9 @@
<data name="Quota.Web.AppPools" xml:space="preserve">
<value>Dedicated Application Pools</value>
</data>
<data name="Quota.Web.AppPoolsRestart" xml:space="preserve">
<value>Application Pools Restart</value>
</data>
<data name="Quota.Web.ColdFusion" xml:space="preserve">
<value>ColdFusion</value>
</data>

View file

@ -191,12 +191,14 @@
<asp:Literal ID="litAppPoolStatus" runat="server"></asp:Literal>
</td>
<td align="center">
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
<asp:Panel runat="server" ID="AppPoolRestartPanel">
<asp:ImageButton ID="cmdAppPoolStart" runat="server" SkinID="StartMedium" meta:resourcekey="cmdStart"
CommandName="Started" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolRecycle" runat="server" SkinID="RecycleMedium" meta:resourcekey="cmdRecycle"
CommandName="Recycle" OnClick="cmdAppPoolChangeState_Click" />
<asp:ImageButton ID="cmdAppPoolStop" runat="server" SkinID="StopMedium" meta:resourcekey="cmdStop"
CommandName="Stopped" OnClick="cmdAppPoolChangeState_Click" />
</asp:Panel>
</td>
</tr>
</table>

View file

@ -265,6 +265,8 @@ namespace WebsitePanel.Portal
ToggleFrontPageControls(site.FrontPageInstalled);
}
AppPoolRestartPanel.Visible = Utils.CheckQouta(Quotas.WEB_APPPOOLSRESTART, cntx);
// bind controls
webSitesHomeFolderControl.BindWebItem(PackageId, site);
webSitesSecuredFoldersControl.BindSecuredFolders(site);

View file

@ -11,7 +11,7 @@ namespace WebsitePanel.Portal {
public partial class WebSitesEditSite {
/// <summary>
/// asyncTasks control.
/// </summary>
@ -20,7 +20,7 @@ namespace WebsitePanel.Portal {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::WebsitePanel.Portal.EnableAsyncTasksSupport asyncTasks;
/// <summary>
/// WDeployBuildPublishingProfileWizardPanel control.
/// </summary>
@ -29,7 +29,7 @@ namespace WebsitePanel.Portal {
/// To modify move field declaration from designer file to code-behind file.
/// </remarks>
protected global::System.Web.UI.WebControls.Panel WDeployBuildPublishingProfileWizardPanel;
/// <summary>
/// WDeployPubProfilePanel control.
/// </summary>
@ -390,6 +390,15 @@ namespace WebsitePanel.Portal {
/// </remarks>
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>
/// cmdAppPoolStart control.
/// </summary>