Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/20/09 20:27:15 (16 years ago)
Author:
svonolfe
Message:

Updated interfaces (#532)

Location:
trunk/sources/HeuristicLab.Security.Contracts
Files:
2 added
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Security.Contracts/BusinessObjects/Permission.cs

    r1378 r1384  
    2424using System.Text;
    2525using System.Runtime.Serialization;
    26 using HeuristicLab.DataAccess;
    2726
    2827namespace HeuristicLab.Security.Contracts.BusinessObjects {
     
    3130  public class Permission: PersistableObject {
    3231    [DataMember]
    33     public String Name { get; set; }
     32    public String Description { get; set; }
     33
     34    [DataMember]
     35    public Guid EntityId { get; set; }
    3436  }
    3537}
  • trunk/sources/HeuristicLab.Security.Contracts/BusinessObjects/PermissionOwner.cs

    r1378 r1384  
    2424using System.Text;
    2525using System.Runtime.Serialization;
    26 using HeuristicLab.DataAccess;
    2726
    2827namespace HeuristicLab.Security.Contracts.BusinessObjects {
     
    3231    [DataMember]
    3332    public string Name { get; set; }
     33
     34    [DataMember]
     35    public Guid EntityId { get; set; }
    3436  }
    3537}
  • trunk/sources/HeuristicLab.Security.Contracts/HeuristicLab.Security.Contracts.csproj

    r1378 r1384  
    4242  -->
    4343  <ItemGroup>
    44     <Compile Include="BusinessObjects\GrantedPermissions.cs" />
     44    <Compile Include="BusinessObjects\GrantedPermission.cs" />
    4545    <Compile Include="BusinessObjects\Permission.cs" />
    4646    <Compile Include="BusinessObjects\PermissionOwner.cs" />
    4747    <Compile Include="BusinessObjects\User.cs" />
    4848    <Compile Include="BusinessObjects\UserGroup.cs" />
     49    <Compile Include="BusinessObjects\PersistableObject.cs" />
    4950    <Compile Include="SecurityContractsPlugin.cs" />
    5051    <Compile Include="Interfaces\IPermissionManager.cs" />
  • trunk/sources/HeuristicLab.Security.Contracts/Interfaces/IPermissionManager.cs

    r1378 r1384  
    66  interface IPermissionManager {
    77    Guid Authenticate(String userName, String password);
    8     bool CheckPermission(Guid sessionId, Guid permissionToken,
     8    bool CheckPermission(Guid sessionId, Guid permissionId,
    99      Guid enitityId);
    1010    void EndSession(Guid sessionId);
  • trunk/sources/HeuristicLab.Security.Contracts/Interfaces/ISecurityManager.cs

    r1378 r1384  
    77  interface ISecurityManager {
    88    User AddNewUser(User user);
    9     bool RemoveUser(long userId);
     9    bool RemoveUser(Guid userId);
    1010    User UpdateUser(User user);
    1111
    1212    UserGroup AddNewUserGroup(UserGroup group);
    13     bool RemoveUserGroup(long groupId);
     13    bool RemoveUserGroup(Guid groupId);
    1414    UserGroup UpdateUserGroup(UserGroup group);
    15  
    16     bool AddPermissionOwnerToGroup(long groupId, long permissionOwnerId);
    17     bool RemovePermissionOwnerFromGroup(long groupId, long permissionOwnerId);
    1815
    19     bool GrantPermission(long permissionOwnerId, Guid permissionToken);
    20     bool RevokePermission(long permissionOwnerId, Guid permissionToken);
     16    bool AddPermissionOwnerToGroup(Guid groupId, Guid permissionOwnerId);
     17    bool RemovePermissionOwnerFromGroup(Guid groupId, Guid permissionOwnerId);
     18
     19    bool GrantPermission(Guid permissionOwnerId, Guid permissionId);
     20    bool RevokePermission(Guid permissionOwnerId, Guid permissionId);
    2121  }
    2222}
Note: See TracChangeset for help on using the changeset viewer.