forked from ravendb/ravendb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Fitzchak Yitzchaki
committed
Jun 13, 2012
1 parent
8b78ba4
commit 9bc73ae
Showing
420 changed files
with
76,904 additions
and
76,904 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
[Bb]in | ||
[Oo]bj | ||
*resharper.user | ||
build/ | ||
[Hh]elp/ | ||
*.suo | ||
*.sln.cache | ||
_ReSharper.*/ | ||
*.user | ||
/Data/Data | ||
/Data/IndexDefinitions/ | ||
/Data/Index/ | ||
/Data/logs/ | ||
/Data/system/ | ||
/Data/temp/ | ||
*.InstallLog | ||
/test/storage.raven | ||
/Raven.Web/Data/ | ||
VERSION | ||
/Samples/*/Server/*.dll | ||
/Samples/*/Server/Raven.Server.exe | ||
/Samples/*/Server/Raven.Server.log | ||
/Samples/*/Server/Raven.Server.log.* | ||
/Samples/*/Servers/Shard*/*.dll | ||
/Samples/*/Servers/Shard*/Raven.Server.exe | ||
/Samples/*/Servers/Shard*/Raven.Server.log | ||
/Samples/*/Servers/Shard*/Raven.Server.log.* | ||
/Samples/Raven.Samples.IndexReplication/Server/* | ||
/Samples/Raven.Sample.Replication/Servers/* | ||
ClientBin/ | ||
/Raven.Tests.Silverlight.Results.xml | ||
*.g.3.5.csproj | ||
*.g.csproj | ||
*.g.4.csproj | ||
*.docstates | ||
StyleCop.Cache | ||
*.dotCover | ||
RavenDB*.nupkg | ||
*.orig | ||
Raven.Web/Tenants/ | ||
Raven.Web/NLog.config | ||
*.*crunch* | ||
Testresults | ||
[Bb]in | ||
[Oo]bj | ||
*resharper.user | ||
build/ | ||
[Hh]elp/ | ||
*.suo | ||
*.sln.cache | ||
_ReSharper.*/ | ||
*.user | ||
/Data/Data | ||
/Data/IndexDefinitions/ | ||
/Data/Index/ | ||
/Data/logs/ | ||
/Data/system/ | ||
/Data/temp/ | ||
*.InstallLog | ||
/test/storage.raven | ||
/Raven.Web/Data/ | ||
VERSION | ||
/Samples/*/Server/*.dll | ||
/Samples/*/Server/Raven.Server.exe | ||
/Samples/*/Server/Raven.Server.log | ||
/Samples/*/Server/Raven.Server.log.* | ||
/Samples/*/Servers/Shard*/*.dll | ||
/Samples/*/Servers/Shard*/Raven.Server.exe | ||
/Samples/*/Servers/Shard*/Raven.Server.log | ||
/Samples/*/Servers/Shard*/Raven.Server.log.* | ||
/Samples/Raven.Samples.IndexReplication/Server/* | ||
/Samples/Raven.Sample.Replication/Servers/* | ||
ClientBin/ | ||
/Raven.Tests.Silverlight.Results.xml | ||
*.g.3.5.csproj | ||
*.g.csproj | ||
*.g.4.csproj | ||
*.docstates | ||
StyleCop.Cache | ||
*.dotCover | ||
RavenDB*.nupkg | ||
*.orig | ||
Raven.Web/Tenants/ | ||
Raven.Web/NLog.config | ||
*.*crunch* | ||
Testresults |
158 changes: 79 additions & 79 deletions
158
Bundles/Raven.Bundles.Authentication/Raven.Bundles.Authentication.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,86 +1,86 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{53DA3AE4-1648-43B9-A814-BAFD89AEBF2A}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Raven.Bundles.Authentication</RootNamespace> | ||
<AssemblyName>Raven.Bundles.Authentication</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SignAssembly>true</SignAssembly> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<AssemblyOriginatorKeyFile>..\..\Raven.Database\RavenDB.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="NLog"> | ||
<HintPath>..\..\Packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\CommonAssemblyInfo.cs"> | ||
<Link>Properties\CommonAssemblyInfo.cs</Link> | ||
</Compile> | ||
<Compile Include="AuthenticationUser.cs" /> | ||
<Compile Include="AuthorizeClient.cs" /> | ||
<Compile Include="EnsureAtLeastOneUserExists.cs" /> | ||
<Compile Include="UserDatabaseAccess.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Raven.Abstractions\Raven.Abstractions.csproj"> | ||
<Project>{41AC479E-1EB2-4D23-AAF2-E4C8DF1BC2BA}</Project> | ||
<Name>Raven.Abstractions</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\..\Raven.Database\Raven.Database.csproj"> | ||
<Project>{212823CD-25E1-41AC-92D1-D6DF4D53FC85}</Project> | ||
<Name>Raven.Database</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\Raven.Database\RavenDB.snk"> | ||
<Link>RavenDB.snk</Link> | ||
</None> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(MSBuildProjectDirectory)\..\..\Tools\StyleCop\StyleCop.Targets" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProductVersion>8.0.30703</ProductVersion> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
<ProjectGuid>{53DA3AE4-1648-43B9-A814-BAFD89AEBF2A}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Raven.Bundles.Authentication</RootNamespace> | ||
<AssemblyName>Raven.Bundles.Authentication</AssemblyName> | ||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion> | ||
<FileAlignment>512</FileAlignment> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<SignAssembly>true</SignAssembly> | ||
</PropertyGroup> | ||
<PropertyGroup> | ||
<AssemblyOriginatorKeyFile>..\..\Raven.Database\RavenDB.snk</AssemblyOriginatorKeyFile> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<Reference Include="NLog"> | ||
<HintPath>..\..\Packages\NLog.2.0.0.2000\lib\net40\NLog.dll</HintPath> | ||
</Reference> | ||
<Reference Include="System" /> | ||
<Reference Include="System.Core" /> | ||
<Reference Include="System.Xml.Linq" /> | ||
<Reference Include="System.Data.DataSetExtensions" /> | ||
<Reference Include="Microsoft.CSharp" /> | ||
<Reference Include="System.Data" /> | ||
<Reference Include="System.Xml" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Compile Include="..\..\CommonAssemblyInfo.cs"> | ||
<Link>Properties\CommonAssemblyInfo.cs</Link> | ||
</Compile> | ||
<Compile Include="AuthenticationUser.cs" /> | ||
<Compile Include="AuthorizeClient.cs" /> | ||
<Compile Include="EnsureAtLeastOneUserExists.cs" /> | ||
<Compile Include="UserDatabaseAccess.cs" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\..\Raven.Abstractions\Raven.Abstractions.csproj"> | ||
<Project>{41AC479E-1EB2-4D23-AAF2-E4C8DF1BC2BA}</Project> | ||
<Name>Raven.Abstractions</Name> | ||
</ProjectReference> | ||
<ProjectReference Include="..\..\Raven.Database\Raven.Database.csproj"> | ||
<Project>{212823CD-25E1-41AC-92D1-D6DF4D53FC85}</Project> | ||
<Name>Raven.Database</Name> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="..\..\Raven.Database\RavenDB.snk"> | ||
<Link>RavenDB.snk</Link> | ||
</None> | ||
<None Include="packages.config" /> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<Import Project="$(MSBuildProjectDirectory)\..\..\Tools\StyleCop\StyleCop.Targets" /> | ||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it. | ||
Other similar extension points exist, see Microsoft.Common.targets. | ||
<Target Name="BeforeBuild"> | ||
</Target> | ||
<Target Name="AfterBuild"> | ||
</Target> | ||
--> | ||
--> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NLog" version="2.0.0.2000" /> | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="NLog" version="2.0.0.2000" /> | ||
</packages> |
56 changes: 28 additions & 28 deletions
56
Bundles/Raven.Bundles.Authorization/Model/DocumentPermission.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="DocumentPermission.cs" company="Hibernating Rhinos LTD"> | ||
// Copyright (c) Hibernating Rhinos LTD. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
using Raven.Imports.Newtonsoft.Json; | ||
|
||
namespace Raven.Bundles.Authorization.Model | ||
{ | ||
public class DocumentPermission : IPermission | ||
{ | ||
public string Operation { get; set; } | ||
public string User { get; set; } | ||
public string Role { get; set; } | ||
public bool Allow { get; set; } | ||
public int Priority { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Explain | ||
{ | ||
get | ||
{ | ||
return string.Format("Operation: {0}, User: {1}, Role: {2}, Allow: {3}, Priority: {4}", Operation, User, Role, Allow, | ||
Priority); | ||
} | ||
} | ||
} | ||
} | ||
//----------------------------------------------------------------------- | ||
// <copyright file="DocumentPermission.cs" company="Hibernating Rhinos LTD"> | ||
// Copyright (c) Hibernating Rhinos LTD. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
using Raven.Imports.Newtonsoft.Json; | ||
|
||
namespace Raven.Bundles.Authorization.Model | ||
{ | ||
public class DocumentPermission : IPermission | ||
{ | ||
public string Operation { get; set; } | ||
public string User { get; set; } | ||
public string Role { get; set; } | ||
public bool Allow { get; set; } | ||
public int Priority { get; set; } | ||
|
||
[JsonIgnore] | ||
public string Explain | ||
{ | ||
get | ||
{ | ||
return string.Format("Operation: {0}, User: {1}, Role: {2}, Allow: {3}, Priority: {4}", Operation, User, Role, Allow, | ||
Priority); | ||
} | ||
} | ||
} | ||
} |
64 changes: 32 additions & 32 deletions
64
Bundles/Raven.Bundles.Authorization/Model/OperationPermission.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
//----------------------------------------------------------------------- | ||
// <copyright file="OperationPermission.cs" company="Hibernating Rhinos LTD"> | ||
// Copyright (c) Hibernating Rhinos LTD. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
using System.Collections.Generic; | ||
using Raven.Imports.Newtonsoft.Json; | ||
|
||
namespace Raven.Bundles.Authorization.Model | ||
{ | ||
public class OperationPermission : IPermission | ||
{ | ||
public string Operation { get; set; } | ||
public List<string> Tags { get; set; } | ||
public bool Allow { get; set; } | ||
public int Priority { get; set; } | ||
|
||
public OperationPermission() | ||
{ | ||
Tags = new List<string>(); | ||
} | ||
|
||
[JsonIgnore] | ||
public string Explain | ||
{ | ||
get | ||
{ | ||
return string.Format("Operation: {0}, Tags: {1}, Allow: {2}, Priority: {3}", Operation, string.Join(", ", Tags ?? new List<string>()), Allow, Priority); | ||
} | ||
} | ||
} | ||
} | ||
//----------------------------------------------------------------------- | ||
// <copyright file="OperationPermission.cs" company="Hibernating Rhinos LTD"> | ||
// Copyright (c) Hibernating Rhinos LTD. All rights reserved. | ||
// </copyright> | ||
//----------------------------------------------------------------------- | ||
using System.Collections.Generic; | ||
using Raven.Imports.Newtonsoft.Json; | ||
|
||
namespace Raven.Bundles.Authorization.Model | ||
{ | ||
public class OperationPermission : IPermission | ||
{ | ||
public string Operation { get; set; } | ||
public List<string> Tags { get; set; } | ||
public bool Allow { get; set; } | ||
public int Priority { get; set; } | ||
|
||
public OperationPermission() | ||
{ | ||
Tags = new List<string>(); | ||
} | ||
|
||
[JsonIgnore] | ||
public string Explain | ||
{ | ||
get | ||
{ | ||
return string.Format("Operation: {0}, Tags: {1}, Allow: {2}, Priority: {3}", Operation, string.Join(", ", Tags ?? new List<string>()), Allow, Priority); | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.