Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1520


Ignore:
Timestamp:
04/07/09 13:12:20 (16 years ago)
Author:
asimon
Message:

Security.Core (ticket #537)

Location:
trunk/sources
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Security.Contracts/HeuristicLab.Security.Contracts.csproj

    r1486 r1520  
    9191      <RequiredTargetFramework>3.0</RequiredTargetFramework>
    9292    </Reference>
     93    <Reference Include="System.ServiceModel">
     94      <RequiredTargetFramework>3.0</RequiredTargetFramework>
     95    </Reference>
    9396    <Reference Include="System.Xml" />
    9497  </ItemGroup>
  • trunk/sources/HeuristicLab.Security.Contracts/Interfaces/IPermissionManager.cs

    r1384 r1520  
    22using System.Collections.Generic;
    33using System.Text;
     4using System.ServiceModel;
    45
    56namespace HeuristicLab.Security.Contracts.Interfaces {
    6   interface IPermissionManager {
     7
     8  [ServiceContract]
     9  public interface IPermissionManager {
     10
     11    [OperationContract]
    712    Guid Authenticate(String userName, String password);
     13
     14    [OperationContract]
    815    bool CheckPermission(Guid sessionId, Guid permissionId,
    916      Guid enitityId);
     17
     18    [OperationContract]
    1019    void EndSession(Guid sessionId);
    1120  }
  • trunk/sources/HeuristicLab.Security.Contracts/Interfaces/ISecurityManager.cs

    r1384 r1520  
    22using System.Collections.Generic;
    33using System.Text;
     4using System.ServiceModel;
    45using HeuristicLab.Security.Contracts.BusinessObjects;
    56
    67namespace HeuristicLab.Security.Contracts.Interfaces {
    7   interface ISecurityManager {
     8
     9  [ServiceContract]
     10  public interface ISecurityManager {
     11
     12    [OperationContract]
    813    User AddNewUser(User user);
     14
     15    [OperationContract]
    916    bool RemoveUser(Guid userId);
     17
     18    [OperationContract]
    1019    User UpdateUser(User user);
    1120
     21    [OperationContract]
    1222    UserGroup AddNewUserGroup(UserGroup group);
    13     bool RemoveUserGroup(Guid groupId);
     23
     24    [OperationContract]
     25    bool RemoveUserGroup(UserGroup group);
     26
     27    [OperationContract]
    1428    UserGroup UpdateUserGroup(UserGroup group);
    1529
    16     bool AddPermissionOwnerToGroup(Guid groupId, Guid permissionOwnerId);
    17     bool RemovePermissionOwnerFromGroup(Guid groupId, Guid permissionOwnerId);
     30    [OperationContract]
     31    bool AddPermissionOwnerToGroup(UserGroup userGroup, PermissionOwner permissionOwner);
    1832
    19     bool GrantPermission(Guid permissionOwnerId, Guid permissionId);
    20     bool RevokePermission(Guid permissionOwnerId, Guid permissionId);
     33    [OperationContract]
     34    bool RemovePermissionOwnerFromGroup(UserGroup userGroup, PermissionOwner permissionOwner);
     35
     36    [OperationContract]
     37    bool GrantPermission(PermissionOwner permissionOwner, Permission permission);
     38
     39    [OperationContract]
     40    bool RevokePermission(PermissionOwner permissionOwner, Permission permission);
    2141  }
    2242}
  • trunk/sources/HeuristicLab.Security.DataAccess/IPermissionAdapter.cs

    r1449 r1520  
    3030  /// The permission database adapter
    3131  /// </summary>
    32   interface IPermissionAdapter: IDataAdapter<Permission> {
     32  public interface IPermissionAdapter: IDataAdapter<Permission> {
    3333    /// <summary>
    3434    /// Determines, if the permission Owner has the permission on the entity
     
    3838    /// <param name="entityId"></param>
    3939    /// <returns></returns>
    40     GrantedPermission getPermssion(Guid permissionOwnerId, Guid permissionId,
    41       Guid entityId);
     40    GrantedPermission getPermission(PermissionOwner permissionOwner, Permission permission);
    4241
    4342    /// <summary>
     
    4847    /// <param name="entityId"></param>
    4948    /// <returns></returns>
    50     bool addPermission(Guid permissionOwnerId, Guid permissionId,
    51       Guid entityId);
     49    bool addPermission(PermissionOwner permissionOwner, Permission permission);
    5250
    5351    /// <summary>
     
    5856    /// <param name="entityId"></param>
    5957    /// <returns></returns>
    60     bool removePermission(Guid permissionOwnerId, Guid permissionId,
    61       Guid entityId);
     58    bool removePermission(PermissionOwner permissionOwner, Permission permission);
    6259  }
    6360}
  • trunk/sources/HeuristicLab.sln

    r1517 r1520  
    158158EndProject
    159159Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.StatisticalAnalysis", "HeuristicLab.StatisticalAnalysis\HeuristicLab.StatisticalAnalysis.csproj", "{1DAA4952-8D6B-4D43-A9E5-5466053DA777}"
     160EndProject
     161Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HeuristicLab.Security.Core", "HeuristicLab.Security.Core\HeuristicLab.Security.Core.csproj", "{F734E19F-11B3-41EA-B302-52CA7644F8ED}"
    160162EndProject
    161163Global
     
    21672169    {1DAA4952-8D6B-4D43-A9E5-5466053DA777}.Visualization Debug|x64.ActiveCfg = Debug|Any CPU
    21682170    {1DAA4952-8D6B-4D43-A9E5-5466053DA777}.Visualization Debug|x86.ActiveCfg = Debug|Any CPU
     2171    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.CEDMA Debug|Any CPU.ActiveCfg = Debug|Any CPU
     2172    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.CEDMA Debug|Any CPU.Build.0 = Debug|Any CPU
     2173    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.CEDMA Debug|x64.ActiveCfg = Debug|Any CPU
     2174    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.CEDMA Debug|x86.ActiveCfg = Debug|Any CPU
     2175    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
     2176    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Debug|Any CPU.Build.0 = Debug|Any CPU
     2177    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Debug|x64.ActiveCfg = Debug|Any CPU
     2178    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Debug|x86.ActiveCfg = Debug|Any CPU
     2179    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.GP Debug|Any CPU.ActiveCfg = Debug|Any CPU
     2180    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.GP Debug|Any CPU.Build.0 = Debug|Any CPU
     2181    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.GP Debug|x64.ActiveCfg = Debug|Any CPU
     2182    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.GP Debug|x86.ActiveCfg = Debug|Any CPU
     2183    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Release|Any CPU.ActiveCfg = Release|Any CPU
     2184    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Release|Any CPU.Build.0 = Release|Any CPU
     2185    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Release|x64.ActiveCfg = Release|Any CPU
     2186    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Release|x86.ActiveCfg = Release|Any CPU
     2187    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Visualization Debug|Any CPU.ActiveCfg = Debug|Any CPU
     2188    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Visualization Debug|Any CPU.Build.0 = Debug|Any CPU
     2189    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Visualization Debug|x64.ActiveCfg = Debug|Any CPU
     2190    {F734E19F-11B3-41EA-B302-52CA7644F8ED}.Visualization Debug|x86.ActiveCfg = Debug|Any CPU
    21692191  EndGlobalSection
    21702192  GlobalSection(SolutionProperties) = preSolution
Note: See TracChangeset for help on using the changeset viewer.