Commit 8c0da25f authored by Viet Hoang's avatar Viet Hoang

rename

parent dc8a0802
......@@ -2,7 +2,7 @@
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<vhsXAnalyticsSiteFilterRestriction enabled="true">
<vhsXAnalyticsReportViewerRestriction enabled="true">
<superReportViewerRoles>sitecore\Super Report Viewer,sitecore\Master Report</superReportViewerRoles>
......@@ -13,7 +13,7 @@
</sites>
</sitesAndReportViewerRoles>
</vhsXAnalyticsSiteFilterRestriction>
</vhsXAnalyticsReportViewerRestriction>
</sitecore>
</configuration>
\ No newline at end of file
......@@ -5,11 +5,11 @@
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Vhs.XAnalyticsSiteFilterRestriction")]
[assembly: AssemblyTitle("Vhs.XAnalyticsReportViewerRestriction")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Vhs.XAnalyticsSiteFilterRestriction")]
[assembly: AssemblyProduct("Vhs.XAnalyticsReportViewerRestriction")]
[assembly: AssemblyCopyright("Copyright © viet.hoang.sitecore@gmail.com 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
......
using SC = Sitecore;
namespace Vhs.XAnalyticsSiteFilterRestriction.Services
namespace Vhs.XAnalyticsReportViewerRestriction.Services
{
public static class ConfigurationService
{
......@@ -8,7 +8,7 @@ public static bool Enabled
{
get
{
var xmlAttributes = SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsSiteFilterRestriction")
var xmlAttributes = SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsReportViewerRestriction")
?.Attributes;
if (xmlAttributes == null) return false;
bool enabled;
......@@ -16,10 +16,10 @@ public static bool Enabled
}
}
public static string SuperReportViewerRoles => SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsSiteFilterRestriction/superReportViewerRoles")
public static string SuperReportViewerRoles => SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsReportViewerRestriction/superReportViewerRoles")
?.InnerXml;
public static string SitesAndReportViewerRoleList => SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsSiteFilterRestriction/sitesAndReportViewerRoles")
public static string SitesAndReportViewerRoleList => SC.Configuration.Factory.GetConfigNode("vhsXAnalyticsReportViewerRestriction/sitesAndReportViewerRoles")
?.InnerXml;
}
}
\ No newline at end of file
......@@ -13,8 +13,8 @@
<ProjectTypeGuids>{349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc}</ProjectTypeGuids>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Vhs.XAnalyticsSiteFilterRestriction</RootNamespace>
<AssemblyName>Vhs.XAnalyticsSiteFilterRestriction</AssemblyName>
<RootNamespace>Vhs.XAnalyticsReportViewerRestriction</RootNamespace>
<AssemblyName>Vhs.XAnalyticsReportViewerRestriction</AssemblyName>
<TargetFrameworkVersion>v4.6</TargetFrameworkVersion>
<UseIISExpress>true</UseIISExpress>
<IISExpressSSLPort />
......@@ -117,7 +117,7 @@
</Reference>
</ItemGroup>
<ItemGroup>
<Content Include="App_Config\Include\z.Vhs.XAnalyticsSiteFilterRestriction.config">
<Content Include="App_Config\Include\z.Vhs.XAnalyticsReportViewerRestriction.config">
<SubType>Designer</SubType>
</Content>
<None Include="Properties\PublishProfiles\Local.pubxml" />
......
......@@ -8,7 +8,7 @@
@using Sitecore.Web.UI.Controls.Common.UserControls
@using Sitecore
@using Sitecore.Configuration
@using Vhs.XAnalyticsSiteFilterRestriction.Services
@using Vhs.XAnalyticsReportViewerRestriction.Services
@using Globals = Sitecore.ExperienceAnalytics.Client.Globals
@using UserControl = Sitecore.Web.UI.Controls.Common.UserControls.UserControl
@model Sitecore.Mvc.Presentation.RenderingModel
......
......@@ -19,7 +19,7 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vhs.MediaPublicUrlPickerFie
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vhs.ImageCoordinatePickerField2", "Vhs.ImageCoordinatePickerField2\Vhs.ImageCoordinatePickerField2.csproj", "{0A07630E-0F8F-4D90-92CF-8DEF370ABA43}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vhs.XAnalyticsSiteFilterRestriction", "Vhs.XAnalyticsSiteFilterRestriction\Vhs.XAnalyticsSiteFilterRestriction.csproj", "{4FA8BCEE-AA68-48E8-8FB0-6CB3E7A7D131}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Vhs.XAnalyticsReportViewerRestriction", "Vhs.XAnalyticsSiteFilterRestriction\Vhs.XAnalyticsReportViewerRestriction.csproj", "{4FA8BCEE-AA68-48E8-8FB0-6CB3E7A7D131}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment